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

An agent should be able to recover from a provider failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 4.10.4
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Tested on Centos 6.7

    • Template:
    • Team:
      Platform Core

      Description

      The issue

      If a provider fails for some reason, even non-dependent catalog resources fail to be applied.

      To reproduce

      This test case involves the pip provider.

      Install pip:

      curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
      python get-pip.py
      

      Now break python so that pip can't properly be invoked:

      mv /usr/bin/python /usr/bin/python.bak
      ln -s foo /usr/bin/python
      

      Create the following manifest and run it with puppet apply:

      package{'foo':
        ensure => installed,
        provider => pip,
      }
      notify{'helloworld':}
      

      Result

      We get an error:

      Notice: Compiled catalog for pe-201720-master.example.com in environment production in 0.11 seconds
      Error: Failed to apply catalog: [nil]
      

      Expected Result

      Puppet should still apply the notify resource, which isn't dependent on the package in any way. A more helpful error message would also be nice.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                erik.hansen Erik Hansen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support