Bug 1031714 - unable to create thin pool with thinLvm driver
Summary: unable to create thin pool with thinLvm driver
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 4.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: 4.0
Assignee: Jon Bernard
QA Contact: Haim
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-18 15:23 UTC by Haim
Modified: 2016-04-26 15:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-03 14:32:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.