Brock - I'm using v3 of the api in the UpdateManager GUI and need to 
test it out for installs. I have applied your patch on the gate and a 
modified version of Michal's ProgressTracker webrev. When I build this 
and run it I am having problems installing packages from a test repo. 
This is my trace, any idea what's up?

~/work/ips_work/src$ pkg install TSTpython-cherrypy
Traceback (most recent call last):   
  File "/usr/bin/pkg", line 1798, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 1755, in main_func
    return install(mydir, pargs)
  File "/usr/bin/pkg", line 546, in install
    refresh_catalogs, noexecute):
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 163, 
in plan_install
    self.img.history.operation_result = \
  File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 
196, in __setattr__
    if self.__save():
  File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 
405, in __save
    os.O_CREAT|os.O_EXCL|os.O_WRONLY), "w")
OSError: [Errno 13] Permission denied: 
'/var/pkg/history/20080925T160031Z-01.xml'


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is 'c68ba094f48d+'.
~/work/ips_work/src$ pfexec pkg install TSTpython-cherrypy
DOWNLOAD                                    PKGS       FILES     XFER (MB)
TSTpython-cherrypy                           0/1        0/76     0.00/0.28
pkg: An unexpected error happened during install:
Traceback (most recent call last):
  File "/usr/bin/pkg", line 1798, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 1755, in main_func
    return install(mydir, pargs)
  File "/usr/bin/pkg", line 573, in install
    api_inst.prepare()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 358, 
in prepare
    self.img.imageplan.preexecute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", 
line 579, in preexecute
    p.download()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 
241, in download
    flist.flush()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
306, in flush
    self._do_get_files()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
234, in _do_get_files
    fe = self._get_files()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 
342, in _get_files
    imgtype = self.image.type)
  File "/usr/lib/python2.4/vendor-packages/pkg/misc.py", line 135, in 
versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is 'c68ba094f48d+'.

~/work/ips_work/src$


Brock Pytlik wrote:
> Another new version is out. For the CLI and backend it's essentially 
> unchanged. It introduces changes to the GUI code to help it not break 
> when the API is put back.
>
> http://cr.opensolaris.org/~bpytlik/ips-api-v3/
>
> John, Michal, could you please take a look at the changes to the GUI 
> code in general, and the changes to remove.py in particular. Somehow 
> my changes seem to make the GUI never realize it's done evaluating the 
> removal plan, and I'm lost as to why remove would be showing this 
> behavior when install and image-update work. From looking at the truss 
> output, it seems like it spends time reading files, then finishes, and 
> just spins, updating progress bar.
>
> Thanks,
> Brock
>
> Brock Pytlik wrote:
>> New webrev reflecting the comments I've gotten so far, and resyncing 
>> with the gate to gather in the new changes.
>>
>> http://cr.opensolaris.org/~bpytlik/ips-api-v2/
>>
>> Thanks,
>> Brock
>>
>> Brock Pytlik wrote:
>>  
>>> Here's the link:
>>> http://cr.opensolaris.org/~bpytlik/ips-api-v1/
>>>
>>> I haven't done as much cleanup as I usually try to do, but since I'm 
>>> ooto tomorrow, I thought it would be better to get this out now, 
>>> rather than next Monday.
>>>
>>> Other things that I know need to be improved, but that I think can 
>>> wait for another round of revisions:
>>> API Exception organization
>>> More complete functionality
>>> Automated testing of cancellation (I hope to work with the GUI team 
>>> to test this by hand in the interim)
>>> Versioning of the Progress tracker (perhaps)
>>> More Documentation
>>> Figure out the future approach to testing we'll take
>>>
>>> Thanks,
>>> Brock
>>> _______________________________________________
>>> pkg-discuss mailing list
>>> [email protected]
>>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>>>       
>>
>> _______________________________________________
>> pkg-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>>   
>

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to