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

purge_ssh_keys causes stack trace when creating new users on redhat

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.6.0
    • Fix Version/s: PUP 3.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Red Hat x86_64
      puppet noarch 3.4.3.1089-1.el6
      SHA: 0e284c9382befbb00905939cb550f4607ba24d02

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-3-19 to 2014-3-26, Week 2014-3-26 to 2014-4-02

      Description

      The user is successfully created, but a stack trace is generated. This issue was not reproducible in Ubuntu 12.04.

      [root@pe-rhel6 ~]# puppet resource user testuser ensure=present managehome=true password='$6$salt$IxDD3jeSOb5eB1CX5LBsqZFVkJdido3OUILO5Ifz5iwMuTS4XMS130MTSuDDl3aCI6WouIL9AjRbLCelDCy.g.' --trace
      Error: /User[testuser]: Failed to generate additional resources using 'eval_generate': undefined method `empty?' for nil:NilClass
      /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:573:in `eval_generate'
      /usr/lib/ruby/site_ruby/1.8/puppet/transaction/additional_resource_generator.rb:38:in `eval_generate'
      /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:72:in `evaluate'
      /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in `call'
      /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:116:in `traverse'
      /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:108:in `evaluate'
      /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:164:in `apply'
      /usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:153:in `with_destination'
      /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:in `as_logging_destination'
      /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:163:in `apply'
      /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:41:in `save'
      /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:283:in `save'
      /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:219:in `find_or_save_resources'
      /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:143:in `main'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in `run_command'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:479:in `plugin_hook'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run'
      /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:479:in `exit_on_fail'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run'
      /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:51:in `override'
      /usr/lib/ruby/site_ruby/1.8/puppet.rb:224:in `override'
      /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
      /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in `run'
      /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:in `execute'
      /usr/bin/puppet:4
      Notice: /User[testuser]/ensure: created
      user { 'testuser':
        ensure   => 'present',
        password => '$6$salt$IxDD3jeSOb5eB1CX5LBsqZFVkJdido3OUILO5Ifz5iwMuTS4XMS130MTSuDDl3aCI6WouIL9AjRbLCelDCy.g.',
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tony.vu Tony Vu
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support