Volume deletion is never completed if volumes service is restarted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
John Griffith | ||
OpenStack Compute (nova) |
Fix Released
|
High
|
John Griffith |
Bug Description
Volume stuck in Deleting status forever when deleting a volume and restarting nova-volume service while dd is running
[root@camel-nova nova]# nova volume-create --display_name stuck_in_deleting 10
[root@camel-nova nova]# nova volume-list
+----+-
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-
| 13 | available | stuck_in_deleting | 10 | None | |
+----+-
[root@camel-nova nova]# nova volume-delete 13
2012-06-10 15:36:49 DEBUG nova.utils [req-e0a54dc4-
[root@camel-nova nova]# /etc/init.
-Verify dd finished
[root@camel-nova nova]# ps -ww `pgrep dd`
PID TTY STAT TIME COMMAND
2 ? S 0:00 [kthreadd]
4167 ? S 0:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0
4178 ? S 0:00 hald-addon-acpi: listening on acpid socket /var/run/
11135 ? Ssl 9:48 /usr/sbin/qpidd --data-dir /var/lib/qpidd --daemon
[root@camel-nova nova]# nova volume-list
+----+-
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-
| 13 | deleting | stuck_in_deleting | 10 | None | |
+----+-
[root@camel-nova nova]# nova volume-delete 13
ERROR: Invalid volume: Volume status must be available or error (HTTP 400)
Actual result:
Stuck forever in deleting status and cannot be deleted.
Changed in cinder: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | folsom-rc1 → 2012.2 |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Hi
Deleting Nova Volume will only produce status volume still Deleting. Its still running like forever.
Ubuntu version : Ubuntu Server 12.04 LTS
admin@controller:~$ uname -a
Linux controller 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
mysql> select id,created_at, size, instance_id, status, attach_status, display_name from volumes; ------- ------- ------+ ------+ ------- ------+ ------- ----+-- ------- ------+ ------- ------- ------- ---+ ------- ------- ------+ ------+ ------- ------+ ------- ----+-- ------- ------+ ------- ------- ------- ---+ -server | ------- ------- ------+ ------+ ------- ------+ ------- ----+-- ------- ------+ ------- ------- ------- ---+
+----+-
| id | created_at | size | instance_id | status | attach_status | display_name |
+----+-
| 1 | 2012-06-10 03:45:02 | 100 | NULL | deleting | detached | logs-data |
| 2 | 2012-06-10 06:43:31 | 5 | NULL | deleting | detached | Ujian1 |
| 3 | 2012-06-11 03:36:28 | 100 | NULL | deleting | detached | logs-server |
| 4 | 2012-06-11 03:48:01 | 100 | NULL | available | detached | logs-management
+----+-
4 rows in set (0.00 sec)
mysql> quit
Bye
root@controller:~# euca-describe- volumes 11T03:36: 28.000Z 11T03:48: 01.000Z
VOLUME vol-00000003 100 nova deleting 2012-06-
VOLUME vol-00000004 100 nova available 2012-06-
root@controller:~# euca-delete-volume vol-00000003
EC2APIError: Delete Failed
root@controller:~# euca-describe- volumes 11T03:36: 28.000Z 11T03:48: 01.000Z
VOLUME vol-00000003 100 nova deleting 2012-06-
VOLUME vol-00000004 100 nova available 2012-06-
root@controller:~# euca-delete-volume vol-00000004
VOLUME vol-00000004
root@controller:~# euca-describe- volumes 11T03:36: 28.000Z 11T03:48: 01.000Z
VOLUME vol-00000003 100 nova deleting 2012-06-
VOLUME vol-00000004 100 nova deleting 2012-06-