Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-2191

Puppet agent fail after changing system Language

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Windows
    • Environment:
    • Template:
    • Acceptance Criteria:
      Hide

      After changing the language to Arabic, able to run puppet agent and pxp-agent. 

      Show
      After changing the language to Arabic, able to run puppet agent and pxp-agent. 
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      PR - 2019-05-02, PR - 2019-05-15, PR - 2019-05-29
    • Method Found:
      Needs Assessment
    • CS Priority:
      Major
    • Zendesk Ticket IDs:
      34456
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Puppet Agent failed to run if the Regional language was changed to Arabic (United Arab Emirates).
      This is because the underlying Ruby was unable to handle Code Page 720.

      If the code page is not available in Ruby, the handler reverts to UTF-8 which works.
      Show
      Puppet Agent failed to run if the Regional language was changed to Arabic (United Arab Emirates). This is because the underlying Ruby was unable to handle Code Page 720. If the code page is not available in Ruby, the handler reverts to UTF-8 which works.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version:5.5.3
      Puppet Server Version:2018.1.3
      OS Name/Version: Windows 2016 Server 

       

      Desired Behavior: 

       

      Puppet agent service and Pxp-agent service will work as normal ** 

      Actual Behavior:

       

      After changing the system language to Arabic puppet agent and pxp-agent failed. 

       

       

      Reproduce steps : 

      1. Install Puppet agent on Windows 2016 server 
      2. Change code page to Arabic (United Arab Emirates): 

      • Control Panel -> Region -> Administrative -> Change system locale... 
        3. Restart server (probably) 
        4. Observe that the Puppet Agent fails to start 
        5. Open Command Prompt with Puppet 
        6. Run 'puppet agent -t' 
        7. Observe the error message above 
        8. without closing the command prompt, run 'chcp 65001' 
        9. Rerun 'puppet agent -t' 
        10. Observe the agent run succeeds.

       

      Error displayed is

      PS C:\Users\Administrator> puppet agent -t
      Traceback (most recent call last):
              36: from C:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:3:in `<main>'
              35: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              34: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              33: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:12:in `<top (required)>'
              32: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              31: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              30: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet.rb:38:in `<top (required)>'
              29: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet.rb:289:in `<module:Puppet>'
              28: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              27: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              26: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/node.rb:1:in `<top (required)>'
              25: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              24: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              23: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/indirector.rb:6:in `<top (required)>'
              22: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/indirector.rb:10:in `<module:Indirector>'
              21: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              20: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              19: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:4:in `<top (required)>'
              18: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              17: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              16: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/indirector/request.rb:4:in `<top (required)>'
              15: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              14: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              13: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/network/resolver.rb:1:in `<top (required)>'
              12: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              11: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
              10: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/resolv.rb:38:in `<top (required)>'
               9: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/resolv.rb:168:in `<class:Resolv>'
               8: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/resolv.rb:171:in `<class:Hosts>'
               7: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
               6: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
               5: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/win32/resolv.rb:7:in `<top (required)>'
               4: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
               3: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
               2: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/win32/registry.rb:4:in `<top (required)>'
               1: from C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/win32/registry.rb:72:in `<module:Win32>'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/2.5.0/win32/registry.rb:72:in `find': unknown encoding name - CP720 (ArgumentError)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gheorghe.popescu Gheorghe Popescu
              Reporter:
              karthikeyan.kanagaraj Karthikeyan Kanagaraj
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support