Fixes bug 1194064
The DEFAULT section remains the same.
In addition to this the sql_connection has been changed to
connection - this is for OSLO DB support.
Change-Id: I56175146941a9cae966033b557e44097e29a5d43
| ... | ... |
@@ -459,7 +459,7 @@ function _configure_quantum_common() {
|
| 459 | 459 |
Q_PLUGIN_CONF_FILE=$Q_PLUGIN_CONF_PATH/$Q_PLUGIN_CONF_FILENAME |
| 460 | 460 |
cp $QUANTUM_DIR/$Q_PLUGIN_CONF_FILE /$Q_PLUGIN_CONF_FILE |
| 461 | 461 |
|
| 462 |
- iniset /$Q_PLUGIN_CONF_FILE DATABASE sql_connection `database_connection_url $Q_DB_NAME` |
|
| 462 |
+ iniset /$Q_PLUGIN_CONF_FILE database connection `database_connection_url $Q_DB_NAME` |
|
| 463 | 463 |
iniset $QUANTUM_CONF DEFAULT state_path $DATA_DIR/quantum |
| 464 | 464 |
|
| 465 | 465 |
# If addition config files are set, make sure their path name is set as well |
| ... | ... |
@@ -494,7 +494,7 @@ function _configure_quantum_debug_command() {
|
| 494 | 494 |
iniset $QUANTUM_TEST_CONFIG_FILE DEFAULT root_helper "$Q_RR_COMMAND" |
| 495 | 495 |
# Intermediate fix until Quantum patch lands and then line above will |
| 496 | 496 |
# be cleaned. |
| 497 |
- iniset $QUANTUM_TEST_CONFIG_FILE AGENT root_helper "$Q_RR_COMMAND" |
|
| 497 |
+ iniset $QUANTUM_TEST_CONFIG_FILE agent root_helper "$Q_RR_COMMAND" |
|
| 498 | 498 |
|
| 499 | 499 |
_quantum_setup_keystone $QUANTUM_TEST_CONFIG_FILE DEFAULT set_auth_url |
| 500 | 500 |
_quantum_setup_interface_driver $QUANTUM_TEST_CONFIG_FILE |
| ... | ... |
@@ -563,7 +563,7 @@ function _configure_quantum_lbaas() {
|
| 563 | 563 |
function _configure_quantum_plugin_agent() {
|
| 564 | 564 |
# Specify the default root helper prior to agent configuration to |
| 565 | 565 |
# ensure that an agent's configuration can override the default |
| 566 |
- iniset /$Q_PLUGIN_CONF_FILE AGENT root_helper "$Q_RR_COMMAND" |
|
| 566 |
+ iniset /$Q_PLUGIN_CONF_FILE agent root_helper "$Q_RR_COMMAND" |
|
| 567 | 567 |
iniset $QUANTUM_CONF DEFAULT verbose True |
| 568 | 568 |
iniset $QUANTUM_CONF DEFAULT debug True |
| 569 | 569 |
|
| ... | ... |
@@ -645,7 +645,7 @@ function _quantum_setup_rootwrap() {
|
| 645 | 645 |
sudo mv $TEMPFILE /etc/sudoers.d/quantum-rootwrap |
| 646 | 646 |
|
| 647 | 647 |
# Update the root_helper |
| 648 |
- iniset $QUANTUM_CONF AGENT root_helper "$Q_RR_COMMAND" |
|
| 648 |
+ iniset $QUANTUM_CONF agent root_helper "$Q_RR_COMMAND" |
|
| 649 | 649 |
} |
| 650 | 650 |
|
| 651 | 651 |
# Configures keystone integration for quantum service and agents |
| ... | ... |
@@ -42,8 +42,8 @@ function quantum_plugin_configure_plugin_agent() {
|
| 42 | 42 |
} |
| 43 | 43 |
|
| 44 | 44 |
function quantum_plugin_configure_service() {
|
| 45 |
- iniset /$Q_PLUGIN_CONF_FILE RESTPROXY servers $BS_FL_CONTROLLERS_PORT |
|
| 46 |
- iniset /$Q_PLUGIN_CONF_FILE RESTPROXY servertimeout $BS_FL_CONTROLLER_TIMEOUT |
|
| 45 |
+ iniset /$Q_PLUGIN_CONF_FILE restproxy servers $BS_FL_CONTROLLERS_PORT |
|
| 46 |
+ iniset /$Q_PLUGIN_CONF_FILE restproxy servertimeout $BS_FL_CONTROLLER_TIMEOUT |
|
| 47 | 47 |
} |
| 48 | 48 |
|
| 49 | 49 |
function quantum_plugin_setup_interface_driver() {
|
| ... | ... |
@@ -14,7 +14,7 @@ function quantum_plugin_configure_common() {
|
| 14 | 14 |
|
| 15 | 15 |
function quantum_plugin_configure_service() {
|
| 16 | 16 |
if [[ "$ENABLE_TENANT_VLANS" = "True" ]]; then |
| 17 |
- iniset /$Q_PLUGIN_CONF_FILE VLANS tenant_network_type vlan |
|
| 17 |
+ iniset /$Q_PLUGIN_CONF_FILE vlans tenant_network_type vlan |
|
| 18 | 18 |
else |
| 19 | 19 |
echo "WARNING - The linuxbridge plugin is using local tenant networks, with no connectivity between hosts." |
| 20 | 20 |
fi |
| ... | ... |
@@ -28,12 +28,12 @@ function quantum_plugin_configure_service() {
|
| 28 | 28 |
fi |
| 29 | 29 |
fi |
| 30 | 30 |
if [[ "$LB_VLAN_RANGES" != "" ]]; then |
| 31 |
- iniset /$Q_PLUGIN_CONF_FILE VLANS network_vlan_ranges $LB_VLAN_RANGES |
|
| 31 |
+ iniset /$Q_PLUGIN_CONF_FILE vlans network_vlan_ranges $LB_VLAN_RANGES |
|
| 32 | 32 |
fi |
| 33 | 33 |
if [[ "$Q_USE_SECGROUP" == "True" ]]; then |
| 34 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.linux.iptables_firewall.IptablesFirewallDriver |
|
| 34 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.linux.iptables_firewall.IptablesFirewallDriver |
|
| 35 | 35 |
else |
| 36 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 36 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 37 | 37 |
fi |
| 38 | 38 |
|
| 39 | 39 |
# Define extra "LINUX_BRIDGE" configuration options when q-svc is configured by defining |
| ... | ... |
@@ -41,7 +41,7 @@ function quantum_plugin_configure_service() {
|
| 41 | 41 |
# For Example: ``Q_SRV_EXTRA_OPTS=(foo=true bar=2)`` |
| 42 | 42 |
for I in "${Q_SRV_EXTRA_OPTS[@]}"; do
|
| 43 | 43 |
# Replace the first '=' with ' ' for iniset syntax |
| 44 |
- iniset /$Q_PLUGIN_CONF_FILE LINUX_BRIDGE ${I/=/ }
|
|
| 44 |
+ iniset /$Q_PLUGIN_CONF_FILE linux_bridge ${I/=/ }
|
|
| 45 | 45 |
done |
| 46 | 46 |
} |
| 47 | 47 |
|
| ... | ... |
@@ -39,12 +39,12 @@ function quantum_plugin_configure_plugin_agent() {
|
| 39 | 39 |
LB_INTERFACE_MAPPINGS=$PHYSICAL_NETWORK:$LB_PHYSICAL_INTERFACE |
| 40 | 40 |
fi |
| 41 | 41 |
if [[ "$LB_INTERFACE_MAPPINGS" != "" ]]; then |
| 42 |
- iniset /$Q_PLUGIN_CONF_FILE LINUX_BRIDGE physical_interface_mappings $LB_INTERFACE_MAPPINGS |
|
| 42 |
+ iniset /$Q_PLUGIN_CONF_FILE linux_bridge physical_interface_mappings $LB_INTERFACE_MAPPINGS |
|
| 43 | 43 |
fi |
| 44 | 44 |
if [[ "$Q_USE_SECGROUP" == "True" ]]; then |
| 45 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.linux.iptables_firewall.IptablesFirewallDriver |
|
| 45 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.linux.iptables_firewall.IptablesFirewallDriver |
|
| 46 | 46 |
else |
| 47 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 47 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 48 | 48 |
fi |
| 49 | 49 |
AGENT_BINARY="$QUANTUM_DIR/bin/quantum-linuxbridge-agent" |
| 50 | 50 |
# Define extra "AGENT" configuration options when q-agt is configured by defining |
| ... | ... |
@@ -52,14 +52,14 @@ function quantum_plugin_configure_plugin_agent() {
|
| 52 | 52 |
# For Example: ``Q_AGENT_EXTRA_AGENT_OPTS=(foo=true bar=2)`` |
| 53 | 53 |
for I in "${Q_AGENT_EXTRA_AGENT_OPTS[@]}"; do
|
| 54 | 54 |
# Replace the first '=' with ' ' for iniset syntax |
| 55 |
- iniset /$Q_PLUGIN_CONF_FILE AGENT ${I/=/ }
|
|
| 55 |
+ iniset /$Q_PLUGIN_CONF_FILE agent ${I/=/ }
|
|
| 56 | 56 |
done |
| 57 | 57 |
# Define extra "LINUX_BRIDGE" configuration options when q-agt is configured by defining |
| 58 | 58 |
# the array ``Q_AGENT_EXTRA_SRV_OPTS``. |
| 59 | 59 |
# For Example: ``Q_AGENT_EXTRA_SRV_OPTS=(foo=true bar=2)`` |
| 60 | 60 |
for I in "${Q_AGENT_EXTRA_SRV_OPTS[@]}"; do
|
| 61 | 61 |
# Replace the first '=' with ' ' for iniset syntax |
| 62 |
- iniset /$Q_PLUGIN_CONF_FILE LINUX_BRIDGE ${I/=/ }
|
|
| 62 |
+ iniset /$Q_PLUGIN_CONF_FILE linux_bridge ${I/=/ }
|
|
| 63 | 63 |
done |
| 64 | 64 |
} |
| 65 | 65 |
|
| ... | ... |
@@ -77,11 +77,11 @@ function quantum_plugin_configure_plugin_agent() {
|
| 77 | 77 |
|
| 78 | 78 |
function quantum_plugin_configure_service() {
|
| 79 | 79 |
iniset $QUANTUM_CONF DEFAULT api_extensions_path quantum/plugins/nec/extensions/ |
| 80 |
- iniset /$Q_PLUGIN_CONF_FILE OFC host $OFC_API_HOST |
|
| 81 |
- iniset /$Q_PLUGIN_CONF_FILE OFC port $OFC_API_PORT |
|
| 82 |
- iniset /$Q_PLUGIN_CONF_FILE OFC driver $OFC_DRIVER |
|
| 83 |
- iniset /$Q_PLUGIN_CONF_FILE OFC api_retry_max OFC_RETRY_MAX |
|
| 84 |
- iniset /$Q_PLUGIN_CONF_FILE OFC api_retry_interval OFC_RETRY_INTERVAL |
|
| 80 |
+ iniset /$Q_PLUGIN_CONF_FILE ofc host $OFC_API_HOST |
|
| 81 |
+ iniset /$Q_PLUGIN_CONF_FILE ofc port $OFC_API_PORT |
|
| 82 |
+ iniset /$Q_PLUGIN_CONF_FILE ofc driver $OFC_DRIVER |
|
| 83 |
+ iniset /$Q_PLUGIN_CONF_FILE ofc api_retry_max OFC_RETRY_MAX |
|
| 84 |
+ iniset /$Q_PLUGIN_CONF_FILE ofc api_retry_interval OFC_RETRY_INTERVAL |
|
| 85 | 85 |
|
| 86 | 86 |
_quantum_ovs_base_configure_firewall_driver |
| 87 | 87 |
} |
| ... | ... |
@@ -68,16 +68,16 @@ function quantum_plugin_configure_plugin_agent() {
|
| 68 | 68 |
|
| 69 | 69 |
function quantum_plugin_configure_service() {
|
| 70 | 70 |
if [[ "$MAX_LP_PER_BRIDGED_LS" != "" ]]; then |
| 71 |
- iniset /$Q_PLUGIN_CONF_FILE NVP max_lp_per_bridged_ls $MAX_LP_PER_BRIDGED_LS |
|
| 71 |
+ iniset /$Q_PLUGIN_CONF_FILE nvp max_lp_per_bridged_ls $MAX_LP_PER_BRIDGED_LS |
|
| 72 | 72 |
fi |
| 73 | 73 |
if [[ "$MAX_LP_PER_OVERLAY_LS" != "" ]]; then |
| 74 |
- iniset /$Q_PLUGIN_CONF_FILE NVP max_lp_per_overlay_ls $MAX_LP_PER_OVERLAY_LS |
|
| 74 |
+ iniset /$Q_PLUGIN_CONF_FILE nvp max_lp_per_overlay_ls $MAX_LP_PER_OVERLAY_LS |
|
| 75 | 75 |
fi |
| 76 | 76 |
if [[ "$FAILOVER_TIME" != "" ]]; then |
| 77 |
- iniset /$Q_PLUGIN_CONF_FILE NVP failover_time $FAILOVER_TIME |
|
| 77 |
+ iniset /$Q_PLUGIN_CONF_FILE nvp failover_time $FAILOVER_TIME |
|
| 78 | 78 |
fi |
| 79 | 79 |
if [[ "$CONCURRENT_CONNECTIONS" != "" ]]; then |
| 80 |
- iniset /$Q_PLUGIN_CONF_FILE NVP concurrent_connections $CONCURRENT_CONNECTIONS |
|
| 80 |
+ iniset /$Q_PLUGIN_CONF_FILE nvp concurrent_connections $CONCURRENT_CONNECTIONS |
|
| 81 | 81 |
fi |
| 82 | 82 |
|
| 83 | 83 |
if [[ "$DEFAULT_TZ_UUID" != "" ]]; then |
| ... | ... |
@@ -89,7 +89,7 @@ function quantum_plugin_configure_service() {
|
| 89 | 89 |
iniset /$Q_PLUGIN_CONF_FILE DEFAULT default_l3_gw_service_uuid $DEFAULT_L3_GW_SVC_UUID |
| 90 | 90 |
Q_L3_ENABLED=True |
| 91 | 91 |
Q_L3_ROUTER_PER_TENANT=True |
| 92 |
- iniset /$Q_PLUGIN_CONF_FILE NVP enable_metadata_access_network True |
|
| 92 |
+ iniset /$Q_PLUGIN_CONF_FILE nvp enable_metadata_access_network True |
|
| 93 | 93 |
fi |
| 94 | 94 |
if [[ "$DEFAULT_L2_GW_SVC_UUID" != "" ]]; then |
| 95 | 95 |
iniset /$Q_PLUGIN_CONF_FILE DEFAULT default_l2_gw_service_uuid $DEFAULT_L2_GW_SVC_UUID |
| ... | ... |
@@ -16,10 +16,10 @@ function quantum_plugin_configure_common() {
|
| 16 | 16 |
|
| 17 | 17 |
function quantum_plugin_configure_service() {
|
| 18 | 18 |
if [[ "$ENABLE_TENANT_TUNNELS" = "True" ]]; then |
| 19 |
- iniset /$Q_PLUGIN_CONF_FILE OVS tenant_network_type gre |
|
| 20 |
- iniset /$Q_PLUGIN_CONF_FILE OVS tunnel_id_ranges $TENANT_TUNNEL_RANGES |
|
| 19 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs tenant_network_type gre |
|
| 20 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs tunnel_id_ranges $TENANT_TUNNEL_RANGES |
|
| 21 | 21 |
elif [[ "$ENABLE_TENANT_VLANS" = "True" ]]; then |
| 22 |
- iniset /$Q_PLUGIN_CONF_FILE OVS tenant_network_type vlan |
|
| 22 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs tenant_network_type vlan |
|
| 23 | 23 |
else |
| 24 | 24 |
echo "WARNING - The openvswitch plugin is using local tenant networks, with no connectivity between hosts." |
| 25 | 25 |
fi |
| ... | ... |
@@ -33,12 +33,12 @@ function quantum_plugin_configure_service() {
|
| 33 | 33 |
fi |
| 34 | 34 |
fi |
| 35 | 35 |
if [[ "$OVS_VLAN_RANGES" != "" ]]; then |
| 36 |
- iniset /$Q_PLUGIN_CONF_FILE OVS network_vlan_ranges $OVS_VLAN_RANGES |
|
| 36 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs network_vlan_ranges $OVS_VLAN_RANGES |
|
| 37 | 37 |
fi |
| 38 | 38 |
|
| 39 | 39 |
# Enable tunnel networks if selected |
| 40 | 40 |
if [[ $OVS_ENABLE_TUNNELING = "True" ]]; then |
| 41 |
- iniset /$Q_PLUGIN_CONF_FILE OVS enable_tunneling True |
|
| 41 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs enable_tunneling True |
|
| 42 | 42 |
fi |
| 43 | 43 |
|
| 44 | 44 |
_quantum_ovs_base_configure_firewall_driver |
| ... | ... |
@@ -48,7 +48,7 @@ function quantum_plugin_configure_service() {
|
| 48 | 48 |
# For Example: ``Q_SRV_EXTRA_OPTS=(foo=true bar=2)`` |
| 49 | 49 |
for I in "${Q_SRV_EXTRA_OPTS[@]}"; do
|
| 50 | 50 |
# Replace the first '=' with ' ' for iniset syntax |
| 51 |
- iniset /$Q_PLUGIN_CONF_FILE OVS ${I/=/ }
|
|
| 51 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs ${I/=/ }
|
|
| 52 | 52 |
done |
| 53 | 53 |
} |
| 54 | 54 |
|
| ... | ... |
@@ -47,8 +47,8 @@ function quantum_plugin_configure_plugin_agent() {
|
| 47 | 47 |
if [ `vercmp_numbers "$OVS_VERSION" "1.4"` -lt "0" ] && ! is_service_enabled q-svc ; then |
| 48 | 48 |
die $LINENO "You are running OVS version $OVS_VERSION. OVS 1.4+ is required for tunneling between multiple hosts." |
| 49 | 49 |
fi |
| 50 |
- iniset /$Q_PLUGIN_CONF_FILE OVS enable_tunneling True |
|
| 51 |
- iniset /$Q_PLUGIN_CONF_FILE OVS local_ip $HOST_IP |
|
| 50 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs enable_tunneling True |
|
| 51 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $HOST_IP |
|
| 52 | 52 |
fi |
| 53 | 53 |
|
| 54 | 54 |
# Setup physical network bridge mappings. Override |
| ... | ... |
@@ -61,7 +61,7 @@ function quantum_plugin_configure_plugin_agent() {
|
| 61 | 61 |
sudo ovs-vsctl --no-wait -- --may-exist add-br $OVS_PHYSICAL_BRIDGE |
| 62 | 62 |
fi |
| 63 | 63 |
if [[ "$OVS_BRIDGE_MAPPINGS" != "" ]]; then |
| 64 |
- iniset /$Q_PLUGIN_CONF_FILE OVS bridge_mappings $OVS_BRIDGE_MAPPINGS |
|
| 64 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs bridge_mappings $OVS_BRIDGE_MAPPINGS |
|
| 65 | 65 |
fi |
| 66 | 66 |
AGENT_BINARY="$QUANTUM_DIR/bin/quantum-openvswitch-agent" |
| 67 | 67 |
|
| ... | ... |
@@ -73,20 +73,20 @@ function quantum_plugin_configure_plugin_agent() {
|
| 73 | 73 |
Q_RR_DOM0_COMMAND="$QUANTUM_DIR/bin/quantum-rootwrap-xen-dom0 $Q_RR_CONF_FILE" |
| 74 | 74 |
|
| 75 | 75 |
# For now, duplicate the xen configuration already found in nova.conf |
| 76 |
- iniset $Q_RR_CONF_FILE XENAPI xenapi_connection_url "$XENAPI_CONNECTION_URL" |
|
| 77 |
- iniset $Q_RR_CONF_FILE XENAPI xenapi_connection_username "$XENAPI_USER" |
|
| 78 |
- iniset $Q_RR_CONF_FILE XENAPI xenapi_connection_password "$XENAPI_PASSWORD" |
|
| 76 |
+ iniset $Q_RR_CONF_FILE xenapi xenapi_connection_url "$XENAPI_CONNECTION_URL" |
|
| 77 |
+ iniset $Q_RR_CONF_FILE xenapi xenapi_connection_username "$XENAPI_USER" |
|
| 78 |
+ iniset $Q_RR_CONF_FILE xenapi xenapi_connection_password "$XENAPI_PASSWORD" |
|
| 79 | 79 |
|
| 80 | 80 |
# Under XS/XCP, the ovs agent needs to target the dom0 |
| 81 | 81 |
# integration bridge. This is enabled by using a root wrapper |
| 82 | 82 |
# that executes commands on dom0 via a XenAPI plugin. |
| 83 |
- iniset /$Q_PLUGIN_CONF_FILE AGENT root_helper "$Q_RR_DOM0_COMMAND" |
|
| 83 |
+ iniset /$Q_PLUGIN_CONF_FILE agent root_helper "$Q_RR_DOM0_COMMAND" |
|
| 84 | 84 |
|
| 85 | 85 |
# Set "physical" mapping |
| 86 |
- iniset /$Q_PLUGIN_CONF_FILE OVS bridge_mappings "physnet1:$FLAT_NETWORK_BRIDGE" |
|
| 86 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs bridge_mappings "physnet1:$FLAT_NETWORK_BRIDGE" |
|
| 87 | 87 |
|
| 88 | 88 |
# XEN_INTEGRATION_BRIDGE is the integration bridge in dom0 |
| 89 |
- iniset /$Q_PLUGIN_CONF_FILE OVS integration_bridge $XEN_INTEGRATION_BRIDGE |
|
| 89 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs integration_bridge $XEN_INTEGRATION_BRIDGE |
|
| 90 | 90 |
|
| 91 | 91 |
# Set up domU's L2 agent: |
| 92 | 92 |
|
| ... | ... |
@@ -96,25 +96,25 @@ function quantum_plugin_configure_plugin_agent() {
|
| 96 | 96 |
sudo ovs-vsctl add-port "br-$GUEST_INTERFACE_DEFAULT" $GUEST_INTERFACE_DEFAULT |
| 97 | 97 |
|
| 98 | 98 |
# Set bridge mappings to "physnet1:br-$GUEST_INTERFACE_DEFAULT" |
| 99 |
- iniset "/$Q_PLUGIN_CONF_FILE.domU" OVS bridge_mappings "physnet1:br-$GUEST_INTERFACE_DEFAULT" |
|
| 99 |
+ iniset "/$Q_PLUGIN_CONF_FILE.domU" ovs bridge_mappings "physnet1:br-$GUEST_INTERFACE_DEFAULT" |
|
| 100 | 100 |
# Set integration bridge to domU's |
| 101 |
- iniset "/$Q_PLUGIN_CONF_FILE.domU" OVS integration_bridge $OVS_BRIDGE |
|
| 101 |
+ iniset "/$Q_PLUGIN_CONF_FILE.domU" ovs integration_bridge $OVS_BRIDGE |
|
| 102 | 102 |
# Set root wrap |
| 103 |
- iniset "/$Q_PLUGIN_CONF_FILE.domU" AGENT root_helper "$Q_RR_COMMAND" |
|
| 103 |
+ iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper "$Q_RR_COMMAND" |
|
| 104 | 104 |
fi |
| 105 | 105 |
# Define extra "AGENT" configuration options when q-agt is configured by defining |
| 106 | 106 |
# defining the array ``Q_AGENT_EXTRA_AGENT_OPTS``. |
| 107 | 107 |
# For Example: ``Q_AGENT_EXTRA_AGENT_OPTS=(foo=true bar=2)`` |
| 108 | 108 |
for I in "${Q_AGENT_EXTRA_AGENT_OPTS[@]}"; do
|
| 109 | 109 |
# Replace the first '=' with ' ' for iniset syntax |
| 110 |
- iniset /$Q_PLUGIN_CONF_FILE AGENT ${I/=/ }
|
|
| 110 |
+ iniset /$Q_PLUGIN_CONF_FILE agent ${I/=/ }
|
|
| 111 | 111 |
done |
| 112 | 112 |
# Define extra "OVS" configuration options when q-agt is configured by defining |
| 113 | 113 |
# defining the array ``Q_AGENT_EXTRA_SRV_OPTS``. |
| 114 | 114 |
# For Example: ``Q_AGENT_EXTRA_SRV_OPTS=(foo=true bar=2)`` |
| 115 | 115 |
for I in "${Q_AGENT_EXTRA_SRV_OPTS[@]}"; do
|
| 116 | 116 |
# Replace the first '=' with ' ' for iniset syntax |
| 117 |
- iniset /$Q_PLUGIN_CONF_FILE OVS ${I/=/ }
|
|
| 117 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs ${I/=/ }
|
|
| 118 | 118 |
done |
| 119 | 119 |
} |
| 120 | 120 |
|
| ... | ... |
@@ -56,9 +56,9 @@ function _quantum_ovs_base_configure_debug_command() {
|
| 56 | 56 |
|
| 57 | 57 |
function _quantum_ovs_base_configure_firewall_driver() {
|
| 58 | 58 |
if [[ "$Q_USE_SECGROUP" == "True" ]]; then |
| 59 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver |
|
| 59 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver |
|
| 60 | 60 |
else |
| 61 |
- iniset /$Q_PLUGIN_CONF_FILE SECURITYGROUP firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 61 |
+ iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver quantum.agent.firewall.NoopFirewallDriver |
|
| 62 | 62 |
fi |
| 63 | 63 |
} |
| 64 | 64 |
|
| ... | ... |
@@ -27,8 +27,8 @@ function quantum_plugin_configure_common() {
|
| 27 | 27 |
function quantum_plugin_configure_service() {
|
| 28 | 28 |
PLUMGRID_NOS_IP=${PLUMGRID_NOS_IP:-localhost}
|
| 29 | 29 |
PLUMGRID_NOS_PORT=${PLUMGRID_NOS_PORT:-7766}
|
| 30 |
- iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server $PLUMGRID_NOS_IP |
|
| 31 |
- iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server_port $PLUMGRID_NOS_PORT |
|
| 30 |
+ iniset /$Q_PLUGIN_CONF_FILE plumgridnos nos_server $PLUMGRID_NOS_IP |
|
| 31 |
+ iniset /$Q_PLUGIN_CONF_FILE plumgridnos nos_server_port $PLUMGRID_NOS_PORT |
|
| 32 | 32 |
} |
| 33 | 33 |
|
| 34 | 34 |
function quantum_plugin_configure_debug_command() {
|
| ... | ... |
@@ -49,14 +49,14 @@ function quantum_plugin_configure_plugin_agent() {
|
| 49 | 49 |
if [ -n "$RYU_INTERNAL_INTERFACE" ]; then |
| 50 | 50 |
sudo ovs-vsctl --no-wait -- --may-exist add-port $OVS_BRIDGE $RYU_INTERNAL_INTERFACE |
| 51 | 51 |
fi |
| 52 |
- iniset /$Q_PLUGIN_CONF_FILE OVS integration_bridge $OVS_BRIDGE |
|
| 52 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs integration_bridge $OVS_BRIDGE |
|
| 53 | 53 |
AGENT_BINARY="$QUANTUM_DIR/quantum/plugins/ryu/agent/ryu_quantum_agent.py" |
| 54 | 54 |
|
| 55 | 55 |
_quantum_ovs_base_configure_firewall_driver |
| 56 | 56 |
} |
| 57 | 57 |
|
| 58 | 58 |
function quantum_plugin_configure_service() {
|
| 59 |
- iniset /$Q_PLUGIN_CONF_FILE OVS openflow_rest_api $RYU_API_HOST:$RYU_API_PORT |
|
| 59 |
+ iniset /$Q_PLUGIN_CONF_FILE ovs openflow_rest_api $RYU_API_HOST:$RYU_API_PORT |
|
| 60 | 60 |
|
| 61 | 61 |
_quantum_ovs_base_configure_firewall_driver |
| 62 | 62 |
} |