Issue #3445 has been updated by Pavol Dilung.

Category set to library
Target version set to 1.5.7
Keywords set to facter solaris zone virtual


----------------------------------------
Bug #3445: Facter  does not handle solaris branded zones properly
http://projects.puppetlabs.com/issues/3445

Author: Pavol Dilung
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: library
Target version: 1.5.7
Keywords: facter solaris zone virtual
Branch: 


Facter 1.5.7 does not handle solaris branded zones properly.

Reproducible: always

Steps to reproduce:

Solaris 8 branded zone:

    $ uname -a
    SunOS zzm1s063 5.8 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V890
    $ /opt/puppet/sfw/bin/facter | grep virtual
    /opt/puppet/sfw/bin/facter | grep virtual 
    is_virtual => false
    virtual => physical

Solaris 9 branded zone:

    $ uname -a
    SunOS zzm1s062 5.9 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V890
    $ /opt/puppet/sfw/bin/facter | grep virtual
    prtdiag can only be run in the global zone
    is_virtual => false
    virtual => physical

Resolution:

Solaris branded zones (at least Solaris 8 and Solaris 9, not tested with Linux 
brands) share /lib /platform and /usr. These directories are mounted under the 
/.SUNWnative as /.SUNWnative/{lib,platform,usr}. So the basic check whehter the 
environment is a branded zone would involve a check for a presence of 
/.SUNWnative directory. Note that /.SUNWnative and its content is always 
handled within a global zone upon local zone boot, so IMHO to check only for 
presence of /.SUNWnative directory is a sufficient indicator for a zone.

See the attached patch for more details on a proposed resolution.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to