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

regression on puppet 3.4.3, exec fail log does not appear when executing on behalf of another user

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 3.4.3
    • None
    • Types and Providers

    Description

      exec { test:
        command => "/bin/echo hello; exit 1",
        user => 'user1'
      }
       
      $ sudo puppet apply test.pp 
      Notice: Compiled catalog for ##host##.example.com in environment production in 0.06 seconds
      Notice: /Stage[main]/Main/Exec[test]/returns: hello
      Error: /bin/echo hello; exit 1 returned 1 instead of one of [0]
      Error: /Stage[main]/Main/Exec[test]/returns: change from notrun to 0 failed: /bin/echo hello; exit 1 returned 1 instead of one of [0]
      Notice: Finished catalog run in 0.25 seconds
      

      This works as expected (puppet 3.3.2 on OSX).

      However, on puppet 3.4.3 (puppet entreprise 3.2.0) on readhat 6,
      when executing the previous code, this line does not appear:

      Notice: /Stage[main]/Main/Exec[test]/returns: hello
      

      the line appears again if I remove the user paramater, or I set user => 'root'.

      adding --trace --debug --verbose does not help neither.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dportabella David Portabella
            Narmadha Perumal Narmadha Perumal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support