Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1781774

Summary: RBD multiattach fails on newer ceph clusters
Product: Red Hat OpenStack Reporter: James Parker <jparker>
Component: openstack-cinderAssignee: Cinder Bugs List <cinder-bugs>
Status: CLOSED DUPLICATE QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact: Chuck Copello <ccopello>
Priority: unspecified    
Version: 16.0 (Train)CC: eharney
Target Milestone: ---   
Target Release: ---   
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: 2019-12-10 15:00:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Parker 2019-12-10 14:46:38 UTC
Description of problem:
Creating a multi-attach volume results in the volume going into error state when using a CEPH cluster.

Version-Release number of selected component (if applicable):
[root@controller-0 heat-admin]# podman exec -it keystone sh -c "rpm -qa | grep openstack-keystone"
openstack-keystone-16.0.1-0.20191030053432.d5f9c68.el8ost.noarch
[root@controller-0 cinder]# podman exec -it cinder_api sh -c "rpm -qa | grep cinder"
python3-cinder-15.0.1-0.20191128040416.ef025a7.el8ost.noarch
openstack-cinder-15.0.1-0.20191128040416.ef025a7.el8ost.noarch
puppet-cinder-15.4.1-0.20191028225029.f4aa29e.el8ost.noarch
python3-cinderclient-5.0.0-0.20191025161022.a63d4d6.el8ost.noarch
[root@controller-0 cinder]# podman exec -it cinder_api sh -c "rpm -qa | grep rbd"
python3-rbd-14.2.4-74.el8cp.x86_64
librbd1-14.2.4-74.el8cp.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Create a multi-attach volume type
(overcloud) [stack@undercloud-0 ~]$ cinder type-create multiattach
+--------------------------------------+-------------+-------------+-----------+
| ID                                   | Name        | Description | Is_Public |
+--------------------------------------+-------------+-------------+-----------+
| 82b6dc43-2c40-4c15-a256-a43c9da1b993 | multiattach | -           | True      |
+--------------------------------------+-------------+-------------+-----------+
(overcloud) [stack@undercloud-0 ~]$ cinder type-key multiattach set multiattach="<is> True"

2. Create a volume
(overcloud) [stack@undercloud-0 ~]$ openstack volume create --size 1 --type multiattach vol1
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| attachments         | []                                   |
| availability_zone   | nova                                 |
| bootable            | false                                |
| consistencygroup_id | None                                 |
| created_at          | 2019-12-10T13:56:10.000000           |
| description         | None                                 |
| encrypted           | False                                |
| id                  | 60b18ad7-d128-4b2f-978a-f919dfb37d90 |
| migration_status    | None                                 |
| multiattach         | True                                 |
| name                | vol1                                 |
| properties          |                                      |
| replication_status  | None                                 |
| size                | 1                                    |
| snapshot_id         | None                                 |
| source_volid        | None                                 |
| status              | creating                             |
| type                | multiattach                          |
| updated_at          | None                                 |
| user_id             | 8e043c5f219246d58aa97ff15c338307     |
+---------------------+--------------------------------------+
3. Check volume status
(overcloud) [stack@undercloud-0 ~]$ openstack volume list
+--------------------------------------+------+--------+------+-------------+
| ID                                   | Name | Status | Size | Attached to |
+--------------------------------------+------+--------+------+-------------+
| 60b18ad7-d128-4b2f-978a-f919dfb37d90 | vol1 | error  |    1 |             |
+--------------------------------------+------+--------+------+-------------+


Actual results:
Volume is in error status and reports Error in logs:
cinder-volume.log:2019-12-10 14:04:58.903 57564 ERROR cinder.volume.drivers.rbd [req-b9a58902-c2dd-437e-8da5-748e9224e159 8e043c5f219246d58aa97ff15c338307 e5f7cc5495e745fd95a91f857ec4c674 - default default] Error creating rbd image volume-b216536c-b246-4b71-802d-b139fa3b2991.: rbd.InvalidArgument: [errno 22] error updating features for image b'volume-b216536c-b246-4b71-802d-b139fa3b2991'


Expected results:
Volume is created and transitions to available

Additional info:

Comment 1 Eric Harney 2019-12-10 15:00:15 UTC

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