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

testcase fails on RHEL 8 for v5.5.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 5.5.2
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      Docker container 

      os: Red Hat Enterprise Linux 8.0 (Ootpa)  x86

       

    • Template:
      PUP Bug Template
    • Master Config:
      Monolithic
    • Agent OS:
      Other
    • Master OS:
      Other
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.2**
      Puppet Server Version: 5.5.2
      OS Name/Version: Red Hat Enterprise Linux 8.0 (Ootpa)

      Describe your issue in as much detail as possible…

      testcase Failures:

        1) Puppet::Type::User::ProviderUseradd#check_valid_shell should raise an error if the shell is not executable
           Failure/Error: expect { provider.check_valid_shell }.to raise_error(Puppet::Error, /Shell LICENSE must be executable/)
             expected Puppet::Error with message matching /Shell LICENSE must be executable/ but nothing was raised
           # ./spec/unit/provider/user/useradd_spec.rb:602:in `block (3 levels) in <top (required)>'

      Finished in 21.23 seconds (files took 7.76 seconds to load)
      2619 examples, 1 failure, 10 pending

      Failed examples:

      rspec ./spec/unit/provider/user/useradd_spec.rb:599 # Puppet::Type::User::ProviderUseradd#check_valid_shell should raise an error if the shell is not executable

       

      Describe steps to reproduce…

      git clone git://github.com/puppetlabs/puppet
      cd puppet
      git checkout 5.5.2
      bundle install --path .bundle/gems/

      bundle exec rspec "spec/unit/provider"

       

      Desired Behavior:

      testcase passes without errors

      Actual Behavior:

      testcase fails with shell validation error on RHEL 8

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

      Examples:
      Run puppet agent with --test --trace --debug

      Relevant sections of /var/log/puppetlabs/puppetserver/puppetserver.log or any applicable logs from the same directory.

      For more detailed information turn up the server logs by upping the log level in the server's logback.xml

      Relevant sections of configurations files (puppet.conf, hiera.conf, Server's conf.d, defaults/sysconfig)

      For memory issues with server heap dumps are also helpful.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sid226 Siddesh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support