Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10507

Unable to start mcollective on first try in puppet > 5.5.17

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Sprint:
      ready for triage
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      This is happening only on systemd.

      Steps to reproduce(tested on Ubuntu 16.04):

      # 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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gheorghe.popescu Gheorghe Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support