Sounds very much like:

7161790 zoneadm installs adds package with only global zone variant

pete

On 06/27/12 01:31, David Sechrest wrote:
I'd like to understand why the following installation is actually working. I'm 
wondering
if this is a known bug that I'm hitting here.

This is on S11 SRU93 sparc (I've also reproduced on S11 GA)

It's my understanding that package driver/x11/xsvc is only permitted to be
installed on x86. Simply trying to install it from the command line supports 
this:

# pkg list driver/x11/xsvc
pkg list: no packages matching 'driver/x11/xsvc' installed
# pkg install -nv driver/x11/xsvc
Creating Plan
pkg install: The following pattern(s) only matched packages that are not 
available
for the current image's architecture, zone type, and/or other variant:
         driver/x11/xsvc


The problem I'm having is with package, 
system/management/hmp/[email protected], which is
not bundled with the OS but comes from the systems group. There is a known bug
in this version of the package in that it has this in it's manifest:

depend fmri=driver/x11/xsvc type=require

and it should only require this package on x86.

What I don't understand is that when I try to install the hmp package it 
actually
installs and installs driver/x11/xsvc as well.

(first the dry-run)
# pkg install -nv hmp/hmp-tools; echo $?
            Packages to install:         4
      Estimated space available: 109.51 GB
Estimated space to be consumed: 192.97 MB
        Create boot environment:        No
Create backup boot environment:       Yes
           Rebuild boot archive:       Yes

Changed packages:
mp-re
   system/management/hmp/hmp-libs
     None ->  2.2.1.15513,5.11-1:20120314T235605Z
   system/management/hmp/hmp-tools
     None ->  2.2.1.15513,5.11-1:20120314T235822Z
solaris
   driver/x11/xsvc
     None ->  0.5.11,5.11-0.175.0.9.0.1.1:20120612T192700Z
   system/library/gcc-45-runtime
     None ->  4.5.2,5.11-0.175.0.0.0.2.537:20111019T115727Z
0

(now the real install)
# pkg install  hmp/hmp-tools ; echo $?
            Packages to install:   4
        Create boot environment:  No
Create backup boot environment: Yes

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  4/4     115/115    31.4/31.4$<3>

PHASE                                        ACTIONS
Install Phase                                263/263

PHASE                                          ITEMS
Package State Update Phase                       4/4
Image State Update Phase                         2/2
0

(and now driver/x11/xsvc is showing as installed!)
# pkg list driver/x11/xsvc
NAME (PUBLISHER)                                  VERSION                    IFO
driver/x11/xsvc                                   0.5.11-0.175.0.9.0.1.1     i--


This from 'pkg history':

          Operation: install
            Outcome: Failed
             Reason: Constrained
             Client: pkg
            Version: 90713a5f6a6f
               User: admin (60004)
          Boot Env.: s11_sru93
     Boot Env. UUID: be14d0f6-7084-ec0a-a53b-d3a6b37ccd72
      New Boot Env.: None
New Boot Env. UUID: (None)
           Snapshot: (None)
         Start Time: 2012-06-26T23:36:22
           End Time: 2012-06-26T23:36:26
         Total Time: 0:00:04
            Command: /usr/bin/pkg install -nv driver/x11/xsvc
        Start State:
None
          End State:
None
             Errors:
Traceback (most recent call last):
   File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1035, in 
__plan_op
     self._img.make_install_plan(**kwargs)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4014, in 
make_install_plan
     reject_list=reject_list)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 3977, in 
__make_plan_common
     ip.plan_install(**kwargs)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 576, 
in plan_install
     reject_list=reject_list)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 560, 
in __plan_install
     reject_list=reject_list)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 505, 
in __plan_install_solver
     installed_pkgs=installed_dict, reject_set=reject_set)
   File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 
3659, in __match_user_fmris
     rejected_pats=exclpats)
PlanCreationException: The following pattern(s) only matched packages that are 
not available
for the current image's architecture, zone type, and/or other variant:
         driver/x11/xsvc

          Operation: install
            Outcome: Succeeded
             Reason: None
             Client: pkg
            Version: 90713a5f6a6f
               User: admin (60004)
          Boot Env.: s11_sru93
     Boot Env. UUID: be14d0f6-7084-ec0a-a53b-d3a6b37ccd72
      New Boot Env.: None
New Boot Env. UUID: (None)
           Snapshot: (None)
         Start Time: 2012-06-26T23:43:36
           End Time: 2012-06-26T23:46:46
         Total Time: 0:03:10
            Command: /usr/bin/pkg install hmp/hmp-tools
        Start State:
Solver: [ Variables: 507 Clauses: 3118 Iterations: 1 State: Succeeded]
Timings: [phase 1:  3.657, phase 2:  1.142, phase 3:  4.425, phase 4:  0.000, 
phase 5:  0.002, phase 6:  0.000, phase 7:  0.140, phase 8:  6.603, phase 9:  
0.000, phase 10:  5.150, phase 11:  0.142, phase 12:  2.791]
Maintained incorporations: 
pkg://solaris/consolidation/gfx/[email protected],5.11-0.175.0.0.0.2.0:20111019T144752Z
         
