Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1097858 - content-host list -> the 'id' listed is the uuid; however, system-group requires the db 'id'
Summary: content-host list -> the 'id' listed is the uuid; however, system-group requi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Dustin Tsang
QA Contact: Adam Saleh
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-14 17:04 UTC by Dustin Tsang
Modified: 2019-09-25 20:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:05:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5604 0 Normal Closed content-host list -> the 'id' listed is the uuid; however, system-group requires the db 'id' 2020-04-28 09:29:25 UTC

Description Dustin Tsang 2014-05-14 17:04:23 UTC
Description of problem:
1. When creating a system-group, if the user provides a list of system-ids, it appears that the server expects those to be the db ids (e.g. 1, 2, 3...etc).

2. When listing the content-hosts (systems), the ID listed is the content-host UUID (which is not the one expected in #1).

hammer> content-host list --organization-id ACME_Corporation
-------------------------------------|--------------------------
ID | NAME 
-------------------------------------|--------------------------
aedc1566-9aa8-483d-9c0c-b8a556c6fb87 | dhcp129-51.rdu.redhat.com
-------------------------------------|--------------------------

3. When looking at the content-host info, it requires the user to provide --id which is the UUID, but then lists that as the UUID and the DB ID as ID:

hammer> content-host info --organization-id ACME_Corporation --id aedc1566-9aa8-483d-9c0c-b8a556c6fb87
Name: dhcp129-51.rdu.redhat.com
ID: 2
UUID: aedc1566-9aa8-483d-9c0c-b8a556c6fb87
Description: updated description
Location: None
Lifecycle Environment: Library
Content View: Default Organization View
Entitlement Status: invalid
Release Version: 
Autoheal: true


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dustin Tsang 2014-05-14 17:05:22 UTC
linking to redmine issue already created.

Comment 2 RHEL Program Management 2014-05-14 17:24:49 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Dustin Tsang 2014-06-02 16:34:30 UTC
Solution is to present and accept all uuids as ids

for issue 1: 
host-collection will --system-id flag will take the uuids are args.
https://bugzilla.redhat.com/show_bug.cgi?id=1097633

for issue 2:
keep the same...displaying uuids in the id field when listing content-hosts

for issue 3:
display the uuid in the id field
https://bugzilla.redhat.com/show_bug.cgi?id=1084722

Comment 6 Adam Saleh 2014-06-17 09:51:38 UTC
Works as descibed in comment 4.

Comment 7 Bryan Kearney 2014-07-02 14:05:37 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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