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

useradd provider fails if the current value of user's expiry is nil

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.8.5
    • Fix Version/s: None
    • Component/s: Modules
    • Environment:

      SUSE Linux Enterprise Server 12 SP1 (x86_64)
      ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]

      some of the hosts have this problem, some of the same host not.

    • Template:
    • Acceptance Criteria:
      Hide

      It looks like the script useradd.rb get a wrong value. but I don't know where was the script be used.

      Show
      It looks like the script useradd.rb get a wrong value. but I don't know where was the script be used.
    • Team:
      Platform OS

      Description

      Error: /Stage[main]/xxx::Userlistt/Resources[user]: Failed to generate additional resources using 'generate': expected numeric [250/1815]
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/provider/user/useradd.rb:40:in `+'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/provider/user/useradd.rb:40:in `block (2 levels) in <top (required)>'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/provider/nameservice.rb:218:in `call'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/provider/nameservice.rb:218:in `unmunge'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/provider/user/useradd.rb:208:in `block (3 levels) in <top (required)>'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/property.rb:471:in `retrieve'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/user.rb:393:in `block in retrieve'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/user.rb:387:in `each'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/user.rb:387:in `inject'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/user.rb:387:in `retrieve'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type.rb:1076:in `retrieve_resource'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/resources.rb:149:in `user_check'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/resources.rb:94:in `check'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/resources.rb:113:in `block in generate'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/resources.rb:113:in `select'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/type/resources.rb:113:in `generate'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/transaction/additional_resource_generator.rb:17:in `generate_additional_resources'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/transaction.rb:83:in `block in evaluate'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/transaction.rb:83:in `each'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/transaction.rb:83:in `evaluate'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/resource/catalog.rb:169:in `block in apply'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util/log.rb:149:in `with_destination'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/transaction/report.rb:112:in `as_logging_destination'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/resource/catalog.rb:168:in `apply'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/configurer.rb:120:in `block in apply_catalog'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util.rb:161:in `block in benchmark'
      /usr/lib64/ruby/2.1.0/benchmark.rb:294:in `realtime'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util.rb:160:in `benchmark'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/configurer.rb:119:in `apply_catalog'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/configurer.rb:227:in `run_internal'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/configurer.rb:134:in `block in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/context.rb:64:in `override'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet.rb:246:in `override'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/configurer.rb:133:in `run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:47:in `block (4 levels) in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent/locker.rb:20:in `lock'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:47:in `block (3 levels) in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:117:in `with_client'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:44:in `block (2 levels) in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:82:in `run_in_fork'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:43:in `block in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:179:in `call'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:179:in `controlled_run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/agent.rb:41:in `run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application/agent.rb:361:in `onetime'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application/agent.rb:327:in `run_command'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:381:in `block (2 levels) in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:507:in `plugin_hook'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:381:in `block in run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util.rb:496:in `exit_on_fail'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/application.rb:381:in `run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util/command_line.rb:146:in `run'
      /usr/lib64/ruby/vendor_ruby/2.1.0/puppet/util/command_line.rb:92:in `execute'
      /usr/bin/puppet:8:in `<main>'

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                hotsnow stonelai
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: