Issue #11160 has been updated by Ken Barber.

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.
----------------------------------------
Bug #11160: Unrecognised escape sequence messages after upgrade from 2.6.8 to 
2.7.6
https://projects.puppetlabs.com/issues/11160

Author: Michael Worsham
Status: Investigating
Priority: Normal
Assignee: 
Category: modules
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


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



-- 
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.

Reply via email to