Red Hat Bugzilla – Bug 1298964
packstack fails with "Nova_config[DEFAULT/auto_assign_floating_ip] is already declared in file"
Last modified: 2016-04-15 09:46:44 EDT
Description of problem:
packstack fails with:
Error: Duplicate declaration: Nova_config[DEFAULT/auto_assign_floating_ip] is already declared in file /var/tmp/packstack/b4646346f5d94fbc8b73428a1c5b41f5/manifests/172.16.32.11_nova.pp:257
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. packstack install using attached config file
172.16.32.11_nova.pp: [ ERROR ]
00:13:26.123 Applying Puppet manifests [ ERROR ]
00:13:26.125 ERROR : Error appeared during Puppet run: 172.16.32.11_nova.pp
00:13:26.125 Error: Duplicate declaration: Nova_config[DEFAULT/auto_assign_floating_ip] is already declared in file /var/tmp/packstack/b4646346f5d94fbc8b73428a1c5b41f5/manifests/172.16.32.11_nova.pp:257; cannot redeclare at /var/tmp/packstack/b4646346f5d94fbc8b73428a1c5b41f5/modules/nova/manifests/network.pp:123 on node uk1pr-rhos-ci-20-rh-pud-pksk-controller.novalocal
00:13:26.128 You will find full trace in log /var/tmp/packstack/20160113-010457-xmpT35/manifests/172.16.32.11_nova.pp.log
<mmagr> I my guess is that in the past when installing nova-network the puppet modules did not set auto_assign_floating_ip config, so we did workaround for this: https://github.com/openstack/packstack/blob/stable/liberty/packstack/puppet/templates/nova_network.pp#L4
<mmagr> unfortunately current implementation in modules is doing so: https://github.com/redhat-openstack/openstack-puppet-modules/blob/stable/liberty/nova/manifests/network.pp#L122
<mmagr> jschlueter, so we have duplicate declaration
Created attachment 1115170 [details]
packstack answer file
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.