Set PKG_DUMP_STATS, but it didn't work because the install failed
due to 13533. Neither 13533 nor the notes in the announcement said
to add user upnp /before/ doing the update!   pkg is  asking for a bug
to be filed, but presumably this is a known problem, so was the Traceback
expected? Oddly, there already was a upnp entry in /etc/groups. May I
suggest that 13533 be amended to say that "user upnp should be added
before doing an image-update else the update will fail with a Python
traceback"?

Were the two warnings (see below) expected and are they harmless?

Simply doing another pkg image-update fails, although retrying the
image-update seems to work after adding user upnp and doing
# beadm list
BE   Active Mountpoint Space  Policy Created
--   ------ ---------- -----  ------ -------
b129 N      /          14.40M static 2009-12-26 18:09
b130 R      -          18.11G static 2009-12-27 11:36
# beadm destroy -fF b130
.....
# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org          (preferred)  origin   online   
http://pkg.opensolaris.org/dev/
opensolaris.org          (preferred)  mirror   online   
http://pkg-na-2.opensolaris.org/dev/
# pkg image-update --be-name b130
.....
Warnings (same as below)
.....
URL                   Good   Err  Conn Speed    Size       Used  CSpeed  Qual
pkg.opensolaris.org   0      0    37   0 B/s    0.00 B     True  0.110751 3934
.....

On success, it is still outputting the rather bogus "Deleting content
cache", which it can't actually do since presumably /var/pkg/download is
part of the original BE that is cloned. Is deleting the original BE the only
way of really emptying /var/pkg/download? (After image-update, before
reboot, /var/pkg/downloads exists but is empty. After reboot it's full.
Emptying it again won't free up any space until you delete the old BE.)
Fixing 6353 would likely solve this. Is there an ETA for 6353?

Here's what happened during the initial image-update:

# export PKG_DUMP_STATS=1
# pkg image-update --be-name b130
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1692/1692 48242/48242  874.1/874.1

PHASE                                        ACTIONS
Removal Phase                            12640/23183
Warning - directory usr/lib/thunderbird/icons not empty - contents preserved in 
/tmp/tmpxgdYOt/var/pkg/lost+found/usr/lib/thunderbird/icons-20091226T204756Z
Removal Phase                            12664/23183
Warning - directory usr/X11/share/man not empty - contents preserved in 
/tmp/tmpxgdYOt/var/pkg/lost+found/usr/X11/share/man-20091226T204756Z
Removal Phase                            23183/23183
Install Phase                            13670/38490Action install failed for 
'var/coherence' (pkg://opensolaris.org/SUNWpython26-coherence):
  KeyError: 'user name not found: upnp'
 The running system has not been modified. Modifications were only made to a 
clone of the running system.  This clone is mounted at /tmp/tmpxgdYOt should 
you wish to inspect it.
pkg: An unexpected error happened during image-update: 'user name not found: 
upnp'
Traceback (most recent call last):
  File "/usr/bin/pkg", line 3139, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 3116, in main_func
    return func(img, pargs)
  File "/usr/bin/pkg", line 947, in image_update
    ret_code = __api_execute_plan(op, api_inst)
  File "/usr/bin/pkg", line 615, in __api_execute_plan
    api_inst.execute_plan()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 587, in 
execute_plan
    self.__img.imageplan.execute()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 860, 
in execute
    p.execute_install(src, dest)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 240, in 
execute_install
    dest.install(self, src)
  File "/usr/lib/python2.6/vendor-packages/pkg/actions/directory.py", line 66, 
in install
    owner = pkgplan.image.get_user_by_name(self.attrs["owner"])
  File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 1865, in 
get_user_by_name
    self.type != IMG_USER)
  File "/usr/lib/python2.6/vendor-packages/pkg/portable/os_unix.py", line 127, 
in get_user_by_name
    raise KeyError, "user name not found: %s" % name
KeyError: 'user name not found: upnp'


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 '512c6b2dfda2'.

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

Reply via email to