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 1381881 - Taxonomies are not returned for Canned Roles
Summary: Taxonomies are not returned for Canned Roles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.3.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks: 1373844
TreeView+ depends on / blocked
 
Reported: 2016-10-05 09:21 UTC by Oleksandr Shtaier
Modified: 2019-09-26 16:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16799 0 None None None 2016-10-05 10:14:20 UTC

Description Oleksandr Shtaier 2016-10-05 09:21:48 UTC
Description of problem:
When I create new Canned Role with taxonomies:
hammer -v -u admin -p changeme --output=csv role create --organizations="coC4sT" --locations="lVZNUA2tLR" --name="Cc417k"
Message,Id,Name
User role [Cc417k] created,21,Cc417k

and try to read it back, necessary information is not returned:
hammer --output=json -v -u admin -p changeme role info --id="21"
{
  "Id": 21,
  "Name": "Cc417k",
  "Builtin": "No"
}


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

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
Taxonomies are not returned for just created Role

Expected results:
I can get expected information for Canned Role

Additional info:

Comment 2 Marek Hulan 2016-10-05 10:14:18 UTC
Created redmine issue http://projects.theforeman.org/issues/16799 from this bug

Comment 4 Bryan Kearney 2016-10-05 12:20:10 UTC
Upstream bug assigned to mhulan

Comment 5 Bryan Kearney 2016-10-05 12:20:13 UTC
Upstream bug assigned to mhulan

Comment 6 Bryan Kearney 2016-10-05 14:19:22 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16799 has been resolved.

Comment 7 Peter Ondrejka 2017-08-31 09:30:54 UTC
Verified in Sat 6.3 snap 13:

~]# hammer -v -u admin -p changeme --output=csv role create --organizations="kok" --locations="Default Location" --name="Cc417k"


~]# hammer --output=json -v -u admin -p changeme role info --id=26
{
  "Id": 26,
  "Name": "Cc417k",
  "Builtin": 0,
  "Description": null,
  "Locations": [
    {
      "id": 2,
      "name": "Default Location",
      "title": "Default Location",
      "description": null
    }
  ],
  "Organizations": [
    {
      "id": 3,
      "name": "kok",
      "title": "kok",
      "description": ""
    }
  ]
}

Comment 8 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336


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