3par iSCSI - revert-to-snap of a multi-attach volume leave volume in error state

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

Bug Description

Description of problem: While testing revert-to-snapshot of a multi-attached 3par iSCSI backed volume, revert leaves volume in error state.
c-vol report 3par client exception:

2020-06-02 08:51:46.219 39 ERROR cinder.volume.manager raise exceptions.from_response(resp, body)
2020-06-02 08:51:46.219 39 ERROR cinder.volume.manager hpe3parclient.exceptions.HTTPForbidden: Forbidden (HTTP 403) 171 - Parent Volume is exported

BTW revert to snap of a simple 3par iSCSI volume worked fine.
It also worked fine for an LVM multi-attached volume.

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

python3-cinderlib-1.0.1-0.20200310143137.199ebd4.el8ost.noarch
python3-cinderclient-5.0.1-0.20200326150227.8fa0882.el8ost.noarch
puppet-cinder-15.4.1-0.20200403212626.24b85a8.el8ost.noarch
openstack-cinder-15.1.1-0.20200403213514.cfa2d1b.el8ost.noarch
python3-cinder-15.1.1-0.20200403213514.cfa2d1b.el8ost.noarch

How reproducible:
2 times

Steps to Reproduce:
1. Boot up two instances

2. Create 3par mutli-attached volume
(overcloud) [stack@undercloud-0 ~]$ cinder create 1 --volume-type multiattach --name 3par-ma
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-06-02T08:41:17.000000 |
| description | None |
| encrypted | False |
| id | 225bc3df-93b3-41fe-b2a1-ee01296a6312 |
| metadata | {} |
| migration_status | None |
| multiattach | True |
| name | 3par-ma |
| 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 | 20ece4159c8a4ea6b8cbb89edaafc920 |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | a94a20fdd7534e45ba436d99995d9723 |
| volume_type | multiattach |
+--------------------------------+--------------------------------------+

3.
Attach to both instance, write data on volume

(overcloud) [stack@undercloud-0 ~]$ cinder list
+--------------------------------------+--------+---------+------+-------------+----------+---------------------------------------------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+---------+------+-------------+----------+---------------------------------------------------------------------------+
| 225bc3df-93b3-41fe-b2a1-ee01296a6312 | in-use | 3par-ma | 1 | multiattach | false | 87f36d4a-49a3-4ee8-88d3-f15b8cbf9b29,71551ec0-803c-485d-a1ac-e2d5f3727198 |
+--------------------------------------+--------+---------+------+-------------+----------+---------------------------------------------------------------------------+

4. Create snapshot
(overcloud) [stack@undercloud-0 ~]$ cinder snapshot-create 225bc3df-93b3-41fe-b2a1-ee01296a6312 --force --name spanMA
+-------------+--------------------------------------+
| Property | Value |
+-------------+--------------------------------------+
| created_at | 2020-06-02T08:47:52.123503 |
| description | None |
| id | b999d61d-c5c0-4bdb-86f7-97370f28d271 |
| metadata | {} |
| name | spanMA |
| size | 1 |
| status | creating |
| updated_at | None |
| volume_id | 225bc3df-93b3-41fe-b2a1-ee01296a6312 |
+-------------+--------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ cinder snapshot-show b999d61d-c5c0-4bdb-86f7-97370f28d271
+--------------------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------------------+--------------------------------------+
| created_at | 2020-06-02T08:47:52.000000 |
| description | None |
| id | b999d61d-c5c0-4bdb-86f7-97370f28d271 |
| metadata | {} |
| name | spanMA |
| os-extended-snapshot-attributes:progress | 100% |
| os-extended-snapshot-attributes:project_id | 20ece4159c8a4ea6b8cbb89edaafc920 |
| size | 1 |
| status | available |
| updated_at | 2020-06-02T08:47:52.000000 |
| volume_id | 225bc3df-93b3-41fe-b2a1-ee01296a6312 |
+--------------------------------------------+--------------------------------------+

5. Detach volume from both instances

