RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1059815 - Error: 87 lines match pattern '\[DEFAULT\]' in file '/etc/nova/nova.conf'. One or no line must match the pattern.
Summary: Error: 87 lines match pattern '\[DEFAULT\]' in file '/etc/nova/nova.conf'. O...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-puppet-modules
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-30 17:56 UTC by wes hayutin
Modified: 2014-02-03 21:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 21:31:00 UTC
Embargoed:


Attachments (Terms of Use)
log file of the install (330.61 KB, application/x-bzip)
2014-01-30 17:56 UTC, wes hayutin
no flags Details

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/


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