Bug 1427905
Summary: | spacecmd - problem when system has the name same as another system's ID | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Lukáš Hellebrandt <lhellebr> |
Component: | Server | Assignee: | Tomáš Kašpárek <tkasparek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lukáš Hellebrandt <lhellebr> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | tlestach |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacecmd-2.5.0-8-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-21 12:14:29 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: | 1358815 |
Description
Lukáš Hellebrandt
2017-03-01 13:46:47 UTC
Furthermore, I do not see possibility of using ID documented anywhere: <SYSTEMS> can be any of the following: name ssm (see 'help ssm') search:QUERY (see 'help system_search') group:GROUP channel:CHANNEL Closing this BZ as duplicate of 1427938 as 1427938 is clearly a subset of this one. *** This bug has been marked as a duplicate of bug 1427938 *** Of course I meant this one is subset of 1427938. Reopening as this is really a subset of bz#1427938 a bit but there's something more happening inside of this bug. spacewalk.git(master): 8f29dfc3896a12657adcab913a066c07de20371a After consulting with tkasparek, I am verifying this and making a follow-up bug. When there is a system with the same name as other system's ID, the user is now asked to solve the problem by renaming or deleting a system and the command exits. No operations should now happen to the wrong system by accident. However, this did not solve the problem of clearly specifying the system either by ID or by name: if there are some systems where these are the same, you are prevented from making unintended operations but you are also prevented from doing anything at all: spacecmd {SSM:0}> system_list 1000010005 : 1000010006 1000010006 : 1000010005 spacecmd {SSM:0}> system_details 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: 1000010005 = 1000010005, 1000010006 spacecmd {SSM:0}> system_delete 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: 1000010005 = 1000010005, 1000010006 WARNING: No systems to delete spacecmd {SSM:0}> 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: 1000010006 = 1000010006, 1000010005 WARNING: No systems to delete There is no way whatsoever of doing anything with these systems, even if merely deleting them. |