Bug 1031714

Summary: unable to create thin pool with thinLvm driver
Product: Red Hat OpenStack Reporter: Haim <hateya>
Component: openstack-cinderAssignee: Jon Bernard <jobernar>
Status: CLOSED WORKSFORME QA Contact: Haim <hateya>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.0CC: eharney, hateya, jobernar, yeylon
Target Milestone: ---   
Target Release: 4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-03 14:32:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Haim 2013-11-18 15:23:24 UTC
Description of problem:

setup:

- [bare metal] controller (running all services)
- [VM] glance located on remote machine 
- [VM] cinder located on remote machine

flow:

- cinder create --display-name test 1

error:

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
Stdout: ''
Stderr: '  Thin pool cinder-volumes-pool already exists in Volume group cinder-volumes.\n'


conf:

[root@hateya-cinder ~]# egrep lvm_type  /etc/cinder/cinder.conf 
lvm_type=thin





Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Eric Harney 2013-11-18 15:29:44 UTC
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.

Comment 2 Eric Harney 2013-11-18 15:51:57 UTC
The problem here was pool creation -- the secondary issue about failing to create a volume is bug 1022714.

Comment 6 Haim 2013-12-03 14:32:19 UTC
works for me on latest cinder versions:

openstack-cinder-2013.2-2.el6ost.noarch