Bug 1833118 - cinder attachment-list always show empty Server ID
Summary: cinder attachment-list always show empty Server ID
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Eric Harney
QA Contact: Tzach Shefi
Chuck Copello
URL:
Whiteboard:
Depends On:
Blocks: 1793245
TreeView+ depends on / blocked
 
Reported: 2020-05-07 20:13 UTC by Eric Harney
Modified: 2020-09-21 11:01 UTC (History)
2 users (show)

Fixed In Version: python-cinderclient-4.2.2-0.20200507200434.5112244.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-21 11:01:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Harney 2020-05-07 20:13:18 UTC
This bug was initially created as a copy of Bug #1793245

I am copying this bug because: 



Description of problem:

In cinder attahment-list, we see that all attachment records has empty Sever ID.
At the same time we see that cinder api returns instance information correctly,
so this is the bug in cinderclient.

~~~
(overcloud) [stack@undercloud-0 ~]$ cinder --debug --os-volume-api-version 3.50 attachment-list
...
DEBUG:keystoneauth:REQ: curl -g -i -X GET http://10.0.0.116:8776/v3/470b11ac8f90471ebef6c7f550ce76b6/attachments -H "OpenStack-API-Version: volume 3.50" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}40dd6acdf32df3e9f9d2a7de9a550da8240102d2"
DEBUG:keystoneauth:RESP: [200] Date: Tue, 21 Jan 2020 00:14:27 GMT Server: Apache x-compute-request-id: req-7bbb807d-8ae6-4f53-a1fd-09aa9a5e2f34 OpenStack-API-Version: volume 3.50 Vary: OpenStack-API-Version,Accept-Encoding x-openstack-request-id: req-7bbb807d-8ae6-4f53-a1fd-09aa9a5e2f34 Content-Encoding: gzip Content-Length: 161 Content-Type: application/json 
RESP BODY: {"attachments": [{"status": "attached", "instance": "8f1f617d-9f8f-492d-bf02-4929d37ed298", "id": "b0b71b46-3d38-48cd-85e0-d63c72d1a5ba", "volume_id": "4f51dd40-95ef-4a5d-ba02-27f9fff62a22"}]}

DEBUG:keystoneauth:GET call to volumev3 for http://10.0.0.116:8776/v3/470b11ac8f90471ebef6c7f550ce76b6/attachments used request id req-7bbb807d-8ae6-4f53-a1fd-09aa9a5e2f34
+--------------------------------------+--------------------------------------+----------+-----------+
| ID                                   | Volume ID                            | Status   | Server ID |
+--------------------------------------+--------------------------------------+----------+-----------+
| b0b71b46-3d38-48cd-85e0-d63c72d1a5ba | 4f51dd40-95ef-4a5d-ba02-27f9fff62a22 | attached |           |
+--------------------------------------+--------------------------------------+----------+-----------+
~~~

There exists the fix[1] already merged in stable/train and master.
We should also backport it to stable branches so that we can see required information by a single command.

[1] https://review.opendev.org/#/c/658948/

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


How reproducible:
Always

Steps to Reproduce:
1. Create an instance
2. Create a volume and attach it to the instance
3. See cinder attachment-list

Actual results:
Server ID is empty

Expected results:
Server ID is shows id of the instance


Additional info:

Comment 1 Luigi Toscano 2020-09-21 11:01:36 UTC
OSP15 is EOL. The problem (only relevant for <=15) has been solved in OSP13 (see the dependent bug)


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