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

Ruby error when running 5.5.3 on s390

    XMLWordPrintable

Details

    • Platform OS
    • Platform OS Kanban
    • Needs Assessment
    • Not Needed
    • Needs Assessment

    Description

      After installing puppet-agent-5.5.3-1.el6.s390x.rpm on a CentOS 6 s390 box, all puppet commands fail with a Ruby error:

      [root@platform-redhat-6-s390x-acceptance test]# puppet --version
      /opt/puppetlabs/puppet/lib/ruby/2.4.0/s390x-linux/rbconfig.rb:7:in `<module:RbConfig>': ruby lib version (2.4.4) doesn't match executable version (2.4.4) (RuntimeError)
              from /opt/puppetlabs/puppet/lib/ruby/2.4.0/s390x-linux/rbconfig.rb:5:in `<top (required)>'
              from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems.rb:9:in `require'
              from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems.rb:9:in `<top (required)>'
              from <internal:gem_prelude>:4:in `require'
              from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
      

      This looks to be due to the version number not being correctly generated at https://github.com/puppetlabs/puppet-runtime/blob/master/resources/files/ruby_244/rbconfig/rbconfig-244-s390x-linux-gnu.rb#L6. Changing that line to have "2.4.4" resolves the issue.

      Attachments

        Activity

          People

            scott.garman Scott Garman
            adam.bottchen Adam Bottchen
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support