Comment 4 for bug 1183283

Revision history for this message
Kashyap Chamarthy (kashyapc) wrote : Re: On a fresh devstack install, creating a new cinder volume fails with "Logical volume" exists.

Question: In this context, how does it effect if you remove it via lvremove, or explicitly deleting the block device.

Anyhow, I tried w/ lvremove, still no dice.

=====
$ sudo lvs
  LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
  root fedora -wi-ao--- 15.57g
  swap fedora -wi-ao--- 3.94g
  volume-c875158c-e130-4c65-b9f7-e3975b23a8b3 stack-volumes -wi-a---- 1.00g
=====
$ sudo lvremove stack-volumes
Do you really want to remove active logical volume volume-c875158c-e130-4c65-b9f7-e3975b23a8b3? [y/n]: y
  Logical volume "volume-c875158c-e130-4c65-b9f7-e3975b23a8b3" successfully removed

$ cinder create --display-name image_vol-test5 --image_id 52ff39a7-470c-4cbd-b2c2-83420af2a016 1
=====
$ cinder list
+--------------------------------------+--------+-----------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+-----------------+------+-------------+----------+-------------+
| c875158c-e130-4c65-b9f7-e3975b23a8b3 | error | image_vol-test4 | 1 | None | false | |
| d25b8bf8-8441-4355-8e74-3a4caa6eedf6 | error | image_vol-test5 | 1 | None | false | |
+--------------------------------------+--------+-----------------+------+-------------+----------+-------------+
=====

Let me try a fresh devstack install (# git pull devstack and all repos in /opt/stack, ./unstack && ./stack).

And, yes I noticed too that 'lvcreate' is being called twice. Will see