Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1059815

Summary: Error: 87 lines match pattern '\[DEFAULT\]' in file '/etc/nova/nova.conf'. One or no line must match the pattern.
Product: [Community] RDO Reporter: wes hayutin <whayutin>
Component: openstack-puppet-modulesAssignee: Martin Magr <mmagr>
Status: CLOSED CURRENTRELEASE QA Contact: Nir Magnezi <nmagnezi>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ndipanov, p, rbryant, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 21:31:00 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:
Attachments:
Description Flags
log file of the install none

Description wes hayutin 2014-01-30 17:56:11 UTC
Created attachment 857607 [details]
log file of the install

Description of problem:

Error in packstack aio install of nova:

Error: 87 lines match pattern '\[DEFAULT\]' in file '/etc/nova/nova.conf'.  One or no line must match the pattern.

Attaching logs of install, and will continue to debug

Comment 2 Pádraig Brady 2014-02-03 16:08:14 UTC
So I think this may be due to incorrect matching by this packstack ceilometer code. It's trying to add the following options after the [DEFAULT] section,
but it hitting an issue because [DEFAULT] is now used in 86 comments.
Is there not a more standard ini editing puppet logic we could use?

  #NOTE(dprince): This is using a custom (inline) file_line provider
  # until this lands upstream:
  # https://github.com/puppetlabs/puppetlabs-stdlib/pull/174
  Nova_config<| |> {
    before +> File_line_after[
      'nova-notification-driver-common',
      'nova-notification-driver-ceilometer'
    ],
  }

A workaround we could do in the nova package would be to adjust
these comment lines to avoid the issue.

Comment 3 Pádraig Brady 2014-02-03 17:03:24 UTC
Built openstack-nova-2014.1-0.9.b2.el6 openstack-nova-2014.1-0.11.b2.el7 openstack-nova-2014.1-0.11.b2.fc21 to avoid this

Comment 4 wes hayutin 2014-02-03 21:15:26 UTC
This appears to be fixed.. waiting for another install to finish

Comment 5 wes hayutin 2014-02-03 21:31:00 UTC
looks fixed.. 
updated package is in
http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/