Add devstack plugin to enable ovs metadata_path
Partially-Implements: blueprint distributed-metadata-datapath Change-Id: Ic34981480dd1796c2e11a9e62fbaece97ef827c1
This commit is contained in:
parent
907a2f6317
commit
9f1fc50de2
7
devstack/lib/metadata_path
Normal file
7
devstack/lib/metadata_path
Normal file
@ -0,0 +1,7 @@
|
||||
function configure_ovs_metadata_path {
|
||||
sudo ovs-vsctl -- --may-exist add-br br-meta
|
||||
plugin_agent_add_l2_agent_extension "metadata_path"
|
||||
iniset /$NEUTRON_CORE_PLUGIN_CONF metadata metadata_proxy_shared_secret $SERVICE_PASSWORD
|
||||
iniset /$NEUTRON_CORE_PLUGIN_CONF metadata nova_metadata_host $SERVICE_HOST
|
||||
iniset /$NEUTRON_CORE_PLUGIN_CONF metadata nova_metadata_port $METADATA_SERVICE_PORT
|
||||
}
|
@ -54,6 +54,8 @@ tunnel_types=vxlan,gre
|
||||
# Uncomment the following to enable distributed DHCP for openvswitch agent
|
||||
# for your compute node.
|
||||
#extensions = dhcp
|
||||
# Enable Neutron Openvswitch Agent metadata path extenison.
|
||||
#extensions = dhcp,metadata_path
|
||||
|
||||
[[post-config|$Q_L3_CONF_FILE]]
|
||||
[DEFAULT]
|
||||
|
@ -8,6 +8,7 @@ source $LIBDIR/l2_agent_sriovnicswitch
|
||||
source $LIBDIR/l3_agent
|
||||
source $LIBDIR/l3_conntrack_helper
|
||||
source $LIBDIR/l3_ndp_proxy
|
||||
source $LIBDIR/metadata_path
|
||||
source $LIBDIR/ml2
|
||||
source $LIBDIR/network_segment_range
|
||||
source $LIBDIR/segments
|
||||
@ -69,6 +70,11 @@ if [[ "$1" == "stack" ]]; then
|
||||
configure_ovs_distributed_dhcp
|
||||
fi
|
||||
fi
|
||||
if is_service_enabled q-metadata-path neutron-metadata-path; then
|
||||
if [ $Q_AGENT = openvswitch ]; then
|
||||
configure_ovs_metadata_path
|
||||
fi
|
||||
fi
|
||||
if is_service_enabled neutron-local-ip; then
|
||||
configure_local_ip
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user