Bug 1049836
| Summary: | CLI : hammer cli command `os add_ptable` 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:42:23 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: |
|
||||||
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_ptable --id 1 --name testos --ptable testptable
[ INFO 2014-01-08 05:38:19 Init] Initialization of Hammer CLI (0.0.14) has started...
[ INFO 2014-01-08 05:38:19 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded
[ INFO 2014-01-08 05:38:19 Modules] Extension module hammer_cli_foreman (0.0.15) loaded
[ INFO 2014-01-08 05:38:19 HammerCLI::MainCommand] Called with options: {"verbose"=>true}
[ INFO 2014-01-08 05:38:19 HammerCLIForeman::OperatingSystem] Called with options: {}
[ INFO 2014-01-08 05:38:19 HammerCLIForeman::AssociatingCommands::PartitionTable::AddPartitionTableCommand] Called with options: {"id"=>"1", "associated_name"=>"testptable", "name"=>"testos"}
[ERROR 2014-01-08 05:38:19 Exception] Error: undefined method `[]' for nil:NilClass
Could not associate the partition table:
Error: undefined method `[]' for nil:NilClass
[ERROR 2014-01-08 05:38:19 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 *** |
Created attachment 847063 [details] foreman-debug Description of problem: hammer cli command `os add_ptable` fails Version-Release number of selected component (if applicable): # rpm -qa | grep foreman rubygem-foreman_api-0.1.9-1.el6.noarch foreman-compute-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-libvirt-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-postgresql-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-selinux-1.4.0-0.develop.201311220906gite342a0b.el6.noarch rubygem-hammer_cli_foreman-0.0.15-1.el6.noarch foreman-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-ovirt-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-installer-1.4.0-0.develop.201401031335gitf3eee21.el6.noarch foreman-release-1.4.0-0.develop.201401071212git9ef39dd.el6.noarch foreman-proxy-1.4.0-0.develop.201401031522gitd3509e6.el6.noarch How reproducible: everytime Steps to Reproduce: 1.# hammer os add_ptable --id 1 --name testos --ptable testptable Could not associate the partition table: Error: undefined method `[]' for nil:NilClass 2. 3. Actual results: the command fails Expected results: the command should work as expected Additional info: