Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8289

All numeric environment names cause error on client and server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 5.3.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version:
      Tested on 4.x and 5.x

      Puppet Server Version:
      tested on 4.x and 5.x

      OS Name/Version:
      All

      Using an all numeric environment in puppet causes the following error on the client
      Error: Could not initialize global default settings: undefined method `to_sym' for 8675309:Fixnum

      If that value is placed within quotes on the client the server returns the following error:
      Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Error 500 on SERVER: Server Error: undefined method `match' for 8675309:Fixnum
      Did you mean? catch

      Desired Behavior:
      Using an all numeric environment name complies with the regular expression supplied in the documentation.

      Actual Behavior:
      All numeric environment name is not functioning

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

      puppet agent with --test --trace --debug
      Error: Could not initialize global default settings: undefined method `to_sym' for 8675309:Fixnum
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:550:in `parse_config'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:597:in `parse_config_files'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:264:in `initialize_global_settings'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:133:in `do_initialize_settings_for_run_mode'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:127:in `initialize_settings'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:67:in `block in execute'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:66:in `execute'
      /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jhdehart J.D.
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support