Red Hat Bugzilla – Bug 1031714
unable to create thin pool with thinLvm driver
Last modified: 2016-04-26 11:07:56 EDT
Description of problem:
- [bare metal] controller (running all services)
- [VM] glance located on remote machine
- [VM] cinder located on remote machine
- cinder create --display-name test 1
2013-11-18 16:50:08.199 30660 ERROR cinder.volume.manager [req-84db519a-d153-4cc3-9e94-1a660ec0bd12 None None] Error encountered during initialization
of driver: LVMISCSIDriver
2013-11-18 16:50:08.204 30660 ERROR cinder.volume.manager [req-84db519a-d153-4cc3-9e94-1a660ec0bd12 None None] Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -T -L 20 cinder-volumes/cinder-volumes-pool
Exit code: 5
Stderr: ' Thin pool cinder-volumes-pool already exists in Volume group cinder-volumes.\n'
[root@hateya-cinder ~]# egrep lvm_type /etc/cinder/cinder.conf
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I logged into the Cinder node, it was set to lvm_type=default and had no thin pool in the VG. I set the lvm_type to thin and restarted the volume service and seems to have created the pool successfully.
The log message from before indicates that it thought there was no pool, so tried to create one, but then LVM errored saying it already existed.
After that, cinder create seems to be working as expected.
The problem here was pool creation -- the secondary issue about failing to create a volume is bug 1022714.
works for me on latest cinder versions: