Issue #2530 has been updated by Michael van Slingerland.
Works now... Thanks ---------------------------------------- Bug #2530: Type :Service provider SMF: Could not get status on service http://projects.reductivelabs.com/issues/2530 Author: Michael van Slingerland Status: Ready for Testing Priority: Normal Assigned to: James Turnbull Category: Solaris Target version: 0.25.0 Complexity: Unknown Affected version: 0.25.0rc1 Keywords: Hi, I try to manage ntp with the service type, provider SMF on Solaris 10 sparc. But somehow the provider is not able to determine the status of the service through "/usr/bin/svcs -H -o state svc:/network/ntp" command. running the command manually returns the usual output "online" or "disabled" return code of the command is 0. puppetmasterd output: # /usr/local/sbin/puppetmasterd -d -v --no-daemonize --trace debug: Failed to load library 'shadow' for feature 'libshadow' debug: Failed to load library 'ldap' for feature 'ldap' debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/reports]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/rrd]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/yaml]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certs/ypdnscache01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/manifests/site.pp]: Autorequiring File[/etc/puppet/manifests] debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/log/http.log]: Autorequiring File[/var/puppet/log] debug: /File[/etc/puppet/ssl/private_keys/ypdnscache01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/private_keys] debug: /File[/etc/puppet/namespaceauth.conf]: Autorequiring File[/etc/puppet] debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/manifests]: Autorequiring File[/etc/puppet] debug: /File[/var/puppet/bucket]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/fileserver.conf]: Autorequiring File[/etc/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/log/masterhttp.log]: Autorequiring File[/var/puppet/log] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/etc/puppet/ssl/public_keys/ypdnscache01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: Finishing transaction -998869498 with 0 changes debug: /File[/etc/puppet/ssl/ca/serial]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/private/ca.pass]: Autorequiring File[/etc/puppet/ssl/ca/private] debug: /File[/etc/puppet/ssl/ca/signed]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/ca_pub.pem]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/ca_crl.pem]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/inventory.txt]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/private]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/requests]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/ca_crt.pem]: Autorequiring File[/etc/puppet/ssl/ca] debug: /File[/etc/puppet/ssl/ca/ca_key.pem]: Autorequiring File[/etc/puppet/ssl/ca] debug: Finishing transaction -971568238 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for ca debug: Using cached certificate for ypdnscache01.ux.nl.tmo notice: Starting Puppet server version 0.25.0 debug: Creating interpreter debug: Finishing transaction -972386228 with 0 changes debug: Finishing transaction -972388178 with 0 changes info: mount[modules]: allowing * access debug: No plugins mount given; autocreating with default permissions info: Inserting default '~ ^/catalog/([^/]+)$'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/file'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate_revocation_list/ca'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/report'(auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate/ca'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate/'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Inserting default '/certificate_request'(non-auth) acl because /etc/puppet/auth.conf doesn't exist info: Expiring the node cache of proldapproxy01.ux.nl.tmo info: Not using expired node for proldapproxy01.ux.nl.tmo from cache; expired at Wed Aug 12 18:47:18 +0200 2009 info: Caching node for proldapproxy01.ux.nl.tmo debug: importing '/etc/puppet/manifests/templates.pp' debug: importing '/etc/puppet/manifests/nodes.pp' debug: importing '/etc/puppet/modules/motd/manifests/init.pp' info: Autoloaded module motd debug: importing '/etc/puppet/modules/ntpd/manifests/init.pp' info: Autoloaded module ntpd debug: Scope(Class[ntpd::client]): Retrieving template ntpd/ntpdclient.conf.erb debug: template[/etc/puppet/modules/ntpd/templates/ntpdclient.conf.erb]: Bound template variables for /etc/puppet/modules/ntpd/templates/ntpdclient.conf.erb in 0.00 seconds debug: template[/etc/puppet/modules/ntpd/templates/ntpdclient.conf.erb]: Interpolated template /etc/puppet/modules/ntpd/templates/ntpdclient.conf.erb in 0.00 seconds notice: Compiled catalog for proldapproxy01.ux.nl.tmo in 0.19 seconds info: mount[modules]: allowing * access debug: Using cached node for proldapproxy01.ux.nl.tmo warning: DEPRECATION NOTICE: Found module 'motd' without using the 'modules' mount; please prefix path with 'modules/' debug: Using cached node for proldapproxy01.ux.nl.tmo debug: Using cached node for proldapproxy01.ux.nl.tmo ^Cnotice: Caught INT; calling stop puppetd output: -bash-3.00# /usr/local/sbin/puppetd -d -v --trace --no-daemonize debug: Failed to load library 'ldap' for feature 'ldap' debug: Failed to load library 'shadow' for feature 'libshadow' debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/state/graphs]: Autorequiring File[/var/puppet/state] debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/clientbucket]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/certs/proldapproxy01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl] debug: /File[/etc/puppet/ssl/public_keys/proldapproxy01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/public_keys] debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl] debug: /File[/var/puppet/client_yaml]: Autorequiring File[/var/puppet] debug: /File[/etc/puppet/ssl/private_keys/proldapproxy01.ux.nl.tmo.pem]: Autorequiring File[/etc/puppet/ssl/private_keys] debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet] debug: /File[/var/puppet/state/classes.txt]: Autorequiring File[/var/puppet/state] debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppet/ssl/certs] debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet] debug: /File[/var/puppet/state/state.yaml]: Autorequiring File[/var/puppet/state] debug: Finishing transaction 2368644 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for proldapproxy01.ux.nl.tmo notice: Starting Puppet client version 0.25.0 debug: Loaded state in 0.00 seconds debug: Using cached certificate for ca debug: Using cached certificate for proldapproxy01.ux.nl.tmo debug: Using cached certificate_revocation_list for ca debug: Puppet::Network::Format[json]: false value when expecting true debug: Format s not supported for Puppet::Resource::Catalog; has not implemented method 'from_s' info: Caching catalog for proldapproxy01.ux.nl.tmo debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist debug: Puppet::Type::Service::ProviderRedhat: file /sbin/service does not exist debug: Loaded state in 0.00 seconds debug: Prefetching parsed resources for host debug: //ntpd::client/Service[svc:/network/ntp]/subscribe: subscribes to File[ntp.conf] info: Applying configuration version '1250095698' debug: Puppet::Type::Service::ProviderSmf: Executing '/usr/bin/svcs -H -o state svc:/network/ntp' info: Service[svc:/network/ntp](provider=smf): Could not get status on service svc:/network/ntp debug: //ntpd::client/Service[svc:/network/ntp]: Changing ensure debug: //ntpd::client/Service[svc:/network/ntp]: 1 change(s) debug: Puppet::Type::Service::ProviderSmf: Executing '/usr/bin/svcs -H -o state svc:/network/ntp' info: Service[svc:/network/ntp](provider=smf): Could not get status on service svc:/network/ntp debug: Service[svc:/network/ntp](provider=smf): Executing '/usr/sbin/svcadm enable svc:/network/ntp' notice: //ntpd::client/Service[svc:/network/ntp]/ensure: ensure changed 'stopped' to 'running' debug: Puppet::Network::Format[json]: false value when expecting true debug: Format s not supported for Puppet::FileServing::Metadata; has not implemented method 'from_s' debug: Finishing transaction 9222060 with 1 changes debug: Storing state debug: Stored state in 0.01 seconds notice: Finished catalog run in 0.56 seconds ^Cnotice: Caught INT; calling stop configuration: # cat /etc/puppet/modules/ntpd/manifests/init.pp class ntpd::client { case $operatingsystem { OpenBSD: { file { "ntp.conf": name => "/etc/ntpd.conf", ensure => present, owner => "root", group => "wheel", mode => "644", content => template("ntpd/ntpdclient.conf.erb"), } service { "ntpd": provider => base, ensure => running, start => "/usr/sbin/ntpd", subscribe => File["ntp.conf"], pattern => "ntpd:", } } Solaris: { file { "ntp.conf": name => "/etc/inet/ntp.conf", ensure => present, owner => "root", group => "other", mode => "644", content => template("ntpd/ntpdclient.conf.erb"), } case $operatingsystemrelease { 5.10: { service { "svc:/network/ntp": provider => smf, ensure => running, subscribe => File["ntp.conf"], } } default: { service { "ntpd": provider => base, ensure => running, start => "/usr/lib/inet/xntpd", subscribe => File["ntp.conf"], pattern => "/usr/lib/inet/xntpd", } } } } } } Cheers, Mike -- 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 -~----------~----~----~----~------~----~------~--~---