pkg://solaris/consolidation/man/[email protected],5.11-0.175.0.0.0.0.0:20110927T192523Z
         
pkg://solaris/consolidation/admin/[email protected],5.11-0.175.0.0.0.2.0:20111019T144751Z
         
pkg://solaris/consolidation/SunVTS/[email protected],5.11-0.175.0.7.0.3.0:20120421T004225Z
         
pkg://solaris/consolidation/solaris_re/[email protected],5.11-0.175.0.0.0.2.0:20111019T122734Z
         
pkg://cacao/consolidation/cacao/[email protected],5.11-0.175.0.9.0.4.0:20120530T140411Z
         
pkg://solaris/consolidation/jdmk/[email protected],5.11-0.173.0.0.0.0.0:20110828T210111Z
         
pkg://solaris/consolidation/nvidia/[email protected],5.11-0.175.0.0.0.0.0:20110927T192422Z
         
pkg://solaris/consolidation/dbtg/[email protected],5.11-0.175.0.0.0.2.0:20111019T144751Z
         
pkg://solaris/consolidation/ips/[email protected],5.11-0.175.0.9.0.3.0:20120623T000446Z
         
pkg://solaris/consolidation/cde/[email protected],5.11-0.175.0.0.0.0.0:20110927T191905Z
         
pkg://solaris/consolidation/smcc/[email protected],5.11-0.175.0.0.0.2.0:20111019T144755Z
         
pkg://solaris/consolidation/osnet/[email protected],5.11-0.175.0.9.0.3.1:20120622T234322Z
         
pkg://solaris/consolidation/vpanels/[email protected],5.11-0.175.0.0.0.1.778:20111012T230640Z
         
pkg://solaris/consolidation/desktop/[email protected],5.11-0.175.0.8.0.3.0:20120524T231907Z
         
pkg://solaris/consolidation/l10n/[email protected],5.11-0.175.0.9.0.1.107:20120612T195416Z
         
pkg://solaris/consolidation/X/[email protected],5.11-0.175.0.8.0.2.1226:20120519T002403Z
         
pkg://solaris/consolidation/sic_team/[email protected],5.11-0.172.0.0.0.0.0:20110816T070737Z
         
pkg://solaris/consolidation/sunpro/[email protected],5.11-0.174.0.0.0.0.0:20110921T184135Z
         pkg://solaris/[email protected],5.11-0.175.0.9.0.3.0:20120623T002818Z
         
pkg://solaris/consolidation/cns/[email protected],5.11-0.175.0.0.0.1.0:20111012T230319Z
         
pkg://solaris/consolidation/nspg/[email protected],5.11-0.175.0.0.0.2.0:20111019T144753Z
         
pkg://solaris/consolidation/install/[email protected],5.11-0.175.0.7.0.2.0:20120416T210633Z
         
pkg://solaris/consolidation/userland/[email protected],5.11-0.175.0.9.0.3.0:20120622T235911Z
         
pkg://solaris/consolidation/desktop/[email protected],5.11-0.175.0.8.0.3.0:20120524T231910Z
         
pkg://solaris/consolidation/sfw/[email protected],5.11-0.175.0.0.0.2.0:20111019T144754Z

Package version changes:
None ->  
pkg://mp-re/system/management/hmp/[email protected],5.11-1:20120314T235605Z
None ->  
pkg://mp-re/system/management/hmp/[email protected],5.11-1:20120314T235822Z
None ->  
pkg://solaris/driver/x11/[email protected],5.11-0.175.0.9.0.1.1:20120612T192700Z
None ->  
pkg://solaris/system/library/[email protected],5.11-0.175.0.0.0.2.537:20111019T115727Z

          End State:
None ->  
pkg://mp-re/system/management/hmp/[email protected],5.11-1:20120314T235605Z
None ->  
pkg://mp-re/system/management/hmp/[email protected],5.11-1:20120314T235822Z
None ->  
pkg://solaris/driver/x11/[email protected],5.11-0.175.0.9.0.1.1:20120612T192700Z
None ->  
pkg://solaris/system/library/[email protected],5.11-0.175.0.0.0.2.537:20111019T115727Z


Known issue? Or is there a valid reason driver/x11/xsvc can't be installed by 
itself but
can still be pulled in as a dependency?

# pkg contents -m driver/x11/xsvc | grep variant.arch
set name=variant.arch value=i386
# uname -a
SunOS oc-t5220-04 5.11 11.0 sun4v sparc SUNW,SPARC-Enterprise-T5220

thanks
Dave



---
David Sechrest                            Phone:  (408) 276-5800 x15800
Systems Management                        Email:  [email protected]
Oracle Corporation


_______________________________________________
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