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

Puppet Resource Service fails on Debian/Ubuntu when non systemd service is called

    Details

    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      Investigate the root cause and handle the error

      Show
      Investigate the root cause and handle the error
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Customer Feedback
    • CS Priority:
      Normal
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      4 - $$$$$
    • CS Impact:
      Hide
      If a user has a package installed which causes upstart to be installed then the package resource will run into this error. This prevents the `puppet resource package` from working.

      Adam has submitted a PR on this. There is also a linked ticket from back in 2015 which has a PR that approaches the problem differently.
      Show
      If a user has a package installed which causes upstart to be installed then the package resource will run into this error. This prevents the `puppet resource package` from working. Adam has submitted a PR on this. There is also a linked ticket from back in 2015 which has a PR that approaches the problem differently.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.3.3
      Puppet Server Version: 5.3.3
      OS Name/Version: Ubuntu 16.04

      Describe your issue in as much detail as possible…

      In 16.04 when using puppet resource service, it bombs out if some of the services aren't using systemd, and trying to contact upstart, we should be handling this error better

      Describe steps to reproduce…

      It seems that a vanilla install of Ubuntu 16.x is OK, however when intalling additional Ubuntu packages such as the GUI, we se this error

      To reproduce

      Install Ubuntu 16.04

      Install the desktop packages

      sudo apt-get update
      sudo apt-get install ubuntu-desktop
      reboot
      

      Login via the GUI and open up a terminal or SSH into the server

      run puppet resource service

      and you will get the error

      Debug: Executing '/sbin/initctl list'
      Error: Could not run: #<IO:0x00000000017b6cf8>
      

      Debug run attached

      Desired Behavior:

      When the service cannot connect to jumpstart/returns it shouldn't break the command, the error should be handled and the services are returned

      Actual Behavior:

      The command errors out

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

      Attached

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adam.bottchen Adam Bottchen
                Reporter:
                nicholas.kernohan Nicky Kernohan
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support