Bug 1428757 - spacecmd should output RHN Satellite System IDs with system name in lists
Summary: spacecmd should output RHN Satellite System IDs with system name in lists
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On: 1399151
Blocks: sat580-low
TreeView+ depends on / blocked
 
Reported: 2017-03-03 10:30 UTC by Tomáš Kašpárek
Modified: 2017-06-21 12:08 UTC (History)
6 users (show)

Fixed In Version: spacecmd-2.5.0-9-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1399151
Environment:
Last Closed: 2017-06-21 12:08:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.