CEPH RBD mirroring - failed to create a replicated volume from an image

Bug #1676139 reported by Tzach Shefi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

Description of problem: When using Cinder CEPH RBD mirroring, creating a none replicated volume from an image works fine. Creating a replicated volume from an image fails status - error. Creating an empty replicated volume also works fine.

Version-Release number of selected component (if applicable):
# rpm -qa | grep cinder
openstack-cinder-10.0.1-0.20170310192919.b05afc3.el7ost.noarch
python-cinderclient-1.11.0-1.el7ost.noarch
puppet-cinder-10.3.0-1.el7ost.noarch
python-cinder-10.0.1-0.20170310192919.b05afc3.el7ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Configure a system with CEPH RBD mirroring
2. Upload an image
3. Create a none replicated volume from an image - works.
# openstack volume create NoneReplVolFromImage --size 2 --image 06ea4aa6-4391-40fa-9f19-01fd0534cbe7

4. Create a replicated volume from an image - status error.
# openstack volume create ReplVolFromImage --size 2 --type REPL --image 06ea4aa6-4391-40fa-9f19-01fd0534cbe7

5. An empty replicated volume is created successfully, basic replication works.

6. Cinder list see error status on vol from #4
[stack@undercloud-0 ~]$ cinder list
[stack@undercloud-0 ~]$ cinder list
+--------------------------------------+-----------+----------------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+----------------------+------+-------------+----------+-------------+
| 1f25cc1b-7e77-471a-a567-b38e216ce9ff | available | ReplVol | 2 | REPL | false | |
| 58b4bf7d-9be7-4b08-92d1-cdad1f694e93 | available | NoneReplVolFromImage | 2 | - | true | |
| be55fec9-1bd7-4756-8965-9d82233ce0ec | error | ReplVolFromImage | 2 | REPL | false | |
+--------------------------------------+-----------+----------------------+------+-------------+----------+-------------+

Actual results:
Failed to create a replicated volume from an image.

Expected results:
Replicated volume from an image should be successfully created.

Additional info:

Uploaded Cinder logs.

Glance image is a Cirros image in raw format, Glance also uses CEPH backend.

#glance image-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 06ea4aa6-4391-40fa-9f19-01fd0534cbe7 | cirros |
+--------------------------------------+--------+

$ cinder type-show REPL
+---------------------------------+-----------------------------------------------------------------------------+
| Property | Value |
+---------------------------------+-----------------------------------------------------------------------------+
| description | None |
| extra_specs | {'replication_enabled': '<is> True', 'volume_backend_name': 'tripleo_ceph'} |
| id | fb3f6fe6-9284-4555-8f56-185b10923589 |
| is_public | True |
| name | REPL |
| os-volume-type-access:is_public | True |
| qos_specs_id | None |
+---------------------------------+-----------------------------------------------------------------------------+

Revision history for this message
Tzach Shefi (tshefi) wrote :
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.