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

PE sometimes generates graph dotfiles with syntax errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.7.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Template:
    • Master Config:
      Monolithic
    • Agent OS:
      CentOS 6
    • Master OS:
      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 Jessup 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

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  geoff.williams Geoff Williams
                  QA Contact:
                  Kurt Wall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: