[osol-discuss] pkg install broken in zone
Hi, I upgraded to snv_111, and now some of my zones have a problem trying to install packages. I've tried SUNWj6rt, SUNWapach and SUNWtop. All give the same error: Creating Plan -Traceback (most recent call last): File /usr/bin/pkg, line 2228, in ? __ret = main_func() File /usr/bin/pkg, line 2177, in main_func return install(mydir, pargs) File /usr/bin/pkg, line 715, in install update_index=update_index) File /usr/lib/python2.4/vendor-packages/pkg/client/api.py, line 152, in plan_install filters=filters, verbose=verbose) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 2257, in make_install_plan ip.evaluate() File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 411, in evaluate self.evaluate_fmri(f) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 279, in evaluate_fmri m = self.image.get_manifest(pfmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 976, in get_manifest m = self.__get_manifest(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 950, in __get_manifest m = self.__fetch_manifest_with_retries(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 785, in __fetch_manifest_with_retries m = self.__fetch_manifest(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 887, in __fetch_manifest m.set_content(mcontent) File /usr/lib/python2.4/vendor-packages/pkg/manifest.py, line 254, in set_content action = actions.fromstr(l) File /usr/lib/python2.4/vendor-packages/pkg/actions/__init__.py, line 124, in fromstr action = types[type](**attr_dict) File /usr/lib/python2.4/vendor-packages/pkg/actions/attribute.py, line 55, in __init__ assert len(attrs) == 2 AssertionError 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 '666742d60b75'. :~# uname -a SunOS darkstar 5.11 snv_111b i86pc i386 i86pc Solaris Can anyone help? Thanks John Ryan -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] pkg install broken in zone
I upgraded to snv_111, and now some of my zones have a problem trying to install packages Did you also upgrade the zones? It's not done automatically through image-update on the global zone. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] pkg install broken in zone
John Ryan wrote: Hi, I upgraded to snv_111, and now some of my zones have a problem trying to install packages. I've tried SUNWj6rt, SUNWapach and SUNWtop. All give the same error: Creating Plan -Traceback (most recent call last): File /usr/bin/pkg, line 2228, in ? __ret = main_func() File /usr/bin/pkg, line 2177, in main_func return install(mydir, pargs) File /usr/bin/pkg, line 715, in install update_index=update_index) File /usr/lib/python2.4/vendor-packages/pkg/client/api.py, line 152, in plan_install filters=filters, verbose=verbose) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 2257, in make_install_plan ip.evaluate() File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 411, in evaluate self.evaluate_fmri(f) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 326, in evaluate_fmri self.evaluate_fmri(cf) File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py, line 279, in evaluate_fmri m = self.image.get_manifest(pfmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 976, in get_manifest m = self.__get_manifest(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 950, in __get_manifest m = self.__fetch_manifest_with_retries(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 785, in __fetch_manifest_with_retries m = self.__fetch_manifest(fmri) File /usr/lib/python2.4/vendor-packages/pkg/client/image.py, line 887, in __fetch_manifest m.set_content(mcontent) File /usr/lib/python2.4/vendor-packages/pkg/manifest.py, line 254, in set_content action = actions.fromstr(l) File /usr/lib/python2.4/vendor-packages/pkg/actions/__init__.py, line 124, in fromstr action = types[type](**attr_dict) File /usr/lib/python2.4/vendor-packages/pkg/actions/attribute.py, line 55, in __init__ assert len(attrs) == 2 AssertionError 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 '666742d60b75'. :~# uname -a SunOS darkstar 5.11 snv_111b i86pc i386 i86pc Solaris Can anyone help? Have your zones been updated yet? From the output I see, I'm guessing not. Your zones need to be running the same version of SUNWipkg, etc. as the global zone. Cheers, -- Shawn Walker ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] pkg install broken in zone
Hi Sean, I think I just shot myself in the foot. r...@bs-dsvr28-s:~# zlogin zone1 pkg list -v SUNWipkg FMRI STATE UFIX pkg:/sunwi...@0.5.11,5.11-0.111:20090508T161015Z installed pkg:/sunwi...@0.5.11,5.11-0.101:20081119T223449Z installed u--- r...@bs-dsvr28-s:~# zlogin zone1 [Connected to zone 'zone1' pts/5] Last login: Thu Jul 23 18:32:20 on pts/3 Sun Microsystems Inc. SunOS 5.11 snv_101bNovember 2008 r...@zone1:~# pkg uninstall pkg:/sunwi...@0.5.11,5.11-0.101:20081119T223449Z PHASEACTIONS Removal Phase190/190 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages1/1 r...@zone1:~# pkg list -v SUNWipkg -bash: /usr/bin/pkg: No such file or directory This zone was cloned from an snv_101 system, and attached with a -u At least I see the problem, and I can repeat the proceedure, but do you have any idea what I can/should have done. Thanks John -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] pkg install broken in zone
John Ryan wrote: Hi Sean, I think I just shot myself in the foot. r...@bs-dsvr28-s:~# zlogin zone1 pkg list -v SUNWipkg FMRI STATE UFIX pkg:/sunwi...@0.5.11,5.11-0.111:20090508T161015Z installed pkg:/sunwi...@0.5.11,5.11-0.101:20081119T223449Z installed u--- r...@bs-dsvr28-s:~# zlogin zone1 [Connected to zone 'zone1' pts/5] Last login: Thu Jul 23 18:32:20 on pts/3 Sun Microsystems Inc. SunOS 5.11 snv_101bNovember 2008 r...@zone1:~# pkg uninstall pkg:/sunwi...@0.5.11,5.11-0.101:20081119T223449Z PHASEACTIONS Removal Phase190/190 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages1/1 r...@zone1:~# pkg list -v SUNWipkg -bash: /usr/bin/pkg: No such file or directory This zone was cloned from an snv_101 system, and attached with a -u At least I see the problem, and I can repeat the proceedure, but do you have any idea what I can/should have done. I'm not certain what the right way is to update a zone. Perhaps this: pkg image-update But maybe someone else knows. Cheers, -- Shawn Walker ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] pkg install broken in zone
I'm not certain what the right way is to update a zone. But maybe someone else knows. I'm not an expert on this, but I believe the non-global zones will update themselves as long as you detach them before you do the pkg image-update. Here is a link that shows how to do it using OpenSolaris 2008.11: http://blogs.sun.com/jerrysblog/entry/updating_zones_on_opensolaris_2008 That was a big bug fix when it first came out, but still in my ignorance, I hosed a bunch of my zones on one of my Indiana 2008.11 boxes when I didn't detach the zones before doing a pkg image-update (hopefully you can read the article and not have to suffer as I did). To show the difference between older OpenSolaris and newer OpenSolaris, here is a blog from one of the guys on the zones team about the state of zones over a year ago back in OpenSolaris 2008.05 (they were in bad shape back then): http://blogs.sun.com/dp/entry/a_field_guide_to_zones Another important caveat / missing piece that I noticed is missing from all of the OpenSolaris Indiana Sun blogs and documentation I've looked at so far, to do resource caps on CPU and RAM memory in OpenSolaris the way he's doing it, I think you need to install the SUNWrcap package first like this: # pkg install SUNWrcap I couldn't get resource capped zones to install in a brand new Indiana install and it took me a week to figure that one out. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org