Netapp cDot drivers allow double manage
Bug #1725275 reported by
Erlon R. Cruz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Naresh Kumar Gunjalli |
Bug Description
In NetApp cDot controllers, if the admin passes the ID of a volume
that is already managed by Cinder, the controller will rename the
volume file and Cinder will still count on that volume. This will
cause the volume to fall in an error state in the next operation
performed on it.
Steps to reproduce:
1 - Create a volume v1 and get its file name (volume-v1['id'])
2 - Manage the same file using the manage API
$ cinder manage host@backend#pool1 volume-v1['id']
3 - Do any operation on v1 (delete, extend, etc)
4 - Operation fails and v1 goes to an error state
description: | updated |
description: | updated |
tags: | added: drivers netapp |
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Naresh Kumar Gunjalli (nareshkumarg) |
To post a comment you must log in.
I tried to reproduce this issue but the issue has been fixed.
I created a iscsi volume "double1".
This volume double1 is provisioned on "iscsi_flexvol2" flexvol of ontap..
root@scspa06031 47001:~ # cinder list ------- ------- ------- ------- ----+-- ------- --+---- -----+- -----+- ------- -----+- ------- --+---- ------- --+ ------- ------- ------- ------- ----+-- ------- --+---- -----+- -----+- ------- -----+- ------- --+---- ------- --+ 6225-4f08- 8f9f-c5eee765e2 23 | available | double1 | 1 | ontap-iscsi | false | | ------- ------- ------- ------- ----+-- ------- --+---- -----+- -----+- ------- -----+- ------- --+---- ------- --+
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| f77afdf8-
+------
fas3250-2n-rtp-4::> lun show -vserver openstack_iscsi ------- ------- ------- --- ------- -------- -------- --------
/vol/ iscsi_flexvol2/ volume- f77afdf8- 6225-4f08- 8f9f-c5eee765e2 23
online unmapped linux 1GB
Vserver Path State Mapped Type Size
--------- -------
openstack_iscsi
List of cinder pools in my system.. 47001:~ # cinder get-pools ----+-- ------- ------- ------- ------- ------- ----+ ----+-- ------- ------- ------- ------- ------- ----+ @lvmdriver- 1#lvmdriver- 1 | ----+-- ------- ------- ------- ------- ------- ----+ ----+-- ------- ------- ------- ------- ------- ------- + ----+-- ------- ------- ------- ------- ------- ------- + @ontap- iscsi#iscsi_ flexvol2 | ----+-- ------- ------- ------- ------- ------- ------- + ----+-- ------- ------- ------- ------- ------- ------+ ----+-- ------- ------- ------- ------- ------- ------+ @ontap- iscsi#iscsi_ flexvol | ----+-- ------- ------- ------- ------- ------- ------+
root@scspa06031
+------
| Property | Value |
+------
| name | scspa0603147001
+------
+------
| Property | Value |
+------
| name | scspa0603147001
+------
+------
| Property | Value |
+------
| name | scspa0603147001
+------
I tried to double manage the above created cinder volume but it fails with following error, 47001:~ # cinder manage scspa0603147001 @ontap- iscsi#iscsi_ flexvol2 volume- f77afdf8- 6225-4f08- 8f9f-c5eee765e2 23 811f-45ec- ab35-ecf5e0e4de 6c)
root@scspa06031
ERROR: Unable to manage existing volume. The volume is already managed (HTTP 400) (Request-ID: req-3b9838b6-
This issue is fixed in the Upstream.. Refer /github. com/openstack/ cinder/ commit/ 4f649809a4a51a5 ddbce290ca0dcb3 f1566f044b# diff-33011bbeb0 dd5116182770130 7e6d033 /github. com/openstack/ cinder/ commit/ 61962d2522fb778 d0bc2e0f511a541 579e7b2f89# diff-33011bbeb0 dd5116182770130 7e6d033
https:/
https:/
I have tested this issue in Rocky and Stein releases and no issues of double manage allowed in these versions..