Bug 1103157 - assigning resource to org or location only available via org/loc api
Summary: assigning resource to org or location only available via org/loc api
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Dominic Cleal
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1118743 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-30 11:49 UTC by Tom McKay
Modified: 2017-01-05 16:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-05 16:53:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5550 0 None None None 2016-04-22 16:02:09 UTC

Description Tom McKay 2014-05-30 11:49:22 UTC
The way to add a compute resource to an organization is to pass it to the org update api in the compute_resource_ids field. This field, however, must contain _all_ the ids not just the one being added.

To do this, first a call must be made to get the org, then the new compute resource id can be added, and then update called.

However, consider the case where a user, through their roles, only has a subset of the compute resources visible. Following the steps above, they would get just the existing compute resources they had permission to see, add the new compute resource id to the list, and call update. This would (attempt to?) remove all the other compute resources that the user did not have visibility into on that org.

The same applies for locations since they are implemented similarly through taxonomy.

Comment 1 Tom McKay 2014-05-30 11:49:24 UTC
Created from redmine issue http://projects.theforeman.org/issues/5550

Comment 4 jaudet 2014-08-04 17:11:28 UTC
Created a GitHub issue to track progress on testing this issue. See: https://github.com/omaciel/robottelo/issues/1123

Comment 5 Walden Raines 2014-08-13 15:13:59 UTC
*** Bug 1118743 has been marked as a duplicate of this bug. ***

Comment 6 Bryan Kearney 2015-08-25 17:56:57 UTC
Upstream bug component is Provisioning

Comment 7 Bryan Kearney 2015-08-25 17:58:30 UTC
Upstream bug component is API

Comment 8 Bryan Kearney 2017-01-05 16:53:12 UTC
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.


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