cinder type-access-add does not return operation details

Bug #1567376 reported by Sheel Rana on 2016-04-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Low
Sharmistha
python-cinderclient
Low
Sheel Rana

Bug Description

cinder type-access-add does not return operation details after operation completion

sheel@sheel:~/test/cinder/cinder$ cinder type-access-add --volume-type acb68f1f-dc54-4cdf-afcd-05cf5c4aabed --project-id 490672327b054ad590751b99cb517f27
sheel@sheel:~/test/cinder/cinder$

sheel@sheel:~/test/cinder/cinder$ cinder type-access-list --volume-type acb68f1f-dc54-4cdf-afcd-05cf5c4aabed
+--------------------------------------+----------------------------------+
| Volume_type_ID | Project_ID |
+--------------------------------------+----------------------------------+
| acb68f1f-dc54-4cdf-afcd-05cf5c4aabed | 490672327b054ad590751b99cb517f27 |
+--------------------------------------+----------------------------------+
sheel@sheel:~/test/cinder/cinder$

Sheel Rana (ranasheel2000) wrote :

This is mismatch with other create commands.

for example, If we create volume-type, this command outputs details of newly created resource.
Refer below for more details:

sheel@sheel:~/test/cinder/cinder$ cinder type-create sheel
+--------------------------------------+--------+-------------+-----------+
| ID | Name | Description | Is_Public |
+--------------------------------------+--------+-------------+-----------+
| 091b399a-aaf7-4e6d-8b84-c9fe29ce0c48 | sheel | - | True |
+--------------------------------------+--------+-------------+-----------+

Changed in cinder:
importance: Undecided → Low
assignee: nobody → Sheel Rana (ranasheel2000)
status: New → Confirmed
status: Confirmed → In Progress
Sheel Rana (ranasheel2000) wrote :

After fixing in cinder, output will be shown as below:

sheel@sheel:~/devstack$ curl -i -H "X-Auth-Token:b33203267aec4094b3f94e61b96b3375" -H "Content-type: application/f270b245cb11498ca4031deb7e141cfa/types/fce61d0d-b2d3-4998-aa5c-58002ace8413/action -X POST -d '{"addProjectAccess": {"project": "f270b245cb11498ca4031deb7e141cfa"}}'

HTTP/1.1 202 Accepted
X-Compute-Request-Id: req-cd381630-b96c-4598-ae18-e6b7d88ebb2e
Content-Type: application/json
Content-Length: 72
X-Openstack-Request-Id: req-cd381630-b96c-4598-ae18-e6b7d88ebb2e
Date: Fri, 08 Apr 2016 08:32:01 GMT

{"volume_type_id": 42, "project_id": "f270b245cb11498ca4031deb7e141cfa"}

Changed in python-cinderclient:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Sheel Rana (ranasheel2000)
Sheel Rana (ranasheel2000) wrote :

After fixing in cinder client, output will be shown as below:

root@sheel:~/cinder# cinder type-access-add --volume-type fce61d0d-b2d3-4998-aa5c-58002ace8413 --project-id f270b245cb11498ca4031deb7e141cfa

+----------------+----------------------------------+
| Property | Value |
+----------------+----------------------------------+
| Project_ID | f270b245cb11498ca4031deb7e141cfa |
| Volume_type_ID | 43 |
+----------------+----------------------------------+
root@sheel:~/cinder#

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/303289
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Unassigning due to no activity for > 6 months.

Changed in cinder:
assignee: Sheel Rana (ranasheel2000) → nobody
Changed in cinder:
status: In Progress → New
Changed in cinder:
assignee: nobody → Sharmistha (prasad-sharmistha)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers