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

puppet --graph misses some dependencies

    XMLWordPrintable

    Details

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

      OSX 10.9.2

    • Template:

      Description

      d1 {'test': }
      -> 
      d2 {'test': }
       
      define d1 {
        exec { exec1: command => '/bin/echo exec1; exit 1' }
      }
       
      define d2 {
        exec { exec2: command => '/bin/echo exec2; exit 1' }
      }
      

      $ puppet apply --graph test.pp 
      

      the graph does not show any dependency between exec1 and exec2.

      However the dependency does exists, as puppet does nor execute exec2 because of "failed dependencies":

      $ puppet apply --graph dd.pp 
      Notice: Compiled catalog for mac4c.local in environment production in 0.08 seconds
      Notice: /Stage[main]//D1[test]/Exec[exec1]/returns: exec1
      Error: /bin/echo exec1; exit 1 returned 1 instead of one of [0]
      Error: /Stage[main]//D1[test]/Exec[exec1]/returns: change from notrun to 0 failed: /bin/echo exec1; exit 1 returned 1 instead of one of [0]
      Notice: /Stage[main]//D2[test]/Exec[exec2]: Dependency Exec[exec1] has failures: true
      Warning: /Stage[main]//D2[test]/Exec[exec2]: Skipping because of failed dependencies
      Notice: Finished catalog run in 0.11 seconds
      

      So, it seems that there is a bug in puppet --graph.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dportabella David Portabella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support