(overcloud) [stack@undercloud-0 ~]$ nova volume-detach inst1 225bc3df-93b3-41fe-b2a1-ee01296a6312
(overcloud) [stack@undercloud-0 ~]$ nova volume-detach inst2 225bc3df-93b3-41fe-b2a1-ee01296a6312
(overcloud) [stack@undercloud-0 ~]$ cinder list
+--------------------------------------+--------+---------+------+-------------+----------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+---------+------+-------------+----------+--------------------------------------+
| 225bc3df-93b3-41fe-b2a1-ee01296a6312 | in-use | 3par-ma | 1 | multiattach | false | 87f36d4a-49a3-4ee8-88d3-f15b8cbf9b29 |
+--------------------------------------+--------+---------+------+-------------+----------+--------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ nova volume-detach inst1 225bc3df-93b3-41fe-b2a1-ee01296a6312
(overcloud) [stack@undercloud-0 ~]$ cinder list
+--------------------------------------+-----------+---------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+---------+------+-------------+----------+-------------+
| 225bc3df-93b3-41fe-b2a1-ee01296a6312 | available | 3par-ma | 1 | multiattach | false | |
+--------------------------------------+-----------+---------+------+-------------+----------+-------------+

6. Revert to snapshot:
(overcloud) [stack@undercloud-0 ~]$ cinder --os-volume-api-version=3.40 revert-to-snapshot b999d61d-c5c0-4bdb-86f7-97370f28d271
(overcloud) [stack@undercloud-0 ~]$ cinder show 225bc3df-93b3-41fe-b2a1-ee01296a6312
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-06-02T08:41:17.000000 |
| description | None |
| encrypted | False |
| id | 225bc3df-93b3-41fe-b2a1-ee01296a6312 |
| metadata | |
| migration_status | None |
| multiattach | True |
| name | 3par-ma |
| os-vol-host-attr:host | controller-1@3par#SSD_r5 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 20ece4159c8a4ea6b8cbb89edaafc920 |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| updated_at | 2020-06-02T08:51:46.000000 |
| user_id | a94a20fdd7534e45ba436d99995d9723 |
| volume_type | multiattach |
+--------------------------------+--------------------------------------+

Actual results:
Revert fails volume is left in error state.

Expected results:
Revert-to-snap should work leaving volume in available state.

Revision history for this message
Tzach Shefi (tshefi) wrote :
Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :

Hi,

We tried to reproduce this using master (Zed).
This scenario isn't reproducible; it seems to be fixed.
Attaching cinder output (output.txt) and cinder logs (cinder-volume.log).

This bug was reported nearly two years ago.
It would be great if you can let us know if this bug is resolved now.

Regards,
Raghavendra Tilay.

Changed in cinder:
assignee: nobody → Raghavendra Tilay (raghavendrat)
Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :
Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :
Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :

Hi,

Waiting for response.

Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :

Let me know if this bug can be closed.

Revision history for this message
Tzach Shefi (tshefi) wrote :
Download full text (18.1 KiB)

Hello,
Sorry for delay, resources were busy.

I've retested with:
python3-cinder-15.6.1-2.20220112174913.c093eda.el8ost.noarch
openstack-cinder-15.6.1-2.20220112174913.c093eda.el8ost.noarch
python3-cinderclient-5.0.2-2.20220107174846.7e9e31c.el8ost.noarch

My 3par needs a software update to reach 3.1.1 MU5,
see https://bugzilla.redhat.com/show_bug.cgi?id=2086763#c4
as I can't update my 3par yet, can't run the latest Cinder code.
Retesting with the latest version I can deploy/test.

Booted up two instances,
configured/created a MA/3par backed iSCSI volume

$ cinder type-create multiattach
+--------------------------------------+-------------+-------------+-----------+
| ID | Name | Description | Is_Public |
+--------------------------------------+-------------+-------------+-----------+
| f9fb9fd5-040e-444d-81f9-97d62d8da284 | multiattach | - | True |
+--------------------------------------+-------------+-------------+-----------+
$ cinder type-key multiattach set multiattach="<is> True"
$ cinder type-key multiattach set volume_backend_name=3par

$ cinder create 2 --volume-type multiattach --name ma_vol1
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2022-06-06T08:00:37.000000 |
| description | None |
| encrypted | False |
| id | f95cbd68-2b25-4c6d-b642-017f74195de6 |
| metadata | {} |
| migration_status | None |
| multiattach | True |
| name | ma_vol1 |
| 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 | 800f9746e3104fcfba11e6d3c94790c4 |
| replication_status | None |
| size | 2 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | d25961fc6a5740a9a189085c473cf153 |
| volume_type | multiattach |
+------------------...

Revision history for this message
Raghavendra Tilay (raghavendrat) wrote :

Thanks Tzach for response.
Let us know your test result with newer 3par OS [3.3.1 MU5] and newer RH OpenStack [may be RHOSP17 or 18].
Will wait for feedback.

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.