Bug 975007

Summary: cinder-volume fails to start if launched before the volume group is activated
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Giulio Fidente <gfidente>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: ajeain, aortega, derekh, eharney, mmagr, sclewis, sgordon, ykaul
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2013.1.1-0.19.dev632.el6ost Doc Type: Bug Fix
Doc Text:
The Block Storage service (openstack-cinder-volumes) is initialized earlier in the boot process than items listed in the rc.local file. On systems deployed by PackStack and configured to use a volume group backed by loopback device for block storage this meant that the volume group was not available when the Block Storage service was started on boot. As a result the service would fail to start. PackStack has been updated and now ensures that the Block Storage service is restarted once the rc.local file is processed and the volume group is available. This ensures that the Block Storage service continues to function correctly following reboot.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-27 17:17:59 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:
Embargoed:

Description Giulio Fidente 2013-06-17 11:29:57 UTC
Description of problem:
when installing via packstack, after a reboot, the openstack-cinder-volume service fails to start with:

> VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: volume group cinder-volumes doesn't exist

later in the boot process rc.local enables the volume group as expected, so a service restart fixes this


Version-Release number of selected component (if applicable):
openstack-packstack-2013.1.1-0.17.dev631.el6ost.noarch
openstack-cinder-2013.1.2-3.el6ost.noarch


Steps to Reproduce:
1. install using packstack and using a loopback file for cinder lvm
2. reboot


Actual results:
cinder-volume service is not active

Comment 2 Martin Magr 2013-06-17 13:16:00 UTC
Solution on Packstack side could be:
<mmagr> giulivo, so what do you suggest? add service restart to rc.local?
<giulivo> oh 
<giulivo> yeah that is simple and effective :)
<giulivo> packstack could do it, if using a loopback device

Comment 3 Stephen Gordon 2013-06-18 15:36:59 UTC
This is marked as a blocker, does this mean this note will no longer apply at GA (fix will be included in the release)?

Comment 5 Giulio Fidente 2013-06-19 13:21:11 UTC
verified using openstack-packstack-2013.1.1-0.19.dev632.el6ost.noarch

Comment 7 errata-xmlrpc 2013-06-27 17:17:59 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/RHBA-2013-0968.html