connection_info returned from attachments API is blank
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
High
|
Unassigned |
Bug Description
When looking at the v3 attachment information for a volume that is attached the connection_info comes back null:
curl -g -i -X GET http://
HTTP/1.1 200 OK
Date: Tue, 28 Nov 2017 03:02:56 GMT
Server: Apache/2.4.18 (Ubuntu)
x-compute-
Content-Type: application/json
Content-Length: 299
OpenStack-
Vary: OpenStack-
x-openstack-
Connection: close
{"attachment": {"status": "attached", "detached_at": "", "connection_info": null, "attached_at": "2017-11-
Seems like this should be populated when making the request.
Changed in cinder: | |
importance: | Undecided → High |
Looks like maybe you didn't use the new Cinder API's to create your attachment?
If you use the new Cinder API's, then do a get on the attachment ID:
curl -g -i -X GET http:// 10.117. 36.28/volume/ v3/0721bcfa559e 458c87ec35d97a6 800a9/attachmen ts/7efd5656- dc84-4996- ae7f-323142986a 85 -H "OpenStack- API-Version: volume 3.44" -H "User-Agent: python- cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e1c8c0af3 c2badad5938a095 9f087ea98ed0028 f" uth:RESP: [200] Date: Tue, 28 Nov 2017 22:40:00 GMT Server: Apache/2.4.18 (Ubuntu) x-compute- request- id: req-df950ca1- 53ea-4987- b294-7c41287a42 37 Content-Type: application/json Content-Length: 767 OpenStack- API-Version: volume 3.44 Vary: OpenStack- API-Version x-openstack- request- id: req-df950ca1- 53ea-4987- b294-7c41287a42 37 Connection: close dc84-4996- ae7f-323142986a 85", "target_ discovered" : false, "encrypted": false, "driver_ volume_ type": "iscsi", "qos_specs": null, "target_iqn": "iqn.2010- 10.org. openstack: volume- b822fb57- b820-47ae- b97f-0c85ea7bcf a5", "target_portal": "10.117. 36.28:3260" , "volume_id": "b822fb57- b820-47ae- b97f-0c85ea7bcf a5", "target_lun": 1, "access_mode": "rw", "auth_username": "C4W5WBxj3WgxvC aKMEvR" , "auth_method": "CHAP"}, "attached_at": "2017-11- 28T22:38: 55.000000" , "attach_mode": "rw", "instance": "2d509dbc- 8b62-49a9- b5fe-ad5d9c169b dd", "volume_id": "b822fb57- b820-47ae- b97f-0c85ea7bcf a5", "id": "7efd5656- dc84-4996- ae7f-323142986a 85"}}
DEBUG:keystonea
RESP BODY: {"attachment": {"status": "attached", "detached_at": "", "connection_info": {"auth_password": "Aa8WDrNaZAYBN8sa", "attachment_id": "7efd5656-