Comment 1 for bug 1011150

Revision history for this message
LinuxMalaysia (linuxmalaysia) wrote : Re: [nova-volume] Volume stuck in Deleting status forever when deleting a volume and restarting nova-volume service

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;
+----+---------------------+------+-------------+-----------+---------------+------------------------+
| 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-server |
+----+---------------------+------+-------------+-----------+---------------+------------------------+
4 rows in set (0.00 sec)

mysql> quit
Bye

root@controller:~# euca-describe-volumes
VOLUME vol-00000003 100 nova deleting 2012-06-11T03:36:28.000Z
VOLUME vol-00000004 100 nova available 2012-06-11T03:48:01.000Z

root@controller:~# euca-delete-volume vol-00000003
EC2APIError: Delete Failed

root@controller:~# euca-describe-volumes
VOLUME vol-00000003 100 nova deleting 2012-06-11T03:36:28.000Z
VOLUME vol-00000004 100 nova available 2012-06-11T03:48:01.000Z

root@controller:~# euca-delete-volume vol-00000004
VOLUME vol-00000004

root@controller:~# euca-describe-volumes
VOLUME vol-00000003 100 nova deleting 2012-06-11T03:36:28.000Z
VOLUME vol-00000004 100 nova deleting 2012-06-11T03:48:01.000Z