Bug 1026803
Summary: | Hammer CLI - set_parameter command fails with undefined method `[]' for nil:NilClass" | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Hayk Hovsepyan <hhovsepy> |
Component: | Provisioning | Assignee: | Martin Bacovsky <mbacovsk> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.2 | CC: | dcleal, ohadlevy, sghai |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/3583 | ||
Whiteboard: | |||
Fixed In Version: | rubygem-hammer_cli_foreman-0.0.12-1.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-02 14:09:27 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: |
Description
Hayk Hovsepyan
2013-11-05 13:23:29 UTC
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 os add_configtemplate/remove_configtemplate/add_architecture/remove_architecture" commands fail with error: "Error: resource or action not defined". (In reply to Hayk Hovsepyan from comment #3) > "hammer os > add_configtemplate/remove_configtemplate/add_architecture/ > remove_architecture" commands fail with error: "Error: resource or action > not defined". I think this is bug #1025544. I can't replicate any issues with the list --search command (`hammer os list --search "name = Fedora"` works), so if you can elaborate on that and file it separate if necessary that'd be appreciated. Os search works fine. Verified with Satellite-6.0.3-RHEL-6-20140430.4 os set-parameter works ======================= [root@qetello02 yum.repos.d]# hammer os create --name 'testos' --major '2' Operating system created [root@qetello02 yum.repos.d]# hammer os set-parameter --name 'testparam' --value 'works' --os-id 68 New operating system parameter created [root@qetello02 yum.repos.d]# hammer os info --id 68 Id: 68 Name: testos 2 Release name: Family: Installation media: Architectures: Partition tables: Config templates: Default OS templates: Parameters: 1) testparam => works OS search works too: =================== [root@qetello02 yum.repos.d]# hammer os list --search "name = testos" ---|-----------------------|--------------|------- ID | NAME | RELEASE NAME | FAMILY ---|-----------------------|--------------|------- 68 | testos 2 | | ---|-----------------------|--------------|------- [root@qetello02 yum.repos.d]# This was delivered in 6.0.3, the Beta version of Satellite 6.0 This was delivered with 6.0.3, which is the Satellite 6 Beta. |