[OpenIndiana-discuss] New pkg(5) issues

Predrag Zecevic [Unix Systems Administrator] Predrag.Zecevic at 2e-systems.com
Fri Jun 19 08:50:18 UTC 2015


On 06/16/15 02:32 PM, Jim Klimov wrote:
>
>   Hello again,
>
>   Now that I've got a newly upgraded Hipster after all, attempts to update it by running pkg fail due to:
>
>   ===
>
>   Linked image publisher checkpkg: update failed (linked image exception(s)):
>
>   A 'pubcheck-linked' operation failed for child 'zone:mylocalzone' with an unexpected
>   return value of 99 and generated the following output:
>   Traceback (most recent call last):
>     File "/usr/bin/pkg", line 5423, in handle_errors
>       __ret = func(*args, **kwargs)
>     File "/usr/bin/pkg", line 1815, in __dispatch
>       rv = op_func(op, _api_inst, **pwargs)
>     File "/usr/bin/pkg", line 4027, in pubcheck_linked
>       api_inst.linked_publisher_check()
>     File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 206, in wrapper
>       return f(instance, *fargs, **f_kwargs)
>     File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1628, in linked_publisher_check
>       self.__linked_pubcheck()
>     File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1607, in __linked_pubcheck
>       self._img.linked.pubcheck()
>     File "/usr/lib/python2.6/vendor-packages/pkg/client/linkedimage/common.py", line 1050, in pubcheck
>       linked_pub_error=(pubs, ppubs))
>   PlanCreationException:
>   Invalid child image publisher configuration.  Child image publisher
>   configuration must be a superset of the parent image publisher configuration.
>   Please update the child publisher configuration to match the parent.  If the
>   child image is a zone this can be done automatically by detaching and
>   attaching the zone.
>
>   The parent image has the following enabled publishers:
>       PUBLISHER 0: openindiana.org
>       PUBLISHER 1: opensolaris.org
>
>   The child image has the following enabled publishers:
>       PUBLISHER 0: on-nightly
>       PUBLISHER 1: openindiana.org (non-sticky)
>       PUBLISHER 2: opensolaris.org
>
>
>   pkg: This is an internal error in pkg(5) version 2a5f6ab.  Please log a
>   Service Request about this issue including the information above and this
>   message.
>
>   ===
>
>
>
>
>   It does not very much seem true that the child publisher configuration
>   is NOT a superset of the parent's one (except for that sticky remark).
>
>   Oh, and the publishers were different (2014.1 remained in the local zone).
>
>   While there was little problem removing the non-sticky note in this zone,
>   as well as updating the publisher definition, it did not help - same error.
>
>   Detaching and attaching (without and with "-u") did not succeed and left
>   the zone un-mountable so I had to rollback and fix it up.
>
>   Subsequent upgrade was to "pkg -R /zones/mylocalzone/root/ update" from GZ...
>   and it did not solve the issue, either.
>
>   Only removing the "on-nightly" in the local zone (so publisher lists are now
>   identical - which defeats the purpose of building/testing stuff in non-global
>   zones) allowed "pkg" to consider an upgrade strategy.
>
>   I wonder if pkg(5) worked as intended here, or there is a mistake in it indeed?
>   Perhaps if linked-zone operation is a no-go, it should revert to old algorithm
>   automatically? Or are linked images the new default/requirement?
>
>   Thanks,
>   // Jim Klimov

FYI, today on may latest /hipster installation, I have tried to add gparted (first had to set same publishers in both Zones - 
actually was forced to, because it has failed with error described above):
---8<---
$ pfexec pkg install -v pkg:/desktop/administration/gparted
            Packages to install:         2
             Services to change:         2
      Estimated space available: 100.60 GB
Estimated space to be consumed:  61.20 MB
        Create boot environment:        No
Create backup boot environment:        No
           Rebuild boot archive:        No

Changed packages:
openindiana.org
   desktop/administration/gparted
     None -> 0.4.5-2015.0.0.0
   system/storage/parted
     None -> 1.8.8.1-2014.1.2.0

Services:
   restart_fmri:
     svc:/application/desktop-cache/desktop-mime-cache:default
     svc:/system/rbac:default

Editable files to change:
   Install:
     etc/security/exec_attr.d/desktop-administration-gparted

Planning linked: 0/2 done; 1 working: zone:oi151a9
Linked image 'zone:oi151a9' output:
|      Estimated space available: 100.60 GB
| Estimated space to be consumed: 113.19 MB
|           Rebuild boot archive:        No
`
Planning linked: 1/2 done; 1 working: zone:oiHipster
Linked image 'zone:oiHipster' output:
|      Estimated space available: 100.60 GB
| Estimated space to be consumed:  40.96 MB
|           Rebuild boot archive:        No
`
Planning linked: 2/2 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                2/2         97/97      1.7/1.7  2.0M/s

Downloading linked: 0/2 done; 1 working: zone:oi151a9
Downloading linked: 1/2 done; 1 working: zone:oiHipster
Downloading linked: 2/2 done
PHASE                                          ITEMS
Installing new actions                       135/135
Updating package state database                 Done.
Updating package cache                           0/0.
Updating image state                            Done.
Creating fast lookup database                   Done.
Reading search index                            Done.
Updating search index                            2/2.
Executing linked: 0/2 done; 1 working: zone:oi151a9
Executing linked: 1/2 done; 1 working: zone:oiHipster
Executing linked: 2/2 done
Updating package cache                           5/5.
--->8---

Looks like package was installed to both zones!?
Not really, I have checked oiHipster one and package is not there. This output is bit confusing now...

Best regards.

> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>

-- 
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:    +49  174 3109 288,     Skype: predrag.zecevic
E-mail:    predrag.zecevic at 2e-systems.com

Headquarter:          2e Systems GmbH, Königsteiner Str. 87,
                       65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:    Phil Douglas

http://www.2e-systems.com/ - Making your business fly!



More information about the openindiana-discuss mailing list