Bug #23253
closedhammer auth-source fails with undefined method `resource' for HammerCLI::MainCommand:Class
Description
# hammer -d auth-source [ INFO 2018-04-12T03:24:46 Init] Initialization of Hammer CLI (0.13.pre.develop) has started... [DEBUG 2018-04-12T03:24:46 Init] Running at ruby 2.4.3-p205 [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_core.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_admin_logging_katello.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_openscap.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_virt_who_configure.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded [ INFO 2018-04-12T03:24:46 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded [DEBUG 2018-04-12T03:24:47 SSLoptions] SSL options: { :ssl_ca_file => "/etc/pki/katello/certs/katello-server-ca.crt", :verify_ssl => true } [DEBUG 2018-04-12T03:24:47 API] Global headers: { :content_type => "application/json", :accept => "application/json;version=2", "Accept-Language" => "en" } [DEBUG 2018-04-12T03:24:47 API] Follow redirects: never [DEBUG 2018-04-12T03:24:47 Connection] Registered: foreman [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_foreman (0.13.pre.develop) loaded. [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_foreman_admin (0.0.8) loaded. [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded. [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_foreman_discovery (1.0.0) loaded. [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_foreman_openscap (0.1.6) loaded. [ INFO 2018-04-12T03:24:47 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed. [ INFO 2018-04-12T03:24:47 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created. [ INFO 2018-04-12T03:24:47 Modules] Extension module hammer_cli_katello (0.12.1) loaded. [DEBUG 2018-04-12T03:24:47 Init] Using locale 'en' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/locale' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.pre.develop/locale' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer-cli-csv' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_csv-2.3.0/locale' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.4/locale' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer-cli-foreman-virt-who-configure' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_virt_who_configure-0.0.3/locale' [DEBUG 2018-04-12T03:24:47 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.12.1/locale' [ INFO 2018-04-12T03:24:47 HammerCLI::MainCommand] Called with options: {"option_debug"=>true} [ INFO 2018-04-12T03:24:47 HammerCLIForeman::AuthSource] Called with options: {} [DEBUG 2018-04-12T03:24:47 Exception] Using exception handler HammerCLIForeman::ExceptionHandler#handle_help_wanted [DEBUG 2018-04-12T03:24:47 Exception] Using exception handler HammerCLI::ExceptionHandler#handle_general_exception [ERROR 2018-04-12T03:24:47 Exception] Error: undefined method `resource' for HammerCLI::MainCommand:Class Error: undefined method `resource' for HammerCLI::MainCommand:Class [ERROR 2018-04-12T03:24:47 Exception] NoMethodError (undefined method `resource' for HammerCLI::MainCommand:Class): /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/apipie/resource.rb:10:in `resource' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/apipie/command.rb:41:in `help' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/exception_handler.rb:78:in `handle_help_wanted' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/exception_handler.rb:31:in `handle_exception' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/messages.rb:26:in `handle_exception' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:32:in `rescue in run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:28:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/bin/hammer:143:in `<top (required)>' /usr/bin/hammer:22:in `load' /usr/bin/hammer:22:in `<main>'
foreman-1.18.0-0.develop.201804091403git41fe8c6.el7.noarch
tfm-rubygem-hammer_cli-0.13.pre.develop-1.201803232224gite493035.el7.noarch
tfm-rubygem-hammer_cli_csv-2.3.0-2.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.13.pre.develop-1.201804041834git768148d.el7.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.8-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-6.el7.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.0.0-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-3.el7.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.6-1.fm1_18.el7.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.6-2.fm1_17.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.12-2.fm1_17.el7.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-2.el7.noarch
tfm-rubygem-hammer_cli_katello-0.12.1-1.el7.noarch
Updated by Tomáš Strachota over 6 years ago
- Category set to Users and roles
http://projects.theforeman.org/issues/19651/ might be fixing that, not sure.
Updated by Tomáš Strachota over 6 years ago
- Related to Feature #19651: Command for listing all auth sources added
Updated by Tomáš Strachota over 6 years ago
- Status changed from New to Closed
I confirm, http://projects.theforeman.org/issues/19651 has fixed that -> closing this issue.
Updated by Tomáš Strachota over 6 years ago
- Related to Feature #23266: Hammer should try to fetch new apidoc when resource wasn't found added