Issue #1735 has been updated by jamtur01.

That's not correct - rug isn't the only provider that uses a list confine - one 
of the service providers also uses lists and seems to work fine.

If you read the provider code you'll find that it also uses "commands" to check 
for the presence of /usr/bin/rug.

I'd really to see some actual output from an actual run showing the error - for 
example what version is running?  If it's not a version with the fix in it...


----------------------------------------
Bug #1735: Factor and/or Puppet fails to recognize SLES
http://projects.reductivelabs.com:80/issues/1735

Author: ghettodev
Status: Re-opened
Priority: Normal
Assigned to: 
Category: 
Target version: unplanned
Complexity: Easy
Affected version: 0.24.6
Keywords: sles suse facter


When I try to:

<pre>
package { apache2: ensure => installed }"
</pre>

I see this in the debug output:

<pre>
debug: facter value 'suse' for 'operatingsystem' not in required list 
'suse,sles'
</pre>

site.pp

<pre>
notice("This is log message sent at notice log level")

case $operatingsystem {
  redhat: { notice("I'm a rh box.") }
  sles: { notice("I'm a sles box.") }
  default: { notice("I'm a defaulting to sles box.") }
}

case $operatingsystem {
  redhat: { Package{ provider => yum} }
  sles: { Package{ provider => rug} }
  default: { Package{ provider => rug} }
}

package { apache2: ensure => installed }
</pre>

server trace: 

<pre>
#puppetmasterd --verbose --no-daemonize --debug --logdest 
/var/log/puppetmaster.log 
info: Starting server for Puppet version 0.24.6
debug: No file server configuration file; autocreating modules mount with 
default permissions
debug: No file server configuration file; autocreating plugins mount with 
default permissions
debug: Creating interpreter
debug: Creating default schedules
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /Settings[top]/Settings[main]/File[/etc/puppet/ssl]: Autorequiring 
File[/etc/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/state]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/run]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/lib]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[reporting]/File[/var/puppet/reports]: 
Autorequiring File[/var/puppet]
debug: /Settings[top]/Settings[metrics]/File[/var/puppet/rrd]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/log]: Autorequiring 
File[/var/puppet]
debug: Finishing transaction 23746121541900 with 0 changes
debug: Creating default schedules
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/public_keys/cf-puppetmaster.xxx.com.pem]:
 Autorequiring File[/etc/puppet/ssl/public_keys]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/requests]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/serial]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/ca_key.pem]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/ca_crt.pem]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/ca_crl.pem]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/certs/cf-puppetmaster.xxx.com.pem]:
 Autorequiring File[/etc/puppet/ssl/certs]
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/private_keys/cf-puppetmaster.xxx.com.pem]:
 Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/private/ca.pass]: 
Autorequiring File[/etc/puppet/ssl/ca/private]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/certs/ca.pem]: 
Autorequiring File[/etc/puppet/ssl/certs]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/inventory.txt]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/ca_pub.pem]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/signed]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: /Settings[top]/Settings[ca]/File[/etc/puppet/ssl/ca/private]: 
Autorequiring File[/etc/puppet/ssl/ca]
debug: Finishing transaction 23746120975100 with 0 changes
debug: Creating default schedules
debug: Finishing transaction 23746120611520 with 0 changes
debug: Creating default schedules
debug: 
/Settings[top]/Settings[puppetmasterd]/File[/etc/puppet/manifests/site.pp]: 
Autorequiring File[/etc/puppet/manifests]
debug: Finishing transaction 23746120309780 with 0 changes
debug: Creating default schedules
debug: 
/Settings[top]/Settings[puppetmasterd]/File[/etc/puppet/manifests/site.pp]: 
Autorequiring File[/etc/puppet/manifests]
debug: Finishing transaction 23746119972060 with 0 changes
debug: Creating default schedules
debug: 
/Settings[top]/Settings[puppetmasterd]/File[/etc/puppet/manifests/site.pp]: 
Autorequiring File[/etc/puppet/manifests]
debug: Finishing transaction 23746119634620 with 0 changes
info: Listening on port 8140
notice: Starting Puppet server version 0.24.6
debug: Allowing authenticated client cf-iweb37.xxx.com(::ffff:10.2.103.137) 
access to puppetmaster.getconfig
debug: Our client is remote
info: Expiring the node cache of cf-iweb37.xxx.com
info: Not using expired node for cf-iweb37.xxx.com from cache; expired at Thu 
Nov 06 11:43:17 -0700 2008
info: Caching node for cf-iweb37.xxx.com
notice: Scope(Class[main]): This is log message sent at notice log level
notice: Scope(Class[main]): I'm a sles box.
debug: Puppet::Type::Package::ProviderRpm: Executing '/bin/rpm --version'
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm --version'
debug: Puppet::Type::Package::ProviderUrpmi: Executing '/bin/rpm -ql rpm'
debug: Puppet::Type::Package::ProviderAptrpm: Executing '/bin/rpm -ql rpm'
notice: Scope(Class[main]): This is the second log message sent at notice log 
level
notice: Scope(Class[main]): This is the last log message sent at notice log 
level
debug: File[passwd]: Adding default for backup
debug: File[group]: Adding default for backup
debug: Package[apache2]: Adding default for provider
notice: Compiled catalog for cf-iweb37.xxx.com in 0.55 seconds
</pre>

client trace:

<pre>
#/usr/bin/puppetd --server cf-puppetmaster.xxx.com --debug --no-daemonize 
--verbose --waitforcert 60 --logdest /var/log/puppet.log
debug: Creating default schedules
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Failed to load library 'ldap' for feature 'ldap'
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/private_keys/cf-iweb37.xxx.com.pem]:
 Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/private]: 
Autorequiring File[/etc/puppet/ssl]
debug: /Settings[top]/Settings[main]/File[/var/puppet/state]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/log]: Autorequiring 
File[/var/puppet]
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/public_keys/cf-iweb37.xxx.com.pem]:
 Autorequiring File[/etc/puppet/ssl/public_keys]
debug: /Settings[top]/Settings[main]/File[/etc/puppet/ssl]: Autorequiring 
File[/etc/puppet]
debug: /Settings[top]/Settings[main]/File[/var/puppet/lib]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/public_keys]: 
Autorequiring File[/etc/puppet/ssl]
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/csr_cf-iweb37.xxx.com.pem]: 
Autorequiring File[/etc/puppet/ssl]
debug: 
/Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/certs/cf-iweb37.xxx.com.pem]: 
Autorequiring File[/etc/puppet/ssl/certs]
debug: /Settings[top]/Settings[puppetd]/File[/var/puppet/state/state.yaml]: 
Autorequiring File[/var/puppet/state]
debug: /Settings[top]/Settings[main]/File[/var/puppet/run]: Autorequiring 
File[/var/puppet]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/private_keys]: 
Autorequiring File[/etc/puppet/ssl]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/certs/ca.pem]: 
Autorequiring File[/etc/puppet/ssl/certs]
debug: /Settings[top]/Settings[ssl]/File[/etc/puppet/ssl/certs]: Autorequiring 
File[/etc/puppet/ssl]
debug: /Settings[top]/Settings[puppetd]/File[/var/puppet/state/state.yaml]: 
Changing mode
debug: /Settings[top]/Settings[puppetd]/File[/var/puppet/state/state.yaml]: 1 
change(s)
debug: 
/Settings[top]/Settings[puppetd]/File[/var/puppet/state/state.yaml]/mode: mode 
changed '640' to '660'
debug: Finishing transaction 23540153857960 with 1 changes
notice: Starting Puppet client version 0.24.6
debug: Loaded state in 0.00 seconds
debug: Retrieved facts in 0.51 seconds
debug: Retrieving catalog
debug: Calling puppetmaster.getconfig
debug: Retrieved catalog in 0.65 seconds
info: No classes to store
debug: Puppet::Type::Package::ProviderRpm: Executing '/bin/rpm --version'
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm --version'
debug: Puppet::Type::Package::ProviderUrpmi: Executing '/bin/rpm -ql rpm'
debug: Puppet::Type::Package::ProviderAptrpm: Executing '/bin/rpm -ql rpm'
debug: Creating default schedules
info: Caching catalog at /var/puppet/state/localconfig.yaml
notice: Starting catalog run
debug: Loaded state in 0.00 seconds
debug: Prefetching rug resources for package
debug: Puppet::Type::Package::ProviderRug: Executing '/bin/rpm --version'
debug: Puppet::Type::Package::ProviderRug: Executing '/bin/rpm -qa 
--nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} 
%{RELEASE} %{ARCH}
''
debug: //File[group]/require: requires File[passwd]
debug: facter value 'suse' for 'operatingsystem' not in required list 
'suse,sles'
err: //Package[apache2]: Failed to retrieve current state of resource: Provider 
rug is not functional on this platform
debug: Finishing transaction 23540167121960 with 0 changes
debug: Storing state
debug: Stored state in 0.01 seconds
notice: Finished catalog run in 0.20 seconds
</pre>

facter:

<pre>
architecture => x86_64
domain => xxx.com
facterversion => 1.5.2
fqdn => cf-iweb37.xxx.com
hardwaremodel => x86_64
hostname => cf-iweb37
interfaces => bond0,eth0,eth1,sit0
ipaddress => 10.2.103.137
ipaddress_bond0 => 10.2.103.137
kernel => Linux
kernelrelease => 2.6.16.60-0.31-smp
kernelversion => 2.6.16.60
lsbdistcodename => n/a
lsbdistdescription => SUSE Linux Enterprise Server 10 (x86_64)
lsbdistid => SUSE LINUX
lsbdistrelease => 10
lsbrelease => 
core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
macaddress_bond0 => 00:1A:64:5C:AB:88
macaddress_eth0 => 00:1A:64:5C:AB:88
macaddress_eth1 => 00:1A:64:5C:AB:88
manufacturer => IBM
memoryfree => 16.29 GB
memorysize => 16.64 GB
netmask => 255.255.255.0
netmask_bond0 => 255.255.255.0
operatingsystem => SLES
operatingsystemrelease => 10.2
processor0 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor1 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor2 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor3 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor4 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor5 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor6 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processor7 => Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
processorcount => 8
productname => IBM eServer BladeCenter HS21 -[7995G6U]-
ps => ps -ef
puppetversion => 0.24.6
rubysitedir => /usr/lib64/ruby/site_ruby/1.8
rubyversion => 1.8.6
serialnumber => 99E8458
sshdsakey => xxxx
sshrsakey => xxxx
swapfree => 768.70 MB
swapsize => 768.70 MB
type => Main Server Chassis
virtual => physical
</pre>


----------------------------------------
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://reductivelabs.com/redmine/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