Bug 1429944
Summary: | In spacecmd, it should be clear whether I am referencing a system by its ID or its name | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Lukáš Hellebrandt <lhellebr> |
Component: | Server | Assignee: | Tomáš Kašpárek <tkasparek> |
Status: | CLOSED ERRATA | QA Contact: | Pavel Studeník <pstudeni> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | jdostal, pstudeni, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacecmd-2.5.0-18-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-05 13:57:18 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: | 1450111 |
Description
Lukáš Hellebrandt
2017-03-07 14:42:05 UTC
system ID takes precedence over system name as it's unique spacewalk.git(master): 6d4f495564cbdf5489daf76f60b6c6bbb74af2af Description is strange, but I think that problem can be following scenario:
1) register 2 system with same name "client-rhel7"
2) system_list
client-rhel7 : 1000010005
client-rhel7 : 1000010006
3) system_delete search:id:1000010005
WARNING: Duplicate system profile names found!
WARNING: Please reference systems by ID or resolve the
WARNING: underlying issue with 'system_delete' or 'system_rename'
WARNING:
WARNING: client = 1000010005, 1000010006
WARNING: No systems to delete
4) And:
>> system_delete search:name:client
WARNING: Duplicate system profile names found!
WARNING: Please reference systems by ID or resolve the
WARNING: underlying issue with 'system_delete' or 'system_rename'
WARNING:
WARNING: client = 1000010005, 1000010006
Profile System ID
------------------------ ---------
client_01/12/18-09-37-10 1000010004
client_01/12/18-09-36-41 1000010003
client_01/10/18-11-04-31 1000010002
spacewalk.git(master): fccb47f09697421373f2ee3371573cf2ed44d4c9 Verified with spacecmd-2.5.0-18.el6sat.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0274 |