Bug 967344

Summary: CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS= is not being used by packstack
Product: Red Hat OpenStack Reporter: Ofer Blaut <oblaut>
Component: openstack-packstackAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Ofer Blaut <oblaut>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: ajeain, aortega, derekh, gkotton, mmagr, rohara, sgordon, ykaul
Target Milestone: snapshot2   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2013.1.1-0.8.dev601 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 18:53:01 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
Remove bogus default value for CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS
none
Use CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter
none
Use CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter none

Description Ofer Blaut 2013-05-26 18:45:17 UTC
Description of problem:

I have tried to configure quantum OVS, using packstack.

CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS= options is not being forward to plugin.ini files on L2 agents 

example below : 

# A comma separated list of VLAN ranges for the Quantum openvswitch
# plugin
CONFIG_QUANTUM_OVS_VLAN_RANGES=inter-vlan:201:203,ext-vlan:195:195


# A comma separated list of bridge mappings for the Quantum
# openvswitch plugin
CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS=inter-vlan:br-eth3


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.configure packstack answer file to use CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS=
2.run packstack
3.check /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini to see file is not updated 

Actual results:


Expected results:


Additional info:

Comment 2 Ryan O'Hara 2013-05-29 16:38:29 UTC
Created attachment 754472 [details]
Remove bogus default value for CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS

The default value for CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS in packstack was actually a VLAN range, not a bridge mapping. This patch removes this default value.

Comment 3 Ryan O'Hara 2013-05-29 16:43:53 UTC
Created attachment 754474 [details]
Use CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter

This patch takes the comma-separated string in CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter, splits it by ',' and wraps each item in single quotes. This is necessary since the puppet module expects the ovs bridge_mappings to be an array. This patch also adds bridge_mappings to the quantum_ovs_agent.pp template, which uses the CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter.

Comment 5 Ryan O'Hara 2013-05-30 18:18:50 UTC
Created attachment 754996 [details]
Use CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS parameter

Updated patch.

Comment 6 Ryan O'Hara 2013-05-30 18:33:27 UTC
*** Bug 968353 has been marked as a duplicate of this bug. ***

Comment 8 Ofer Blaut 2013-06-06 20:24:23 UTC
It is updated

openstack-packstack-2013.1.1-0.10.dev605.el6ost.noarch

Comment 9 errata-xmlrpc 2013-06-11 18:53:01 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.

http://rhn.redhat.com/errata/RHBA-2013-0938.html