Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
PUP 3.7.3
-
None
-
None
-
None
-
Puppet Labs Training VM 2.12 (Build 43ca4d9)
geoff@geoff-ThinkPad-T440p:~$ dpkg -l xdot
Desired=Unknown/Install/Remove/Purge/HoldStatus=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend / Err?=(none)/Reinst-required (Status,Err: uppercase=bad) / Name Version Architecture Description
+++=======================================================================
ii xdot 0.5-2ubuntu0 all interactive viewer for Graphviz dPuppet Labs Training VM 2.12 (Build 43ca4d9) geoff@geoff-ThinkPad-T440p:~$ dpkg -l xdot Desired=Unknown/Install/Remove/Purge/Hold Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend / Err?=(none)/Reinst-required (Status,Err: uppercase=bad) / Name Version Architecture Description +++ ============== ============ ============ ================================= ii xdot 0.5-2ubuntu0 all interactive viewer for Graphviz d
-
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