Issue #1215 has been updated by jamtur01.

Status changed from Accepted to Closed

Pushed in commit:"575f37a0656f5a1f94fe6fb1b189d1701a98cadc" in branch 0.24.x
----------------------------------------
Bug #1215: Some syntax errors are not visible when running puppetd from the CLI
http://reductivelabs.com/redmine/issues/show/1215

Author: ezralini
Status: Closed
Priority: Normal
Assigned to: andrew
Category: interface
Target version: 0.24.5
Keywords: 
Complexity: Easy
Patch: None
Affected version: 


A syntax error in the puppetmaster config, doesn't cause an error to be 
displayed when running <pre>puppetd --test</pre> on the CLI of a node that 
would be affected. I'm using 24.4 on both client and master.

When this is my node config:
<pre>
node nyvl-flstg2 inherits  virtual-php-web-node {
    $custom_environment = "staging"
        include www2
    }
</pre>
this is the output of <pre>puppetd --test</pre> on that node:
<pre>
[EMAIL PROTECTED] ~]# puppetd  --test 
notice: Ignoring cache
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run
notice: Finished catalog run in 9.98 seconds
[EMAIL PROTECTED] ~]#
</pre>
Which is all to be expected, everything is working correctly. However, if this 
is my node config:
<pre>
node nyvl-flstg2 inherits  virtual-php-web-node {
    $custom_environment = "staging"
        include www2 ?
    }
</pre>
I get this in /var/log/messages on the puppetmaster:
<pre>
May 6 17:14:20 nyvl-flintranet puppetmasterdr29418: Could not parse for 
environment development: Syntax error at '}' at 
/etc/puppet/manifests/nodes/nyvl-flstg2.pp:4
</pre>
Which makes sense, because of the '?' in the line that is "include www2 ?"
However, if I run puppetd on the client, I have no knowledge that there is a 
syntax error:
<pre>
[EMAIL PROTECTED] ~]# puppetd  --test 
notice: Ignoring cache
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run
notice: Finished catalog run in 9.15 seconds
[EMAIL PROTECTED] ~]#
</pre>

In this case, I actually don't know what config the client is using, since it 
can't be using the current one (there's a significant syntax error) and it is 
"ignoring cache". I'd expect an error to be displayed saying that there is a 
syntax issue. 


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to