Bug #11160
Unrecognised escape sequence messages after upgrade from 2.6.8 to 2.7.6
| Status: | Investigating | Start date: | 12/05/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | modules | |||
| Target version: | 2.7.x | |||
| Affected Puppet version: | 2.7.6 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
We upgraded from 2.6.8 to 2.7.6 and we are noticing a lot of messages that are starting to appear that weren’t there before. Has something really changed between the two different versions to throw off the modules?
We are using the Puppet module code from the RHEL STIG Process project:
https://fedorahosted.org/aqueduct/wiki/RhelStigProcess
Server:
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\)' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\1' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 16
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 20
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 20
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\)' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 20
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\1' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 20
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 21
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 25
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 25
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\)' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 25
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\1' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 25
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 26
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 30
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 30
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\)' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 30
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\1' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 30
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 31
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 35
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 35
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 35
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\)' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 35
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\1' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 35
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 36
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 55
Dec 5 11:27:51 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\B' in file /etc/puppet/modules/AC-8/manifests/init.pp at line 19
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\P' in file /etc/puppet/modules/AC-17/manifests/init.pp at line 16
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\a' in file /etc/puppet/modules/AC-17/manifests/init.pp at line 61
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\a' in file /etc/puppet/modules/AC-17/manifests/init.pp at line 65
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\P' in file /etc/puppet/modules/AC-17/manifests/init.pp at line 109
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\P' in file /etc/puppet/modules/IA-2/manifests/init.pp at line 11
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\P' in file /etc/puppet/modules/IA-2/manifests/init.pp at line 46
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001280/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001560/manifests/init.pp at line 11
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001560/manifests/init.pp at line 12
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001800/manifests/init.pp at line 4
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001820/manifests/init.pp at line 4
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\u' in file /etc/puppet/modules/GEN002560/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\u' in file /etc/puppet/modules/GEN002560/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN003040/manifests/init.pp at line 48
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN003180/manifests/init.pp at line 12
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\O' in file /etc/puppet/modules/GEN004440/manifests/init.pp at line 6
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\O' in file /etc/puppet/modules/GEN004560/manifests/init.pp at line 6
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/GEN004640/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\#' in file /etc/puppet/modules/GEN004640/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/GEN004640/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\#' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 10
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 11
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\:' in file /etc/puppet/modules/LNX00580/manifests/init.pp at line 11
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001260/manifests/init.pp at line 5
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001160/manifests/init.pp at line 6
Dec 5 11:27:52 Spectre.domain.local puppet-master[26986]: Unrecognised escape sequence '\;' in file /etc/puppet/modules/GEN001160/manifests/init.pp at line 6
Dec 5 11:27:53 Spectre.domain.local puppet-master[26986]: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type append_if_no_such_line at /etc/puppet/modules/AC-11/manifests/init.pp:17 on node kstest.domain.local
Client:
debug: Finishing transaction 23614736075760
debug: Loaded state in 0.02 seconds
debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; using pson
debug: Using cached certificate for ca
debug: Using cached certificate for kstest.domain.local
debug: Using cached certificate_revocation_list for ca
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type append_if_no_such_line at /etc/puppet/modules/AC-11/manifests/init.pp:17 on node kstest.domain.local
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
History
Updated by Ken Barber 6 months ago
- Description updated (diff)
Updated by Ken Barber 6 months ago
- Status changed from Unreviewed to Investigating
So I get the same errors on the command line with 2.7.6 and 2.6.8 – perhaps the errors weren’t being output by the puppet-master in the past (ignore the exec path error – this is left broken on purpose):
% git checkout 2.7.6
Previous HEAD position was e059539... Update CHANGELOG for 2.6.8
HEAD is now at 0d4494c... Updated CHANGELOG for 2.7.6
% ./bin/puppet apply ~/tmp/stig/test1.pp
warning: Unrecognised escape sequence '\(' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\/' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\)' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\1' in file /Users/ken/tmp/stig/test1.pp at line 1
'sed -i 's/\( \/usr.*defaults\)/\1,nodev,acl/' /etc/fstab' is not qualified and no path was specified. Please qualify the command or specify a path.
% ./bin/puppet apply ~/tmp/stig/test2.pp
'sed -i 's/\( \/usr.*defaults\)/\1,nodev,acl/' /etc/fstab' is not qualified and no path was specified. Please qualify the command or specify a path.
% git checkout 2.6.8
Previous HEAD position was 0d4494c... Updated CHANGELOG for 2.7.6
HEAD is now at e059539... Update CHANGELOG for 2.6.8
% ./bin/puppet apply ~/tmp/stig/test1.pp
warning: Unrecognised escape sequence '\(' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\/' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\)' in file /Users/ken/tmp/stig/test1.pp at line 1
warning: Unrecognised escape sequence '\1' in file /Users/ken/tmp/stig/test1.pp at line 1
'sed -i 's/\( \/usr.*defaults\)/\1,nodev,acl/' /etc/fstab' is not qualified and no path was specified. Please qualify the command or specify a path.
% ./bin/puppet apply ~/tmp/stig/test2.pp
'sed -i 's/\( \/usr.*defaults\)/\1,nodev,acl/' /etc/fstab' is not qualified and no path was specified. Please qualify the command or specify a path.
%
You can see I have 2 test files, test1.pp & test2.pp. test2.pp has the escape characters ‘fixed’:
% cat ~/tmp/stig/test2.pp
exec { "sed -i 's/\\( \\/usr.*defaults\\)/\\1,nodev,acl/' /etc/fstab":
}
Can you confirm this behaviour between 2.6.8 and 2.7.6 boxes on the command line? It may be that you need to log a bug with that project to ‘fix’ the problem if your findings align with mine.
Anyway – the reason why your catalogue is not compiling and your hitting a brick wall is due to this primary error:
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type append_if_no_such_line at /etc/puppet/modules/AC-11/manifests/init.pp:17 on node kstest.domain.local
That generally means the type ‘append_if_no_such_line’ is not visible to your puppet master. This can be for a number of reasons:
- You need to restart your puppetmaster after installing the type/provider
- You are using environments and the code you have is in the wrong environment
- The type isn’t available
I’ve tried checking out that content, but I’m unable to find the type – can you check that it exists in your content? It doesn’t seem to exist in the repository provided on the StigProcess website.
% svn co http://svn.fedorahosted.org/svn/aqueduct/archive/base/dev/rhel5/puppet/trunk/etc/puppet/ puppet
% find puppet -name '*append_if_no_such_line*'
It mentions on the website for StigProcess that it is a modified version of ‘clip’: http://oss.tresys.com/projects/clip
If I check this content out: http://oss.tresys.com/projects/clip/wiki/SubversionCheckout
I can find your lost append_if_no_such_line:
% find clip -name '*append_if_no_such_line*'
clip/puppet/plugins/append_if_no_such_line.rb
Its in a very old < 2.6 format but it does exist.
So I’m not entirely convinced anything you have raised is a bug with puppet per se … more something you need to take up with the StigProcess authors.
Updated by Ken Barber 6 months ago
- Description updated (diff)
Updated by Michael Worsham 6 months ago
I did this on the Puppet ‘master’ server:
Command: find / -name '*append_if_no_such_line*'
Found: /var/lib/puppet/lib/puppet/type/append_if_no_such_line.rb
I changed the permissions on the /var/lib/puppet/lib directory from root:root to root:puppet and restarted the puppetmaster and the puppet agent over on the client. The client was able to log in and it shows it was able to get the catalog now.
As for the “Unrecognised escape sequence” messages, these are still appearing. Why was there a deviation in the escape characters requirement? Isn’t the rules/modules supposed to be backwards compatible?
Dec 5 16:20:27 Spectre.domain.local puppet-master[28322]: Unrecognised escape sequence '\(' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
Dec 5 16:20:27 Spectre.domain.local puppet-master[28322]: Unrecognised escape sequence '\/' in file /etc/puppet/modules/AC-3/manifests/init.pp at line 15
— Michael
Updated by Ken Barber 6 months ago
Like I showed you – I get those warnings about escape characters in 2.6.8 as well so if its changed, its prior to that revision. I’m guessing the logging might have changed to warn to the puppetmaster log in 2.7.x (I didn’t try it with puppet agent using client/server – just using puppet apply). I’d ask the StigProcess guys to update their content at this stage to avoid the warnings. The change I’ve prescribed works in both 2.6.x and 2.7.x so it should be okay.
So if there is nothing else – do you mind if I close this ticket now?