Bug 1428757

Summary: spacecmd should output RHN Satellite System IDs with system name in lists
Product: Red Hat Satellite 5 Reporter: Tomáš Kašpárek <tkasparek>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: msuchy, oliver, pstudeni, satqe-list, tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacecmd-2.5.0-9-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1399151 Environment:
Last Closed: 2017-06-21 12:08:00 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: 1399151    
Bug Blocks: 1358815    

Description Tomáš Kašpárek 2017-03-03 10:30:27 UTC
+++ This bug was initially created as a clone of Bug #1399151 +++

Description of problem:
There are several spacecmd commands that do only output the system name. To identify a system 100% the RHN Satellite System ID would be needed. Satellite 5 allows a system to re-register with the same name, but a different system ID. Thereofr the system name will appear (maybe twice), but it is not clear which system is meant.

Version-Release number of selected component (if applicable):
spacecmd-2.5.8-1.el7.noarch

Steps to Reproduce:
1. run: spacecmd package_listinstalledsystems <packagename>
2. run: spacecmd system_list

Actual results:
outout is a list of system names

Expected results:
output is a list of system names and IDs

Additional info:
The RHN Satellite System ID is a unique identifier for a system, so this should be used in outputs instead of just the system name which can be appear several times.

--- Additional comment from Miroslav Suchý on 2016-11-29 03:54:43 EST ---

Moving to upstream

--- Additional comment from Tomáš Kašpárek on 2017-03-03 04:38:22 EST ---

Both package_listinstalledsystems and system_list calls now print system_name and it's id in output. If you manage to find some other calls which should also print systemdid, please let me know.

spacewalk.git(master): 40d59db9c8ed73e34185de005b985e4b9e1eac0d

Comment 3 Pavel Studeník 2017-03-23 12:04:52 UTC
Verified spacecmd-2.5.0-9.el6sat.noarch

>> spacecmd -s localhost -u admin -p pass "package_listinstalledsystems zip" 
...
hostname : 1000010270
...

Comment 4 Oliver Ilian 2017-03-23 12:12:13 UTC
Will this be also made available in spacecmd in EPEL7 (currently spacecmd-2.6.16-1.el7.noarch )

Comment 5 Tomáš Kašpárek 2017-03-23 12:16:00 UTC
(In reply to Oliver Haessler from comment #4)
> Will this be also made available in spacecmd in EPEL7 (currently
> spacecmd-2.6.16-1.el7.noarch )

Hello,
it will be part of Spacewalk 2.7 release (2-3 months from now, but don't take the time estimate for granted). Or you can use spacecmd which is available in spacewalk-nightly (it's already fixed there, may be unstable though).