[bug-notifications] [cswclassutils 0004416]: check for running in a zone

Mantis Bug Tracker noreply at opencsw.org
Tue Jun 21 17:06:43 CEST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4416 
====================================================================== 
Reported By:                verboEse
Assigned To:                bonivart
====================================================================== 
Project:                    cswclassutils
Issue ID:                   4416
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2010-05-11 14:26 CEST
Last Modified:              2011-06-21 17:06 CEST
====================================================================== 
Summary:                    check for running in a zone
Description: 
package install should check for running in a zone and reject installation
during checkinstall
====================================================================== 

---------------------------------------------------------------------- 
 (0009129) skayser (administrator) - 2011-06-21 17:06
 https://www.opencsw.org/mantis/view.php?id=4416#c9129 
---------------------------------------------------------------------- 
Adding to this from a conversion that happened today on #opencsw. User jMCg
encountered a non-self-descriptive error during package installation in a
sparse zone. A check, as suggested by bonivart would help to point users to
the underlying issue and solution straight away.

16:00 < jMCg> Aaand another failure: http://dpaste.com/556976/
16:02 <@skayser> jMCg: non global zone?
16:02 < jMCg> skayser: yeah... /usr is shared :-/
16:02 <@skayser> you need to install the cas* packages in the global zone
first
16:02 < jMCg> http://dpaste.com/556978/
16:03 < jMCg> ACK.
16:15 <@skayser> some intelligence to fail gracefully on shared-/usr paths
would be
                 good
16:15 <@skayser> with a meaningful error message
16:22 -!- verboese [~chatzilla at 145.228.88.161] has quit [Ping timeout: 246
seconds]
16:25 < jMCg> Yeah, like: "You need to install the cas* packages in the
global zone
              first"
16:28 < bonivart> every cas script could contain a few lines testing for
/usr 
                  read-only
16:29 < bonivart> mount -v states it clearly if you're in a sparse zone,
then it 
                  could print a useful message


Session transcript with the error (taken from http://dpaste.com/556976/):

root at atvp1uascm021:~# pkgutil -yu perl ap2_worker subversion

.....

=> Installing CSWncurses-5.7,REV=2010.05.21 (3/55) ...
Please see /opt/csw/share/doc/ncurses/license for license information.

Installation of <CSWncurses> was successful.

=> Installing CSWcas-usergroup-1.44,REV=2011.05.02 (4/55) ...
Please see /opt/csw/share/doc/cas_usergroup/license for license
information.
ERROR: attribute verification of
</usr/sadm/install/scripts/i.cswusergroup> failed
    pathname does not exist
ERROR: attribute verification of
</usr/sadm/install/scripts/r.cswusergroup> failed
    pathname does not exist
ERROR: attribute verification of
</usr/sadm/install/scripts/i.cswusergroup> failed
    pathname does not exist
ERROR: attribute verification of
</usr/sadm/install/scripts/r.cswusergroup> failed
    pathname does not exist

Installation of <CSWcas-usergroup> partially failed.
Exiting pkgutil due to pkgadd error: 2
root at atvp1uascm021:~#



More information about the bug-notifications mailing list