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

PE sometimes generates graph dotfiles with syntax errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • PUP 3.7.3
    • None
    • None
    • None
    • Monolithic
    • CentOS 6
    • CentOS 6

    Description

      Dotfiles generated by puppet master to illustrate the dependency graph sometimes include a syntax error which prevents the graph being visible in the xdot viewer on Linux.

      Sysadmins are typically going to start looking at the dependency graphs to troubleshoot urgent/production issues that are breaking puppet - eg dependency cycles. As such, its important that these dotfiles are working at all times as a means to debug the puppet code

      Procedure
      --------------
      scp the graph 'dot' files to a desktop machine. then open them with the 'xdot' program

      Expected result
      ---------------------
      A graph should be displayed

      Actual result
      -----------------
      Syntax Error:

      geoff@geoff-ThinkPad-T440p:~$ xdot tmp2/expanded_relationships.dot
      Warning: <stdin>: syntax error in line 1003 near '-'
      ^CTraceback (most recent call last):
      (CTRL+C pressed to abort failed loading)

      Workaround
      -----------------
      klynton suggested:
      :%s/"pe-puppetdb"/'pe-puppetdb'/g

      in vi to fix things

      I can confirm that this fixes the dotfiles that had the error for me

      Reproducability
      --------------------
      sometimes - I wasn't able to reproduce the error this morning

      Testcase
      ------------
      I don't have the manifests to reproduce the error condition, some 'broken' graphviz dot files are attached to this bug report

      Attachments

        1. expanded_relationships.dot
          211 kB
        2. relationships.dot
          106 kB
        3. puppet.tar.gz
          1.84 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              geoff.williams Geoff Williams
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support