OpenSolaris

Printable Version Enter a New Search
Bug ID 6492148
Synopsis package SUNWxwsvr upgrade fails with zones to Nevada
State 10-Fix Delivered:Verified (Fix available in build)
Category:Subcategory xserver:install
Keywords zulu
Responsible Engineer Kim C Tran
Reported Against snv_51
Duplicate Of
Introduced In
Commit to Fix snv_62
Fixed In snv_62
Release Fixed solaris_nevada(snv_62)
Related Bugs 6487934 , 6492147
Submit Date 10-November-2006
Last Update Date 30-April-2007
Description
reproduce:
- intall s10[u{1,2}]
- create a sparse root zone
- upgrade to snv
- check upgrade_log, those packages failed in the global zone before ever getting to the non-global zone where it will fail as well. 

Installation of <SUNWxwsvr> was successful.
WARNING: /a/usr/openwin/lib/xscreensaver may not overwrite a populated directory.
pkginstall: ERROR: /a/usr/openwin/lib/xscreensaver could not be installed.

Installation of <SUNWxwsvr> on zone <SUNWlu-zfork-z1> partially
failed.
WARNING: /a/usr/openwin/lib/xscreensaver may not overwrite a populated directory.
2838 blocks
pkginstall: ERROR: /a/usr/openwin/lib/xscreensaver could not be installed.

Installation of <SUNWxwsvr> on zone <SUNWlu-zfork-z2> partially
failed.
pkgadd return code = 2
Doing pkgadd of SUNWfrxwsvr to /
332 blocks
see comment
This had also been seen in snv_59 when I did zones upgrade testing from s10u3 FCS to snv_59 with one wholeroot zone and one sparseroot zone when I try to test a fix for pkgcond for bugid 6532654.  This happens with or without the pkgcond fix:

	This is from the upgrade_log:

