Bug 1049832
| Summary: | CLI : hammer cli command ` os add_architecture` fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Tazim Kolhar <tkolhar> | ||||
| Component: | Provisioning | Assignee: | Ohad Levy <ohadlevy> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Tazim Kolhar <tkolhar> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | Nightly | CC: | cwelton, omaciel, skottler | ||||
| Target Milestone: | Unspecified | ||||||
| Target Release: | Unused | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-01-08 10:41:58 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Tazim Kolhar
2014-01-08 10:26:53 UTC
Created attachment 847051 [details]
foreman-debug
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. # hammer --verbose os add_architecture --id 1 --name testos --architecture x86_64 --architecture-id 3
[ INFO 2014-01-08 05:39:34 Init] Initialization of Hammer CLI (0.0.14) has started...
[ INFO 2014-01-08 05:39:34 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded
[ INFO 2014-01-08 05:39:34 Modules] Extension module hammer_cli_foreman (0.0.15) loaded
[ INFO 2014-01-08 05:39:34 HammerCLI::MainCommand] Called with options: {"verbose"=>true}
[ INFO 2014-01-08 05:39:34 HammerCLIForeman::OperatingSystem] Called with options: {}
[ INFO 2014-01-08 05:39:34 HammerCLIForeman::AssociatingCommands::Architecture::AddArchitectureCommand] Called with options: {"id"=>"1", "associated_name"=>"x86_64", "associated_id"=>"3", "name"=>"testos"}
[ERROR 2014-01-08 05:39:34 Exception] Error: undefined method `[]' for nil:NilClass
Could not associate the architecture:
Error: undefined method `[]' for nil:NilClass
[ERROR 2014-01-08 05:39:34 Exception]
NoMethodError (undefined method `[]' for nil:NilClass):
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/commands.rb:256:in `get_current_ids'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/commands.rb:284:in `get_new_ids'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/commands.rb:266:in `request_params'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.0.15/lib/hammer_cli_foreman/commands.rb:34:in `send_request'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/./apipie/write_command.rb:10:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/bin/hammer:61
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19
*** This bug has been marked as a duplicate of bug 1049829 *** |