Bug 1533057

Summary: Unable to fetch the list of cloud volumes through API
Product: Red Hat CloudForms Management Engine Reporter: Imaan <ikaur>
Component: APIAssignee: Tim Wade <twade>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, gtanzill, igortiunov, maufart, obarenbo, simaishi, twade
Target Milestone: GA   
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-13 17:55:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1551709    

Description Imaan 2018-01-10 11:45:56 UTC
Description of problem:

Not able to fetch the cloud volumes via normal user through API.

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

Verified in CFME version 5.8.1 and 5.8.2 
 
How reproducible:

Always

Steps to Reproduce:


1. Add openstack provider.

   Go to Compute-> Clouds-> Providers-> Configuration-> Add new cloud provider

2. Add cloud volume.

   Go to Storage-> Block Storage-> Volumes-> Configuration-> Add a new cloud volume

3. Fire the query through api :

Query: https://<IP>/api/cloud_volumes/1

Actual results:

{"error":{"kind":"forbidden","message":"Use of the read action is forbidden","klass":"Api::ForbiddenError"}}

Expected results:

It should display the cloud volume information via normal user through API.

Additional info:

Able to fetch the information via admin user.

Comment 4 Gregg Tanzillo 2018-01-10 14:41:48 UTC
Tim, can you take a look at this one? I think it may be a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1462269.

Comment 6 Tim Wade 2018-03-13 17:55:52 UTC
I believe this is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1462269 as Gregg suggested above. Here's a link to the PR that fixed it: https://github.com/ManageIQ/manageiq-api/pull/254. Closing as a dup

*** This bug has been marked as a duplicate of bug 1462269 ***