volume status was wrong when run reset-state CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
When we live-migrate a volume failed, the volume status was in-use and migrate status was error. We only want to clear the migrate status through run following CLI:
cinder reset-state [--reset-
But after that, not only clear the migrate status but also change volume status into 'available' even though it was attached on a server, this isn't what we expected, so I report this bug to repair it.
As following shown, this volume actually status is 'in-use', because it has attached on a server before we run following CLI:
cinder reset-state [--reset-
but after this CLI completed ,the volume status was changed into 'available', it's not TRUE, because this volume is not detach from a server untill now!
+------
| Property | Value |
+------
| attachments | [{u'server_id': u'25e82035-
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2017-01-
| description | None |
| encrypted | False |
| id | 91cc6b0b-
| metadata | {u'readonly': u'False', u'attached_mode': u'rw'} |
| migration_status | None |
| multiattach | False |
| name | vol |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| os-volume-
| os-volume-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| user_id | 0af9a7fb7593460
| volume_type | lvm |
+------
Changed in cinder: | |
assignee: | nobody → xianming mao (mars0618) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in cinder: | |
status: | New → In Progress |
description: | updated |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/421775
Review: https:/