Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
content host id and uuid are both used as content host identifiers, what is quite confusing
Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140716.0-Satellite-x86_64
How reproducible:
always
Steps to Reproduce:
1. Compare various content host identifiers
Actual results:
1. hammer interprets uuid as id
# hammer content-host list --organization-id 1
-------------------------------------|-----------------------------------
ID | NAME
-------------------------------------|-----------------------------------
49eb6336-03cf-4396-8302-67d3cff2c24e | vmware194.englab.brq.redhat.com
...
2. api documentation for "PUT /katello/api/systems/:id" says:
id /required/ UUID of the content host /Value: String
so, uuid is used as content host id
3. but the return hash of "PUT /katello/api/systems/:id" API with 'id' set to 'b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c' contains:
{..., "id"=>2, ...}
it contains uuid as well: "uuid"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c",
but it's confusing to update an object with a specific *id* and getting another *id* in the response
Expected results:
Hide the 'real' content host id ("id"=>2) from the user as it isn't used anywhere and is only confusing (or drop it completely)
Additional info:
What about returning both - id and uuid keys - with the same value?
{..., "id"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c", "uuid"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c", ...}
Moving to POST since upstream bug http://projects.theforeman.org/issues/6842 has been closed
-------------
dustin tsang
Applied in changeset commit:katello|95ac2fdf4b16d70f8f4853fbeb7d57b3616ee8bf.
Description of problem: content host id and uuid are both used as content host identifiers, what is quite confusing Version-Release number of selected component (if applicable): Satellite-6.0.4-RHEL-6-20140716.0-Satellite-x86_64 How reproducible: always Steps to Reproduce: 1. Compare various content host identifiers Actual results: 1. hammer interprets uuid as id # hammer content-host list --organization-id 1 -------------------------------------|----------------------------------- ID | NAME -------------------------------------|----------------------------------- 49eb6336-03cf-4396-8302-67d3cff2c24e | vmware194.englab.brq.redhat.com ... 2. api documentation for "PUT /katello/api/systems/:id" says: id /required/ UUID of the content host /Value: String so, uuid is used as content host id 3. but the return hash of "PUT /katello/api/systems/:id" API with 'id' set to 'b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c' contains: {..., "id"=>2, ...} it contains uuid as well: "uuid"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c", but it's confusing to update an object with a specific *id* and getting another *id* in the response Expected results: Hide the 'real' content host id ("id"=>2) from the user as it isn't used anywhere and is only confusing (or drop it completely) Additional info: What about returning both - id and uuid keys - with the same value? {..., "id"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c", "uuid"=>"b7dbf416-dd8d-4ab5-95ed-ffe51100ce2c", ...}