The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #11581

aix 5.3 and aix 6.1 run puppet resource error

Added by hongbo hu over 2 years ago. Updated 12 months ago.

Status:ClosedStart date:12/27/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:provider
Target version:3.2.0
Affected Puppet version:2.7.9 Branch:
Keywords:aix provider

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

#puppet resource user --debug --verbose
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
/usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/provider/aixobject.rb:291:in `instances': undefined method `list_all' for Puppet::Type::User::ProviderAix:Class (NoMethodError)
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/type.rb:876:in `instances'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/type.rb:869:in `collect'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/type.rb:869:in `instances'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/resource/ral.rb:14:in `search'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/indirector/indirection.rb:249:in `search'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application/resource.rb:234:in `find_or_save_resources'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application/resource.rb:144:in `main'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:314:in `run_command'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:306:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:410:in `hook'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:306:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:401:in `exit_on_fail'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/application.rb:306:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/lib/puppet/util/command_line.rb:69:in `execute'
        from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.6/bin/puppet:4
        from /usr/local/bin/puppet:19:in `load'
        from /usr/local/bin/puppet:19

History

#1 Updated by hongbo hu over 2 years ago

  • Category set to provider
  • Keywords set to aix provider

run “puppet resource user” got the error blew

    /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/provider/aixobject.rb:291:in `instances': undefined method `list_all' for           Puppet::Type::Group::ProviderAix:Class (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/type.rb:880:in `instances'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/type.rb:873:in `collect'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/type.rb:873:in `instances'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/indirector/resource/ral.rb:14:in `search'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/indirector/indirection.rb:249:in `search'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application/resource.rb:234:in `find_or_save_resources'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application/resource.rb:144:in `main'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:314:in `run_command'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:306:in `run'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:410:in `hook'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:306:in `run'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:401:in `exit_on_fail'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/application.rb:306:in `run'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/lib/puppet/util/command_line.rb:69:in `execute'
    from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.9/bin/puppet:4
    from /usr/local/bin/puppet:18:in `load'
    from /usr/local/bin/puppet:18

#2 Updated by hongbo hu over 2 years ago

  • Target version set to 2.7.x
  • Affected Puppet version set to 2.7.9

any body help me out

#3 Updated by Daniel Pittman over 2 years ago

  • Description updated (diff)
  • Status changed from Unreviewed to Accepted

Looks to be a valid bug, thanks for the report, and especially for the backtrace.

#4 Updated by Gilles Pion over 1 year ago

Strangely, “puppet resource user [any_username_here]” also fails with the same error (“undefined method `list_all'”), even if the user is specified.

In that case one could think that a “list_all” method should not be required.

#5 Updated by Andrew Parker over 1 year ago

  • Target version deleted (2.7.x)

#6 Updated by Matthaus Owens 12 months ago

  • Status changed from Accepted to Merged - Pending Release
  • Target version set to 3.2.0

Fixed in commit 64d99b0

#7 Updated by Matthaus Owens 12 months ago

  • Status changed from Merged - Pending Release to Closed

Released in Puppet 3.2.0-rc1

Also available in: Atom PDF