Bug 1017760

Summary: with lvm_type=thin parsing of lvm version fails and openstack-cinder-volume won't start
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-cinderAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: ddomingo, eharney, hateya, sradvan, yeylon
Target Milestone: betaKeywords: TestBlocker
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: openstack-cinder-2013.2-0.12.rc2.el6ost Doc Type: Bug Fix
Doc Text:
Cause: LVM versioning was not expected to contain strings while these could be used in custom builds of the LVM tools. Consequence: LVM version parsing, needed to ensure availability of Thin provisioning, was failing to initialize, causing openstack-cinder-volume service to not start. Fix: The parser now uses a regexp to inspect only the relevant digits. Result: LVM version is parsed correctly and openstack-cinder-volume starts as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:27:37 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:
Bug Depends On:    
Bug Blocks: 975606    

Description Giulio Fidente 2013-10-10 13:06:34 UTC
Description of problem:
openstack-cinder-volume does not start when using lvm_type=thin and the following appears in the logs:

2013-10-10 14:58:56.928 32460 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 142, in supports_thin_provisioning
2013-10-10 14:58:56.928 32460 TRACE cinder.service version_tuple = tuple(map(int, version.split('.')))
2013-10-10 14:58:56.928 32460 TRACE cinder.service ValueError: invalid literal for int() with base 10: '100-RHEL6'
Version-Release number of selected component (if applicable):


Steps to Reproduce:
1. enable thinlvm by setting lvm_type=thin in cinder.conf
2. restart openstack-cinder-volume

Comment 1 Giulio Fidente 2013-10-10 13:08:57 UTC
Version-Release number of selected component (if applicable):
openstack-cinder-2013.2-0.9.b3.el6ost.noarch

Comment 3 Scott Lewis 2013-11-18 20:35:35 UTC
Adding to beta milestone for MODIFIED/ON-QA bugs

Comment 4 Haim 2013-11-19 11:28:57 UTC
moving to verified on openstack-cinder-2013.2-2.el6ost.noarch.

there are different issues with thin lvm but service is running.

Comment 7 errata-xmlrpc 2013-12-20 00:27:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html