Problem with snmpd service in new ubuntu 16.04

324 views
Skip to first unread message

Angel L. Mateo

unread,
May 5, 2016, 2:51:41 AM5/5/16
to Puppet Users
Hello,

I'm testing my puppet code in the new ubuntu 16.04.

I'm using razorsedge/snmp module from the forge to manage snmpd. In
this module, it manages snmpd service with:

service { 'snmpd':
ensure => $service_ensure_real,
name => $service_name,
enable => $service_enable_real,
hasstatus => $service_hasstatus,
hasrestart => $service_hasrestart,
require => [ Package['snmpd'], File['var-net-snmp'], ],
}

In concrete, in my config, $service_enable_real has the value of true.

The problem I'm having is that every run shows the message:

Notice: /Stage[main]/Snmp/Service[snmpd]/enable: enable changed 'false'
to 'true'

Running puppet in debug mode shows:

Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status}
${Package} ${Version}\n''
Debug: Executing: '/bin/systemctl is-active snmpd'
Debug: Executing: '/bin/systemctl show snmpd --property LoadState
--property UnitFileState --no-pager'
Debug: Executing: '/bin/systemctl unmask snmpd'
Debug: Executing: '/bin/systemctl enable snmpd'
Notice: /Stage[main]/Snmp/Service[snmpd]/enable: enable changed 'false'
to 'true'
Debug: /Stage[main]/Snmp/Service[snmpd]: The container Class[Snmp] will
propagate my refresh event
Debug: Class[Snmp]: The container Stage[main] will propagate my refresh
event

I have manually run each systemctl command and all of them returns
error code 0. The displayed output is:

root@ubuntu-16-04:~# /bin/systemctl is-active snmpd
active
root@ubuntu-16-04:~# /bin/systemctl show snmpd --property LoadState
--property UnitFileState --no-pager
LoadState=loaded
UnitFileState=bad
root@ubuntu-16-04:~# /bin/systemctl unmask snmpd
root@ubuntu-16-04:~# /bin/systemctl enable snmpd
snmpd.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable snmpd

Any help? Thank you.

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868887590
Fax: 868888337

Jon Skarpeteig

unread,
May 12, 2016, 4:32:48 AM5/12/16
to Puppet Users
Same problem with AutoFS
Reply all
Reply to author
Forward
0 new messages