nova/volume/driver.py _create_volume will fail if volume exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
Unassigned |
Bug Description
I just ran euca-create-volume on a machine that I'd re-installed nova (and wiped DB on).
The volume named 'volume-00000001' still existed from a previous install, so when I did it this time it failed, and I see a trace like:
2011-09-15 11:54:59,249 DEBUG nova.utils [-] Running cmd (subprocess): sudo lvcreate -L 1G -n volume-00000001 nova-volumes from (pid=1119) execute /home/ubuntu/
2011-09-15 11:54:59,340 DEBUG nova.utils [-] Result was 5 from (pid=1119) execute /home/ubuntu/
2011-09-15 11:54:59,342 ERROR nova.volume.driver [-] Recovering from a failed execute. Try number 2
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
(nova.volume.
The issue is fairly clear,
Logical volume "volume-00000001" already exists in volume group "nova-volumes"
I'm not sure how this should be handled.
it means the LVM volume exist, you should see this volume by running $ lvdisplay volumes/ volume- 00000001
You can remove it by running $ lvremove /dev/nova-
Would you after that remove again the volume and see if you see any errors into your nova-volumes.log (I suspect a "nova is not sudoer")
Thanks :)