Cause: Packstack would attempt to set up the br-ex bridge twice if the br-ex bridge was included in a bridge mapping.
Consequence: Packstack installation would fail.
Fix: Packstack now detects whether br-ex is included in a bridge mapping and delays creating br-ex until the bridge mapping stage.
Result: Packstack no longer fails when br-ex is used in a bridge mapping.
Version:
Grizzly on RHEL6.4
openstack-packstack-2013.1.1-0.30.dev672.el6ost.noarch
openstack-quantum-2013.1.3-1.el6ost.noarch
Description:
Packstack fails when defining bridge_mapping to the external bridge:
ERROR : Error during puppet run : Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com
Neutron-related keys in Packstack's answer file
===============================================
CONFIG_QUANTUM_INSTALL=y
CONFIG_QUANTUM_SERVER_HOST=10.35.160.29
CONFIG_QUANTUM_USE_NAMESPACES=y
CONFIG_QUANTUM_KS_PW=123456
CONFIG_QUANTUM_DB_PW=123456
CONFIG_QUANTUM_L3_HOSTS=10.35.160.27
CONFIG_QUANTUM_L3_EXT_BRIDGE=br-ex
CONFIG_QUANTUM_DHCP_HOSTS=10.35.160.25
CONFIG_QUANTUM_L2_PLUGIN=openvswitch
CONFIG_QUANTUM_METADATA_HOSTS=10.35.160.29
CONFIG_QUANTUM_METADATA_PW=123456
CONFIG_QUANTUM_LB_TENANT_NETWORK_TYPE=local
CONFIG_QUANTUM_LB_VLAN_RANGES=
CONFIG_QUANTUM_LB_INTERFACE_MAPPINGS=
CONFIG_QUANTUM_OVS_TENANT_NETWORK_TYPE=vlan
CONFIG_QUANTUM_OVS_VLAN_RANGES=int_vlan_range:211:214,ext_vlan_range:185:185
CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS=int_vlan_range:br-vlans,ext_vlan_range:br-ex
CONFIG_QUANTUM_OVS_BRIDGE_IFACES=
From Packstack's log file
=========================
2013-08-26 11:43:11::ERROR::ospluginutils::143::root:: Error during remote puppet apply of /var/tmp/packstack/20130826-114126-Ym0xpl/manifests/10.35.160.27_quantum.pp
2013-08-26 11:43:11::ERROR::ospluginutils::144::root:: Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com
2013-08-26 11:43:11::ERROR::run_setup::913::root:: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 908, in main
_main(confFile)
File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 577, in _main
runSequences()
File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 554, in runSequences
controller.runAllSequences()
File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 90, in runAllSequences
sequence.run(self.CONF)
File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 105, in run
step.run(config=config)
File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 52, in run
raise SequenceError(str(ex))
SequenceError: Error during puppet run : Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com
From 10.35.160.27_quantum.pp source file
========================================
vs_bridge { 'br-ex':
ensure => present,
require => Service['quantum-plugin-ovs-service']
}
From /usr/lib/python2.6/site-packages/packstack/puppet/modules/quantum/manifests/plugins/ovs/bridge.pp source file
==================================================================================================================
define quantum::plugins::ovs::bridge {
$mapping = split($name, ':')
$bridge = $mapping[1]
vs_bridge {$bridge:
ensure => present,
external_ids => "bridge-id=${bridge}"
}
}
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/RHEA-2013-1859.html
Version: Grizzly on RHEL6.4 openstack-packstack-2013.1.1-0.30.dev672.el6ost.noarch openstack-quantum-2013.1.3-1.el6ost.noarch Description: Packstack fails when defining bridge_mapping to the external bridge: ERROR : Error during puppet run : Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com Neutron-related keys in Packstack's answer file =============================================== CONFIG_QUANTUM_INSTALL=y CONFIG_QUANTUM_SERVER_HOST=10.35.160.29 CONFIG_QUANTUM_USE_NAMESPACES=y CONFIG_QUANTUM_KS_PW=123456 CONFIG_QUANTUM_DB_PW=123456 CONFIG_QUANTUM_L3_HOSTS=10.35.160.27 CONFIG_QUANTUM_L3_EXT_BRIDGE=br-ex CONFIG_QUANTUM_DHCP_HOSTS=10.35.160.25 CONFIG_QUANTUM_L2_PLUGIN=openvswitch CONFIG_QUANTUM_METADATA_HOSTS=10.35.160.29 CONFIG_QUANTUM_METADATA_PW=123456 CONFIG_QUANTUM_LB_TENANT_NETWORK_TYPE=local CONFIG_QUANTUM_LB_VLAN_RANGES= CONFIG_QUANTUM_LB_INTERFACE_MAPPINGS= CONFIG_QUANTUM_OVS_TENANT_NETWORK_TYPE=vlan CONFIG_QUANTUM_OVS_VLAN_RANGES=int_vlan_range:211:214,ext_vlan_range:185:185 CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS=int_vlan_range:br-vlans,ext_vlan_range:br-ex CONFIG_QUANTUM_OVS_BRIDGE_IFACES= From Packstack's log file ========================= 2013-08-26 11:43:11::ERROR::ospluginutils::143::root:: Error during remote puppet apply of /var/tmp/packstack/20130826-114126-Ym0xpl/manifests/10.35.160.27_quantum.pp 2013-08-26 11:43:11::ERROR::ospluginutils::144::root:: Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com 2013-08-26 11:43:11::ERROR::run_setup::913::root:: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 908, in main _main(confFile) File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 577, in _main runSequences() File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 554, in runSequences controller.runAllSequences() File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 90, in runAllSequences sequence.run(self.CONF) File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 105, in run step.run(config=config) File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 52, in run raise SequenceError(str(ex)) SequenceError: Error during puppet run : Duplicate definition: Vs_bridge[br-ex] is already defined in file /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/manifests/10.35.160.27_quantum.pp at line 37; cannot redefine at /var/tmp/packstack/c439a9dee62040eeaf5f231a1d4f9520/modules/quantum/manifests/plugins/ovs/bridge.pp:8 on node puma09.scl.lab.tlv.redhat.com From 10.35.160.27_quantum.pp source file ======================================== vs_bridge { 'br-ex': ensure => present, require => Service['quantum-plugin-ovs-service'] } From /usr/lib/python2.6/site-packages/packstack/puppet/modules/quantum/manifests/plugins/ovs/bridge.pp source file ================================================================================================================== define quantum::plugins::ovs::bridge { $mapping = split($name, ':') $bridge = $mapping[1] vs_bridge {$bridge: ensure => present, external_ids => "bridge-id=${bridge}" } }