Issue #16073 has been updated by eric sorenson. Status changed from Unreviewed to Accepted Keywords set to errors
Adding this to the list for a future 'error message cleanup' sprint, but I should point out that this is pretty well documented. http://docs.puppetlabs.com/guides/environment.html#naming-environments ---------------------------------------- Bug #16073: Misleading error message when environments use non-alphanumeric characters https://projects.puppetlabs.com/issues/16073#change-69700 Author: Gerard Hickey Status: Accepted Priority: Normal Assignee: Category: error reporting Target version: Affected Puppet version: Keywords: errors Branch: Found out the hard way that puppet environments can not have non-alphanumeric characters in them. I have been able to recreate the problem by creating a puppet environment with a dash in the name. If I attempt to do a puppet run on the puppet master where the environment has been created, I get the following output. ghickey@slc4b01c-d756:puppetservers:0$ sudo puppet agent -t -v [sudo] password for ghickey: err: Could not parse /etc/puppet/puppet.conf: Could not match line [puppet-test] at /etc/puppet/puppet.conf:[puppet-test] err: Could not retrieve catalog from remote server: Connection timed out - connect(2) warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run err: Could not send report: Connection timed out - connect(2) I get a different error message if I try to simulate the problem from another puppet master that has not had its puppet.conf modified. ghickey@slc4b01c-727136:environments:1$ sudo puppet agent -t -v --environment puppet-test err: Could not retrieve catalog from remote server: Error 400 on SERVER: The environment must be purely alphanumeric, not 'puppet-test' warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run err: Could not send report: Error 400 on SERVER: The environment must be purely alphanumeric, not 'puppet-test' Attempting to use the --environment argument on the first machine I get the original error messages instead of an error message informing me that the environment must be purely alphanumeric characters. -- 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://projects.puppetlabs.com/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.
