LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-21-2007, 10:50 AM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
A problem upgrading blastwave packages with zones


Hi.

I installed some packages in the global zone and later I created two native zones as well. The configuration is a bare sparse zone:
Quote:
zonename: ssh-zone
zonepath: /export/home/zones/ssh-zone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
However, I never realized that these two zones inherited some way blastwave packages while I expected they didn't: indeed /opt/csw is there, in the two zones root directory.

Today, running pkg-get -u I got the following errors:
Quote:
# /opt/csw/bin/pkg-get -u
## Verifying package <CSWpython> dependencies in zone <sjsas-zone>
## Verifying package <CSWpython> dependencies in zone <ssh-zone>

The package <CSWbittorrent> depends on package <CSWpython> currently
being removed from zone <sjsas-zone>.

The package <CSWbittorrent> depends on package <CSWpython> currently
being removed from zone <ssh-zone>.

The package <CSWbittorrent> depends on package <CSWpython> currently
being removed from zone <sjsas-zone>.

The package <CSWbittorrent> depends on package <CSWpython> currently
being removed from zone <ssh-zone>.

Dependency checking failed for package <CSWpython> on zones
<sjsas-zone, ssh-zone>.

Do you want to continue with the removal of <CSWpython> [y,n,?]
Why did this happen? What should I do then?
 
Old 12-21-2007, 01:56 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
At their creation, zones inherit all packages already installed in the global zone. You can limit new package installation to the global zone by using the -G pkgadd flag.

I've read that this can be done with the ADMINFLAG variable:
Code:
export ADMINFLAG=" -G"
 
Old 12-21-2007, 04:28 PM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
I didn't know that inheriting packages would imply copying packages installed in /opt, I thought that in sparse zones only lib, platform, sbin and usr would be used from root zones and other packages ignored.

I'll investigate about the environment variable you told me, thanks.

By the way, how do you explain then pkg-get behaviour? Why can it upgrade packages in the global zone but cannot do it in the other zones? Installed packages are the same!
 
Old 12-22-2007, 07:23 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by crisostomo_enrico View Post
I didn't know that inheriting packages would imply copying packages installed in /opt, I thought that in sparse zones only lib, platform, sbin and usr would be used from root zones and other packages ignored.
Don't confuse directories and packages. Package files can spread many directories. The lib, platform and so on directories are lofs mounted instead of copied in the case of sparse zones, but most packages, outside those specifically to be excluded by design (see http://docs.sun.com/app/docs/doc/817...hahuosk?a=view for details), are propagated to all zones zone.
Quote:
By the way, how do you explain then pkg-get behaviour?
Something might be broken in the CSWpython package dependency.
Quote:
Why can it upgrade packages in the global zone but cannot do it in the other zones? Installed packages are the same!
What happens if you let the installer continue ?
 
Old 12-22-2007, 09:39 AM   #5
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thanks jlliagre.

If I let the script go on, it removes the python package from all the zones, then it seems to install another one, then informs me of another such problem for another package:
Quote:
The package <CSWlibcairo> depends on package <CSWpng> currently being
removed from zone <sjsas-zone>.

The package <CSWlibcups> depends on package <CSWpng> currently being
removed from zone <sjsas-zone>.

The package <CSWpango> depends on package <CSWpng> currently being
removed from zone <sjsas-zone>.

The package <CSWgtk2> depends on package <CSWpng> currently being
removed from zone <sjsas-zone>.

The package <CSWsdlimage> depends on package <CSWpng> currently being
removed from zone <sjsas-zone>.

The package <CSWarts> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWvlc> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWimlib2> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWgdkpixbuf> depends on package <CSWpng> currently
being removed from zone <ssh-zone>.

The package <CSWlibxine> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWxineui> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWlibcairo> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWlibcups> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWpango> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWgtk2> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

The package <CSWsdlimage> depends on package <CSWpng> currently being
removed from zone <ssh-zone>.

Dependency checking failed for package <CSWpng> on zones <sjsas-zone,
ssh-zone>.

Do you want to continue with the removal of <CSWpng> [y,n,?]
I'll follow on until the end and let's see if the installed packages will work. What's strange to me is that pkg-get -u informs about broken dependencies in zone, but not in the global zone and it should be performing the same operation in all the zones!
 
Old 12-22-2007, 09:57 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I guess a better approach would be to install Blastwave's packages on a non global zone, and possibly to share its /opt/csw to other ones.

One issue is that csw packages do not separate configuration directories from the rest. There should have been /var/opt/csw and /etc/opt/csw to comply with Solaris/SVR4 standards.
 
Old 12-26-2007, 02:27 AM   #7
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Quote:
I guess a better approach would be to install Blastwave's packages on a non global zone, and possibly to share its /opt/csw to other ones.
Thanks for the suggestion jlliagre, it indeed seems the best option I have. I'll migrate the few users I have in the global zone! I suppose it's safe, then, to do this. Would you then directly loopback mount the non global zone's /opt dir in the other zones?

Quote:
One issue is that csw packages do not separate configuration directories from the rest. There should have been /var/opt/csw and /etc/opt/csw to comply with Solaris/SVR4 standards.
Thanks for pointing out this.

Thanks and happy new year.
Enrico
 
Old 12-26-2007, 12:26 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by crisostomo_enrico View Post
I'll migrate the few users I have in the global zone! I suppose it's safe, then, to do this.
The best practice would probably be to keep the global zone for administrative tasks and to have end users (outside you) only in non global zones. Of course this is tricky to implement if your users log in graphically on the machine itself.
Quote:
Would you then directly loopback mount the non global zone's /opt dir in the other zones?
Not the whole opt, just /opt/csw. And as I wrote, the fact blastwave's is mixing global and local files in a single directory imply you need to have it mounted read-write.
Quote:
Thanks and happy new year.
Thanks, but you are one week early ...
 
Old 12-26-2007, 02:31 PM   #9
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thanks jlliagre.

Quote:
The best practice would probably be to keep the global zone for administrative tasks and to have end users (outside you) only in non global zones. Of course this is tricky to implement if your users log in graphically on the machine itself.
Yes, I got the idea. Indeed, I once posted because I have one user which logs on the machine itself and I had a problem which I described here http://www.linuxquestions.org/questi...a-zone-597976/
and unfortunately I never solved. I should try and check it another time.

Quote:
Not the whole opt, just /opt/csw. And as I wrote, the fact blastwave's is mixing global and local files in a single directory imply you need to have it mounted read-write.
Thanks, I indeed meant /opt/csw. Yes, I don't like it either.

Quote:
Thanks, but you are one week early ...
Yes it's true but as I'm traveling and I'll fly back home on that date, I didn't want to be too late...

Bye,
Enrico.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A strange problem with zones and host names crisostomo_enrico Solaris / OpenSolaris 2 11-08-2007 06:38 AM
Problem installing Openoffice using blastwave alek66 Solaris / OpenSolaris 4 09-07-2007 09:32 AM
blastwave tataros3 Solaris / OpenSolaris 5 10-04-2005 07:40 AM
upgrading packages paulr1984 Linux - Software 6 03-23-2005 03:42 PM
Upgrading packages linuxhippy Slackware 2 03-21-2005 06:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration