| This is happening only on systemd. Steps to reproduce:
# install puppet-agent 5.5.14 |
roothostname:~# puppet --version |
5.5.14
|
roothostname:~# puppet resource service mcollective |
service { 'mcollective': |
ensure => 'stopped', |
enable => 'false', |
} |
|
# use puppet_agent module to upgrade to 5.5.18 |
roothostname:~# cat test.pp |
class {'::puppet_agent': |
package_version => '5.5.18', |
collection => 'puppet5', |
}
|
root@hostname:~# puppet apply test.pp --trace |
Notice: Compiled catalog for hostname in environment production in 0.27 seconds |
Notice: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: ensure changed '5.5.14-1xenial' to '5.5.18-1xenial' |
Notice: /Stage[main]/Puppet_agent::Service/Service[puppet]/ensure: ensure changed 'stopped' to 'running' |
Error: Systemd start for mcollective failed!
|
# mcollective is still stopped, but on the seccond puppet run it will work |
roothostname:~# puppet resource service mcollective |
service { 'mcollective': |
ensure => 'stopped', |
enable => 'false', |
} |
|
|
roothostname:~# puppet apply test.pp --trace |
Notice: Compiled catalog for hostname in environment production in 0.30 seconds |
Notice: /Stage[main]/Puppet_agent::Service/Service[mcollective]/ensure: ensure changed 'stopped' to 'running' |
Notice: Applied catalog in 0.53 seconds |
|
|
root@hostname:~# puppet resource service mcollective |
service { 'mcollective': |
ensure => 'running', |
enable => 'true', |
}
|
If mcollective service is started before applying the manifest, the upgrade works Upgrade works to 5.5.16 but not to 5.5.17, 5.5.18, 5.5.19, 5.5.20 Full Log: full_log.txt |