Bug 1297712

Summary: PackStack misconfigures lvm.conf
Product: Red Hat OpenStack Reporter: Marko Myllynen <myllynen>
Component: openstack-packstackAssignee: Javier Peña <jpena>
Status: CLOSED ERRATA QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: aortega, dnavale, ichavero, jpena, jschluet, srevivo, thomas.cappetta, yeylon
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-7.0.0-0.11.dev1692.g1b5e83b.el7ost Doc Type: Bug Fix
Doc Text:
Previously, Packstack edited the /etc/lvm/lvm.conf file to set specific parameters for snapshot autoextend. However, the regexp used only allowed blank spaces instead of the tabs as currently used in the file. As a result, some lines were added at the end of the file, breaking its format. With this update, the regexp is updated in Packstack to set the parameters properly. As a result, there are no error messages when running LVM commands.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:21: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 Marko Myllynen 2016-01-12 09:57:03 UTC
Description of problem:
# pvck
# packstack ...
# pvck
  Configuration setting "snapshot_autoextend_percent" invalid. It's not part of any section.
  Configuration setting "snapshot_autoextend_threshold" invalid. It's not part of any section.
# tail -n 2 /etc/lvm/lvm.conf
  snapshot_autoextend_threshold = 80
  snapshot_autoextend_percent = 20

Comment 2 Javier Peña 2016-01-19 15:06:27 UTC
Proposed fix at https://review.openstack.org/269696

Comment 5 cappetta 2016-03-12 14:13:15 UTC
Hitting this issue... looking for / researching a work around...

Comment 6 cappetta 2016-03-12 14:22:35 UTC
Looks like I had these 2 parameters set 2x.  deleted the last 2 at the end of the file and believe all is good.

Comment 7 errata-xmlrpc 2016-04-07 21:21: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.

https://rhn.redhat.com/errata/RHEA-2016-0603.html