Doing pkgadd of SUNWxwsvr to /
NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp10468dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv
CPIO_xpath=/usr/bin
CPIO_cmd=/usr/bin/cpio
UNZIP_xpath=/usr/bin
UNZIP_cmd=/usr/bin/unzip
BZCAT_xpath=/usr/bin
BZCAT_cmd=/usr/bin/bzcat
ZCAT_xpath=/usr/bin
ZCAT_cmd=/usr/bin/zcat
LN_xpath=/usr/bin
LN_cmd=/usr/bin/ln
NAWK_xpath=/usr/bin
NAWK_cmd=/usr/bin/nawk
RM_xpath=/usr/bin
RM_cmd=/usr/bin/rm
+ eval_pkg
+ read path
+ [ /cdrom/Solaris_11/Product/SUNWxwsvr != NULL ]
PKGSRC=/cdrom/Solaris_11/Product/SUNWxwsvr
+ [ -r /cdrom/Solaris_11/Product/SUNWxwsvr/archive/none -o -r /cdrom/Solaris_11/
Product/SUNWxwsvr/archive/none.Z -o -r /cdrom/Solaris_11/Product/SUNWxwsvr/archi
ve/none.bz2 ]
is_an_archive=1
+ [ 1 -eq 0 ]
Reloc_Arch=/cdrom/Solaris_11/Product/SUNWxwsvr/archive/none
+ [ ! -d /a/var/sadm/pkg/SUNWxwsvr/save ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ cd /a/usr
+ [ null = null ]
is_a_filelist=1
+ read path
( a big list of subject )
+ echo X11/share/man/man1/xscreensaver.1
list_empty=0
+ read path
+ echo share/applications/screensaver-properties.desktop
list_empty=0
+ read path
+ [ ! -x /usr/bin/bzcat ]
+ [ 1 -eq 1 ]
+ /usr/bin/cpio -C 512 -idukm -E /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ /usr/bin/bzcat /cdrom/Solaris_11/Product/SUNWxwsvr/archive/none.bz2
2861 blocks
status=0
+ [ 0 -ne 0 ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ /usr/bin/rm /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ [ 0 -eq 1 ]
+ exit 0

Installation of <SUNWxwsvr> was successful.
WARNING: /a/usr/openwin/lib/xscreensaver may not overwrite a populated directory
.
NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp10481dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv
CPIO_xpath=/usr/bin
CPIO_cmd=/usr/bin/cpio
UNZIP_xpath=/usr/bin
UNZIP_cmd=/usr/bin/unzip
BZCAT_xpath=/usr/bin
BZCAT_cmd=/usr/bin/bzcat
ZCAT_xpath=/usr/bin
ZCAT_cmd=/usr/bin/zcat
LN_xpath=/usr/bin
LN_cmd=/usr/bin/ln
NAWK_xpath=/usr/bin
NAWK_cmd=/usr/bin/nawk
RM_xpath=/usr/bin
RM_cmd=/usr/bin/rm
+ eval_pkg
+ read path
+ [ NULL != NULL ]
+ exit 0
pkginstall.exe: ERROR: /a/usr/openwin/lib/xscreensaver could not be installed.

Installation of <SUNWxwsvr> on zone <SUNWlu-sparserootzone> partially
failed.
WARNING: /a/usr/openwin/lib/xscreensaver may not overwrite a populated directory
.
NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp10492dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv
CPIO_xpath=/usr/bin
CPIO_cmd=/usr/bin/cpio
UNZIP_xpath=/usr/bin
UNZIP_cmd=/usr/bin/unzip
BZCAT_xpath=/usr/bin
BZCAT_cmd=/usr/bin/bzcat
ZCAT_xpath=/usr/bin
ZCAT_cmd=/usr/bin/zcat
LN_xpath=/usr/bin
LN_cmd=/usr/bin/ln
NAWK_xpath=/usr/bin
NAWK_cmd=/usr/bin/nawk
RM_xpath=/usr/bin
RM_cmd=/usr/bin/rm
+ eval_pkg
+ read path
+ [ /var/tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr != NULL ]
PKGSRC=/var/tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr
+ [ -r /var/tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr/archive/none -o -r /var/
tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr/archive/none.Z -o -r /var/tmp//insta
llY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr/archive/none.bz2 ]
is_an_archive=1
+ [ 1 -eq 0 ]
Reloc_Arch=/var/tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr/archive/none
+ [ ! -d /a/var/sadm/pkg/SUNWxwsvr/save ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ cd /a/usr
+ [ null = null ]
is_a_filelist=1
+ read path
( a big list of output)
+ read path
+ [ ! -x /usr/bin/bzcat ]
+ [ 1 -eq 1 ]
+ /usr/bin/cpio -C 512 -idukm -E /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ /usr/bin/bzcat /var/tmp//installY6aWEu/dstreAAAZ6aWEu/SUNWxwsvr/archive/none.b
z2
2861 blocks
status=0
+ [ 0 -ne 0 ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ /usr/bin/rm /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ [ 0 -eq 1 ]
+ exit 0
pkginstall.exe: ERROR: /a/usr/openwin/lib/xscreensaver could not be installed.

Installation of <SUNWxwsvr> on zone <SUNWlu-wholerootzone> partially
failed.
pkgadd return code = 2


In s10 updates, /usr/openwin/lib/xscreensaver is a directory and it is shared by the following packages:

line2-v240# grep -w /usr/openwin/lib/xscreensaver /var/sadm/install/contents  | more 
/usr/openwin/lib/xscreensaver d none 0755 root bin SUNWxwsvr SUNWxscreensaver-hacks SUNWxscreensaver-hacks-gl

However in snv_59, it had become a symbolic link as follow:

root@ins3525-svr# grep openwin/lib/xscreensaver pkgmap
1 s none openwin/lib/xscreensaver=../../X11/lib/xscreensaver
root@ins3525-svr# pwd
/export/nv/solarisdvd.nvx_dvd/latest/Solaris_11/Product/SUNWxwsvr
root@ins3525-svr# 

If a directory becomes a symoblic link, then all the packages that touches that directory must be pkgrm.  

I had tested the suggested fix on a sparc with zones upgrade and it works fine and this is from the upgrade_log:

Removing package SUNWxscreensaver-hacks:

Removal of <SUNWxscreensaver-hacks> from zone <SUNWlu-sparserootzone>
was successful.

Removal of <SUNWxscreensaver-hacks> from zone <SUNWlu-wholerootzone>
was successful.

Removal of <SUNWxscreensaver-hacks> was successful.
Removing package SUNWxscreensaver-hacks-gl:

Removal of <SUNWxscreensaver-hacks-gl> from zone
<SUNWlu-sparserootzone> was successful.
Removal of <SUNWxscreensaver-hacks-gl> from zone
<SUNWlu-wholerootzone> was successful.

Removal of <SUNWxscreensaver-hacks-gl> was successful.


The global zone pkgadd was successful:

Doing pkgadd of SUNWxwsvr to /
NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp28983dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv


+ /usr/bin/cpio -C 512 -idukm+ /usr/bin/bzcat  /net/ins3525-svr/export/nv/solarisdvd.nvs_dvd/59_xscreen/Solaris_11/Produ
ct/SUNWxwsvr/archive/none.bz2
-E /a/var/sadm/pkg/SUNWxwsvr/save/filelist
2861 blocks
status=0
+ [ 0 -ne 0 ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ /usr/bin/rm /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ [ 0 -eq 1 ]
+ exit 0

Installation of <SUNWxwsvr> was successful.


The pkgadd of SUNWxwsvr to sparseroot zone was successful:

NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp28995dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv
CPIO_xpath=/usr/bin
CPIO_cmd=/usr/bin/cpio
UNZIP_xpath=/usr/bin
UNZIP_cmd=/usr/bin/unzip
BZCAT_xpath=/usr/bin
BZCAT_cmd=/usr/bin/bzcat
ZCAT_xpath=/usr/bin
ZCAT_cmd=/usr/bin/zcat
LN_xpath=/usr/bin
LN_cmd=/usr/bin/ln
NAWK_xpath=/usr/bin
NAWK_cmd=/usr/bin/nawk
RM_xpath=/usr/bin
RM_cmd=/usr/bin/rm
+ eval_pkg
+ read path
+ [ NULL != NULL ]
+ exit 0

Installation of <SUNWxwsvr> on zone <SUNWlu-sparserootzone> was
successful.


The pkgadd of SUNWxwsvr to wholerootzone was successful:

NAME=i.none
FILELIST=/a/var/sadm/pkg/SUNWxwsvr/save/filelist
BD=/a/usr
is_an_archive=0
is_a_filelist=0
list_empty=1
local_install=0
Spcl_init=0
Rm_alt_sav=0
Tmp_xpath=/usr/tmp29005dir
MV_xpath=/usr/bin
MV_cmd=/usr/bin/mv
CPIO_xpath=/usr/bin
CPIO_cmd=/usr/bin/cpio
UNZIP_xpath=/usr/bin
UNZIP_cmd=/usr/bin/unzip
BZCAT_xpath=/usr/bin
BZCAT_cmd=/usr/bin/bzcat
ZCAT_xpath=/usr/bin
ZCAT_cmd=/usr/bin/zcat
LN_xpath=/usr/bin
LN_cmd=/usr/bin/ln
NAWK_xpath=/usr/bin
NAWK_cmd=/usr/bin/nawk
RM_xpath=/usr/bin
RM_cmd=/usr/bin/rm
+ eval_pkg
+ read path
+ [ /var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr != NULL ]
PKGSRC=/var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr
+ [ -r /var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr/archive/none -o -r /var/tmp//installRea4O4/dstreAAASea4O4/SUNWxw
svr/archive/none.Z -o -r /var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr/archive/none.bz2 ]
is_an_archive=1
+ [ 1 -eq 0 ]
Reloc_Arch=/var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr/archive/none
+ [ ! -d /a/var/sadm/pkg/SUNWxwsvr/save ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ cd /a/usr

( a big list of file )

+ read path
+ echo share/applications/screensaver-properties.desktop
list_empty=0
+ read path
+ [ ! -x /usr/bin/bzcat ]
+ [ 1 -eq 1 ]
+ /usr/bin/cpio -C 512 -idukm -E /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ /usr/bin/bzcat /var/tmp//installRea4O4/dstreAAASea4O4/SUNWxwsvr/archive/none.bz2
2861 blocks
status=0
+ [ 0 -ne 0 ]
+ [ -f /a/var/sadm/pkg/SUNWxwsvr/save/filelist ]
+ /usr/bin/rm /a/var/sadm/pkg/SUNWxwsvr/save/filelist
+ [ 0 -eq 1 ]
+ exit 0

Installation of <SUNWxwsvr> on zone <SUNWlu-wholerootzone> was
successful.
Work Around
N/A
Comments
N/A