cinder volume driver-lvm not support multiattach

Bug #1729201 reported by cloud-liang
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
cloud-liang

Bug Description

[root@lh-packstack drivers(keystone_admin)]# cinder --debug create --allow-multiattach --name test666 1
DEBUG:keystoneauth:POST call to volumev3 for http://192.168.20.94:8776/v3/31ecd21dedec4aa59afcad814ed4b44d/volumes used request id req-bb393cfa-442e-456b-946b-3176bdad2fb1
DEBUG:keystoneauth:REQ: curl -g -i -X GET http://192.168.20.94:8776/v3/31ecd21dedec4aa59afcad814ed4b44d/volumes/c8962a7d-4fc7-46a2-aba5-58aff59920c9 -H "User-Agent: python-cinderclient" -H "X-OpenStack-Request-ID: req-bb393cfa-442e-456b-946b-3176bdad2fb1" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}b7b557a3503e43172ef6315ca037de960f82447c"
DEBUG:keystoneauth:RESP: [200] X-Compute-Request-Id: req-d15b5536-d65e-4371-8964-39b8e9f934ee Content-Type: application/json Content-Length: 979 Openstack-Api-Version: volume 3.0 Vary: OpenStack-API-Version X-Openstack-Request-Id: req-d15b5536-d65e-4371-8964-39b8e9f934ee Date: Wed, 01 Nov 2017 05:59:46 GMT Connection: keep-alive
RESP BODY: {"volume": {"migration_status": null, "attachments": [], "links": [{"href": "http://192.168.20.94:8776/v3/31ecd21dedec4aa59afcad814ed4b44d/volumes/c8962a7d-4fc7-46a2-aba5-58aff59920c9", "rel": "self"}, {"href": "http://192.168.20.94:8776/31ecd21dedec4aa59afcad814ed4b44d/volumes/c8962a7d-4fc7-46a2-aba5-58aff59920c9", "rel": "bookmark"}], "availability_zone": "nova", "os-vol-host-attr:host": null, "encrypted": false, "updated_at": null, "replication_status": null, "snapshot_id": null, "id": "c8962a7d-4fc7-46a2-aba5-58aff59920c9", "size": 1, "user_id": "a25136db5e854b288d8629c34263ae8e", "os-vol-tenant-attr:tenant_id": "31ecd21dedec4aa59afcad814ed4b44d", "os-vol-mig-status-attr:migstat": null, "metadata": {}, "status": "creating", "description": null, "multiattach": true, "source_volid": null, "consistencygroup_id": null, "os-vol-mig-status-attr:name_id": null, "name": "test666", "bootable": "false", "created_at": "2017-11-01T05:59:46.000000", "volume_type": "iscsi"}}

DEBUG:keystoneauth:GET call to volumev3 for http://192.168.20.94:8776/v3/31ecd21dedec4aa59afcad814ed4b44d/volumes/c8962a7d-4fc7-46a2-aba5-58aff59920c9 used request id req-d15b5536-d65e-4371-8964-39b8e9f934ee
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-11-01T05:59:46.000000 |
| description | None |
| encrypted | False |
| id | c8962a7d-4fc7-46a2-aba5-58aff59920c9 |
| metadata | {} |
| migration_status | None |
| multiattach | True |
| name | test666 |
| os-vol-host-attr:host | None |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 31ecd21dedec4aa59afcad814ed4b44d |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | a25136db5e854b288d8629c34263ae8e |
| volume_type | iscsi |
+--------------------------------+--------------------------------------+

==> scheduler.log <==
2017-11-01 13:59:46.983 17480 ERROR cinder.scheduler.flows.create_volume [req-bb393cfa-442e-456b-946b-3176bdad2fb1 a25136db5e854b288d8629c34263ae8e 31ecd21dedec4aa59afcad814ed4b44d - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available: NoValidBackend: No valid backend was found. No weighed backends available

Changed in cinder:
assignee: nobody → cloud-liang (lianghao)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Liang Hao (<email address hidden>) on branch: master
Review: https://review.openstack.org/516859

Revision history for this message
Kevin Zhao (kevin-zhao) wrote :

@Liang,
I also hit this bug,
do you have any good idea about this?

Your action will be really appreciated.

Revision history for this message
Ildiko Vancsa (ildiko-vancsa) wrote :

The 'multiattach' capability for the LVM driver is turned back on as the first iteration of the volume multi-attach feature is finalized in both Cinder and Nova, which means that the functionality is supported with using LVM starting from the Queens release. This is the first release of OpenStack that officially supports multi-attach in the open source version.

The patch that turns the capability back on for LVM is here: https://review.openstack.org/#/c/530996/

Changed in cinder:
status: In Progress → Fix Committed
Eric Harney (eharney)
Changed in cinder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.