Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6107

stdlib : syntax errors on CentOS 6 with puppet 3.8

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      Basic Info
      Module Version: 4.23.0
      Puppet Version: 3.8.7
      OS Name/Version: CentOS 6 (latest)

      After 4.23.0 was released, my beaker tests started to fail on CentOS 6 VM with puppet 3.8.7 installed. When I downgraded stdlib to 4.22.0, they started to pass again. I had a look at git history, but I'm not seeing anything weird, that should be the reason for the error.

      4.23.0 is working on:

      • CentOS 6 + puppet 5
      • CentOS 7 + puppet 3
      • CentOS 7 + puppet 5

      Error:

      centos6-puppet3 07:35:03$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.KYxGv6
        Info: Loading facts
        Error loading fact /etc/puppet/modules/stdlib/lib/facter/service_provider.rb: /etc/puppet/modules/stdlib/lib/facter/service_provider.rb:15: syntax error, unexpected ':', expecting ')'
        ...ype(:service).newservice(name: 'dummy')[:provider].to_s
                                      ^
        /etc/puppet/modules/stdlib/lib/facter/service_provider.rb:15: syntax error, unexpected ')', expecting kEND
        ...ice).newservice(name: 'dummy')[:provider].to_s
                                      ^
        Error loading fact /etc/puppet/modules/stdlib/lib/facter/pe_version.rb: /etc/puppet/modules/stdlib/lib/facter/pe_version.rb:34: syntax error, unexpected ':', expecting kEND
          confine is_pe: true
                        ^
        /etc/puppet/modules/stdlib/lib/facter/pe_version.rb:44: syntax error, unexpected ':', expecting kEND
          confine is_pe: true
                        ^
        /etc/puppet/modules/stdlib/lib/facter/pe_version.rb:54: syntax error, unexpected ':', expecting kEND
          confine is_pe: true
                        ^
        Error loading fact /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb: /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb:122: odd number list for Hash
            @cache[file] = { data: data, stored: Time.now.to_i }
                                  ^
        /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb:122: syntax error, unexpected ':', expecting '}'
            @cache[file] = { data: data, stored: Time.now.to_i }
                                  ^
        /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb:122: syntax error, unexpected ':', expecting '='
            @cache[file] = { data: data, stored: Time.now.to_i }
                                                ^
        /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb:122: syntax error, unexpected '}', expecting kEND
        /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb:196: syntax error, unexpected $end, expecting kEND
        Error loading fact /etc/puppet/modules/stdlib/lib/facter/root_home.rb: /etc/puppet/modules/stdlib/lib/facter/root_home.rb:21: syntax error, unexpected ':', expecting kEND
          confine kernel: :darwin
                         ^
        /etc/puppet/modules/stdlib/lib/facter/root_home.rb:34: syntax error, unexpected ':', expecting kEND
          confine kernel: :aix
                         ^
        Error loading fact /etc/puppet/modules/stdlib/lib/facter/package_provider.rb: /etc/puppet/modules/stdlib/lib/facter/package_provider.rb:16: syntax error, unexpected ':', expecting ')'
        ...ype(:package).newpackage(name: 'dummy', allow_virtual: 'true...
                                      ^
        /etc/puppet/modules/stdlib/lib/facter/package_provider.rb:16: syntax error, unexpected ',', expecting kEND
        ...age).newpackage(name: 'dummy', allow_virtual: 'true')[:provi...
                                      ^
        /etc/puppet/modules/stdlib/lib/facter/package_provider.rb:16: syntax error, unexpected ')', expecting kEND
        ...dummy', allow_virtual: 'true')[:provider].to_s
                                      ^
        /etc/puppet/modules/stdlib/lib/facter/package_provider.rb:18: syntax error, unexpected ':', expecting ')'
        ...ype(:package).newpackage(name: 'dummy')[:provider].to_s
                                      ^
        /etc/puppet/modules/stdlib/lib/facter/package_provider.rb:18: syntax error, unexpected ')', expecting kEND
        ...age).newpackage(name: 'dummy')[:provider].to_s
                                      ^
        Error: Could not autoload puppet/parser/functions/validate_bool: /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ':', expecting ')'
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                          ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ')', expecting kEND
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                                           ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:34: syntax error, unexpected kEND, expecting $end
        Error: Could not autoload puppet/parser/functions/validate_bool: /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ':', expecting ')'
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                          ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ')', expecting kEND
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                                           ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:34: syntax error, unexpected kEND, expecting $end on node centos6-puppet3.example.org
        Error: Could not autoload puppet/parser/functions/validate_bool: /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ':', expecting ')'
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                          ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:5: syntax error, unexpected ')', expecting kEND
          newfunction(:validate_bool, doc: <<-'ENDHEREDOC') do |args|
                                                           ^
        /etc/puppet/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:34: syntax error, unexpected kEND, expecting $end on node centos6-puppet3.example.org
      

      I looked at stdlib support matrix and this OS/puppet version should be supported.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matejz Matej Žerovnik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support