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

Stock Puppet shipping with Ubuntu Vivid (3.7.2) has broken service type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      If you run a puppet manifest on Ubuntu Vivid, certain services get detected incorrectly, and Puppet attempts to treat them as Upstart services, using the /sbin/

      {start,stop,restart,reload,status}

      commands. For instance, mysql works that way. The following Puppet manifest exercises the error:

      service{'mysql':
      	ensure => running,
      }
       
      notify {"test":
      	notify => Service['mysql']
      }
      

      Output:

      $ sudo puppet apply test.pp 
      Notice: Compiled catalog for vdanilchenko-vivid.vistaprint.net in environment production in 0.33 seconds
      Notice: test
      Notice: /Stage[main]/Main/Notify[test]/message: defined 'message' as 'test'
      Error: /Stage[main]/Main/Service[mysql]: Could not evaluate: Execution of '/sbin/status mysql' returned 1: status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
      Error: /Stage[main]/Main/Service[mysql]: Failed to call refresh: Execution of '/sbin/status mysql' returned 1: status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
      Error: /Stage[main]/Main/Service[mysql]: Execution of '/sbin/status mysql' returned 1: status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
      

      Of course, this fails because running /sbin/status mysql fails. This can be verified by simply running it on command line.

      Now the apache2 service, for instance, gets detected correctly (Upstart commands also fail, but Puppet treats apache2 as Init service and manages it correctly); but mysql breaks.

      I didn't test all the services on the system, but the cups service, for instance, also breaks, just like mysql.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  danilche Victor Danilchenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: