Bug 822365
Summary: | Can't update the registered system's name: headpin: error: no such option: --new-name | ||
---|---|---|---|
Product: | [Retired] Subscription Asset Manager | Reporter: | Hui Wang <huiwang> |
Component: | katello | Assignee: | Tom McKay <tomckay> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Og Maciel <omaciel> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0.0 | CC: | esammons, omaciel, tomckay |
Target Milestone: | beta | Keywords: | Triaged |
Target Release: | 1.X | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-06-07 17:24:51 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: | |||
Bug Depends On: | |||
Bug Blocks: | 816564 |
Description
Hui Wang
2012-05-17 07:33:17 UTC
Reproduced (sort of): sam> system list --org RedHat_QE system list --org RedHat_QE -------------------------------------------------------------------------------- Systems List For Org [ RedHat_QE ] Name Ipv4 Address Service Level -------------------------------------------------------------------------------- systemUPlgbO None dTpk8 None WLQ0 None DMrv None dMCi7A None <--- We'll change this one SearchSysKl0G None SearchSysI3yK None SearchSyso6qda None SearchSys8r2X79 None sam> system update --org=RedHat_QE --name=dMCi7A --new-name=test123 system update --org=RedHat_QE --name=dMCi7A --new-name=test123 Successfully updated system [ dMCi7A ] sam> system list --org RedHat_QE system list --org RedHat_QE -------------------------------------------------------------------------------- Systems List For Org [ RedHat_QE ] Name Ipv4 Address Service Level -------------------------------------------------------------------------------- systemUPlgbO None dTpk8 None WLQ0 None DMrv None SearchSysKl0G None SearchSysI3yK None SearchSyso6qda None SearchSys8r2X79 None -name None <--- Oops what's that... sam> system list --org RedHat_QE -------------------------------------------------------------------------------- Systems List For Org [ RedHat_QE ] Name Ipv4 Address Service Level -------------------------------------------------------------------------------- systemUPlgbO None dTpk8 None WLQ0 None DMrv None SearchSysKl0G None SearchSysI3yK None SearchSyso6qda None SearchSys8r2X79 None -name None <--- We'll change this one sam> system update --org RedHat_QE --name -name --new_name test123 Successfully updated system [ -name ] sam> system list --org RedHat_QE -------------------------------------------------------------------------------- Systems List For Org [ RedHat_QE ] Name Ipv4 Address Service Level -------------------------------------------------------------------------------- systemUPlgbO None dTpk8 None WLQ0 None DMrv None SearchSysKl0G None SearchSysI3yK None SearchSyso6qda None SearchSys8r2X79 None test123 None <--- Success Conclusion: --new_name works in lieu of --new-name, it seems that this could be a easy help doc fix. First, using katello-cli-1.1.8-7.el6cf.noarch: # katello -u admin -p admin system list --org Starbucks --------------------------------------------------------------------------------------------------------------------------------------------- Systems List For Org [ Starbucks ] Name Uuid Ipv4 Address Service Level --------------------------------------------------------------------------------------------------------------------------------------------- qeclient01.usersys.redhat.com 5d504b77-4fd0-40e0-ae57-b6c3aef07b83 127.0.0.1 g-10090828 86d84d2b-c786-48a8-a816-300ab2da7073 None # katello -u admin -p admin system update --org Starbucks --name g-10090828 --new_name alien_machine Successfully updated system [ g-10090828 ] # katello -u admin -p admin system list --org Starbucks --------------------------------------------------------------------------------------------------------------------------------------------- Systems List For Org [ Starbucks ] Name Uuid Ipv4 Address Service Level --------------------------------------------------------------------------------------------------------------------------------------------- qeclient01.usersys.redhat.com 5d504b77-4fd0-40e0-ae57-b6c3aef07b83 127.0.0.1 alien_machine 86d84d2b-c786-48a8-a816-300ab2da7073 None [root@qetello03 ~]# headpin -u admin -p admin org list --------------------------------------------------------------------------------------------------------------------------------------------- Organization List Id Name Label Description --------------------------------------------------------------------------------------------------------------------------------------------- 4 Rome Rome None 3 Doritos Doritos None 2 Praha Praha Radio Praha 1 ACME_Corporation ACME_Corporation ACME_Corporation Organization [root@qetello03 ~]# headpin -u admin -p admin system list --org Rome --------------------------------------------------------------------------------------------------------------------------------------------- Systems List For Org [ Rome ] Name Uuid Ipv4 Address Service Level --------------------------------------------------------------------------------------------------------------------------------------------- qeclient09.usersys.redhat.com 5d4bbbfc-b3ba-46b8-9bc2-ef781cfb758a 127.0.0.1 qeclient08.usersys.redhat.com 41d0ae11-1646-42c0-8ea6-a8909134943d 127.0.0.1 qeclient07.usersys.redhat.com cb89d463-18cc-4476-ad99-01b1dd3d5c60 127.0.0.1 qeclient06.usersys.redhat.com 5907a600-1573-45de-a698-c9e624e4b927 127.0.0.1 qeclient05.usersys.redhat.com 4c10a39b-c207-4f4e-b19c-68e2e66e6209 127.0.0.1 qeclient04.usersys.redhat.com ddfa1031-020f-4c48-bcb0-bdff6c34202b 127.0.0.1 qeclient03.usersys.redhat.com 862a7be1-9616-4a91-8cc4-4569b0c33164 127.0.0.1 qeclient02.usersys.redhat.com ea1aa510-dc17-4b66-912d-657eb10a0d1c 127.0.0.1 [root@qetello03 ~]# headpin -u admin -p admin system update --org Rome --name qeclient02.usersys.redhat.com --new_name alien_machine Successfully updated system [ qeclient02.usersys.redhat.com ] [root@qetello03 ~]# headpin -u admin -p admin system list --org Rome --------------------------------------------------------------------------------------------------------------------------------------------- Systems List For Org [ Rome ] Name Uuid Ipv4 Address Service Level --------------------------------------------------------------------------------------------------------------------------------------------- qeclient09.usersys.redhat.com 5d4bbbfc-b3ba-46b8-9bc2-ef781cfb758a 127.0.0.1 qeclient08.usersys.redhat.com 41d0ae11-1646-42c0-8ea6-a8909134943d 127.0.0.1 qeclient07.usersys.redhat.com cb89d463-18cc-4476-ad99-01b1dd3d5c60 127.0.0.1 qeclient06.usersys.redhat.com 5907a600-1573-45de-a698-c9e624e4b927 127.0.0.1 qeclient05.usersys.redhat.com 4c10a39b-c207-4f4e-b19c-68e2e66e6209 127.0.0.1 qeclient04.usersys.redhat.com ddfa1031-020f-4c48-bcb0-bdff6c34202b 127.0.0.1 qeclient03.usersys.redhat.com 862a7be1-9616-4a91-8cc4-4569b0c33164 127.0.0.1 alien_machine ea1aa510-dc17-4b66-912d-657eb10a0d1c 127.0.0.1 [root@qetello03 ~]# headpin -u admin -p admin system update --org Rome --name alien_machine --new_name qeclient02.usersys.redhat.com Successfully updated system [ alien_machine ] [root@qetello03 ~]# headpin -u admin -p admin system list --org Rome --------------------------------------------------------------------------------------------------------------------------------------------- Systems List For Org [ Rome ] Name Uuid Ipv4 Address Service Level --------------------------------------------------------------------------------------------------------------------------------------------- qeclient09.usersys.redhat.com 5d4bbbfc-b3ba-46b8-9bc2-ef781cfb758a 127.0.0.1 qeclient08.usersys.redhat.com 41d0ae11-1646-42c0-8ea6-a8909134943d 127.0.0.1 qeclient07.usersys.redhat.com cb89d463-18cc-4476-ad99-01b1dd3d5c60 127.0.0.1 qeclient06.usersys.redhat.com 5907a600-1573-45de-a698-c9e624e4b927 127.0.0.1 qeclient05.usersys.redhat.com 4c10a39b-c207-4f4e-b19c-68e2e66e6209 127.0.0.1 qeclient04.usersys.redhat.com ddfa1031-020f-4c48-bcb0-bdff6c34202b 127.0.0.1 qeclient03.usersys.redhat.com 862a7be1-9616-4a91-8cc4-4569b0c33164 127.0.0.1 qeclient02.usersys.redhat.com ea1aa510-dc17-4b66-912d-657eb10a0d1c 127.0.0.1 Verified: * candlepin-0.7.13-1.el6_3.noarch * candlepin-tomcat6-0.7.13-1.el6_3.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.1.8-1h.el6_3.noarch * katello-cli-1.1.11-1h.el6_3.noarch * katello-cli-common-1.1.11-1h.el6_3.noarch * katello-common-1.1.15-2h.el6_3.noarch * katello-configure-1.1.11-1h.el6_3.noarch * katello-glue-candlepin-1.1.15-2h.el6_3.noarch * katello-headpin-1.1.15-2h.el6_3.noarch * katello-headpin-all-1.1.15-2h.el6_3.noarch * katello-selinux-1.1.2-1h.el6_3.noarch * thumbslug-0.0.24-1.el6_2.noarch * thumbslug-selinux-0.0.24-1.el6_2.noarch Closing out verified bugs from 1.2. Somehow the errata tool missed them. Closing out verified bugs from 1.2. Somehow the errata tool missed them. |