Merge "Rename q- to neutron- services"
This commit is contained in:
commit
fbd48859a9
@ -40,7 +40,8 @@ ENABLED_SERVICES+=,placement-api,placement-client
|
|||||||
# Glance
|
# Glance
|
||||||
ENABLED_SERVICES+=,g-api,g-reg
|
ENABLED_SERVICES+=,g-api,g-reg
|
||||||
# Neutron
|
# Neutron
|
||||||
ENABLED_SERVICES+=,neutron,q-agt,q-dhcp,q-l3,q-meta,q-qos,q-svc
|
ENABLED_SERVICES+=,neutron-api,neutron-agent,neutron-dhcp,neutron-l3
|
||||||
|
ENABLED_SERVICES+=,neutron-metadata-agent,neutron-qos
|
||||||
# Tempest (optional)
|
# Tempest (optional)
|
||||||
#ENABLED_SERVICES+=,tempest
|
#ENABLED_SERVICES+=,tempest
|
||||||
# Octavia
|
# Octavia
|
||||||
|
@ -326,9 +326,9 @@ function create_mgmt_network_interface {
|
|||||||
MGMT_PORT_IP=$(openstack port show -f value -c fixed_ips $MGMT_PORT_ID | awk '{FS=",| "; gsub(",",""); gsub("'\''",""); for(i = 1; i <= NF; ++i) {if ($i ~ /^ip_address/) {n=index($i, "="); if (substr($i, n+1) ~ "\\.") print substr($i, n+1)}}}')
|
MGMT_PORT_IP=$(openstack port show -f value -c fixed_ips $MGMT_PORT_ID | awk '{FS=",| "; gsub(",",""); gsub("'\''",""); for(i = 1; i <= NF; ++i) {if ($i ~ /^ip_address/) {n=index($i, "="); if (substr($i, n+1) ~ "\\.") print substr($i, n+1)}}}')
|
||||||
if function_exists octavia_create_network_interface_device ; then
|
if function_exists octavia_create_network_interface_device ; then
|
||||||
octavia_create_network_interface_device o-hm0 $MGMT_PORT_ID $MGMT_PORT_MAC
|
octavia_create_network_interface_device o-hm0 $MGMT_PORT_ID $MGMT_PORT_MAC
|
||||||
elif [[ $Q_AGENT == "openvswitch" ]]; then
|
elif [[ $NEUTRON_AGENT == "openvswitch" || $Q_AGENT == "openvswitch" ]]; then
|
||||||
sudo ovs-vsctl -- --may-exist add-port ${OVS_BRIDGE:-br-int} o-hm0 -- set Interface o-hm0 type=internal -- set Interface o-hm0 external-ids:iface-status=active -- set Interface o-hm0 external-ids:attached-mac=$MGMT_PORT_MAC -- set Interface o-hm0 external-ids:iface-id=$MGMT_PORT_ID -- set Interface o-hm0 external-ids:skip_cleanup=true
|
sudo ovs-vsctl -- --may-exist add-port ${OVS_BRIDGE:-br-int} o-hm0 -- set Interface o-hm0 type=internal -- set Interface o-hm0 external-ids:iface-status=active -- set Interface o-hm0 external-ids:attached-mac=$MGMT_PORT_MAC -- set Interface o-hm0 external-ids:iface-id=$MGMT_PORT_ID -- set Interface o-hm0 external-ids:skip_cleanup=true
|
||||||
elif [[ $Q_AGENT == "linuxbridge" ]]; then
|
elif [[ $NEUTRON_AGENT == "linuxbridge" || $Q_AGENT == "linuxbridge" ]]; then
|
||||||
if ! ip link show o-hm0 ; then
|
if ! ip link show o-hm0 ; then
|
||||||
sudo ip link add o-hm0 type veth peer name o-bhm0
|
sudo ip link add o-hm0 type veth peer name o-bhm0
|
||||||
NETID=$(openstack network show lb-mgmt-net -c id -f value)
|
NETID=$(openstack network show lb-mgmt-net -c id -f value)
|
||||||
@ -524,9 +524,9 @@ function octavia_stop {
|
|||||||
[ ! -z "$pids" ] && sudo kill $pids
|
[ ! -z "$pids" ] && sudo kill $pids
|
||||||
if function_exists octavia_delete_network_interface_device ; then
|
if function_exists octavia_delete_network_interface_device ; then
|
||||||
octavia_delete_network_interface_device o-hm0
|
octavia_delete_network_interface_device o-hm0
|
||||||
elif [[ $Q_AGENT == "openvswitch" ]]; then
|
elif [[ $NEUTRON_AGENT == "openvswitch" || $Q_AGENT == "openvswitch" ]]; then
|
||||||
: # Do nothing
|
: # Do nothing
|
||||||
elif [[ $Q_AGENT == "linuxbridge" ]]; then
|
elif [[ $NEUTRON_AGENT == "linuxbridge" || $Q_AGENT == "linuxbridge" ]]; then
|
||||||
if ip link show o-hm0 ; then
|
if ip link show o-hm0 ; then
|
||||||
sudo ip link del o-hm0
|
sudo ip link del o-hm0
|
||||||
fi
|
fi
|
||||||
@ -576,8 +576,8 @@ function add_load-balancer_roles {
|
|||||||
# check for service enabled
|
# check for service enabled
|
||||||
if is_service_enabled $OCTAVIA; then
|
if is_service_enabled $OCTAVIA; then
|
||||||
if [ $OCTAVIA_NODE == 'main' ] || [ $OCTAVIA_NODE == 'standalone' ] ; then # main-ha node stuff only
|
if [ $OCTAVIA_NODE == 'main' ] || [ $OCTAVIA_NODE == 'standalone' ] ; then # main-ha node stuff only
|
||||||
if ! is_service_enabled $Q_SVC; then
|
if ! is_service_enabled $NEUTRON_ANY; then
|
||||||
die "The neutron $Q_SVC service must be enabled to use $OCTAVIA"
|
die "The neutron-api/q-svc service must be enabled to use $OCTAVIA"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DISABLE_AMP_IMAGE_BUILD" == 'True' ]; then
|
if [ "$DISABLE_AMP_IMAGE_BUILD" == 'True' ]; then
|
||||||
|
@ -26,8 +26,8 @@ enable_service n-cpu
|
|||||||
|
|
||||||
# Neutron
|
# Neutron
|
||||||
enable_service neutron
|
enable_service neutron
|
||||||
enable_service q-agt
|
enable_service neutron-agent
|
||||||
enable_service q-qos
|
enable_service neutron-qos
|
||||||
|
|
||||||
# LBaaS V2 and Octavia
|
# LBaaS V2 and Octavia
|
||||||
enable_service octavia
|
enable_service octavia
|
||||||
@ -50,7 +50,7 @@ OCTAVIA_NODE=second
|
|||||||
# to get the connection string constructed
|
# to get the connection string constructed
|
||||||
DATABASE_TYPE=mysql
|
DATABASE_TYPE=mysql
|
||||||
|
|
||||||
Q_PLUGIN=ml2
|
NEUTRON_CORE_PLUGIN=ml2
|
||||||
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
||||||
|
|
||||||
LOGFILE=$DEST/logs/stack.sh.log
|
LOGFILE=$DEST/logs/stack.sh.log
|
||||||
@ -62,7 +62,7 @@ LOGDAYS=2
|
|||||||
HOST_IP=192.168.42.11
|
HOST_IP=192.168.42.11
|
||||||
SERVICE_HOST=192.168.42.10
|
SERVICE_HOST=192.168.42.10
|
||||||
MULTI_HOST=1
|
MULTI_HOST=1
|
||||||
Q_HOST=$SERVICE_HOST
|
NEUTRON_SERVICE_HOST=$SERVICE_HOST
|
||||||
MYSQL_HOST=$SERVICE_HOST
|
MYSQL_HOST=$SERVICE_HOST
|
||||||
RABBIT_HOST=$SERVICE_HOST
|
RABBIT_HOST=$SERVICE_HOST
|
||||||
GLANCE_HOSTPORT=$SERVICE_HOST:9292
|
GLANCE_HOSTPORT=$SERVICE_HOST:9292
|
||||||
|
@ -47,12 +47,12 @@ enable_service g-reg
|
|||||||
|
|
||||||
# Neutron
|
# Neutron
|
||||||
enable_service neutron
|
enable_service neutron
|
||||||
enable_service q-svc
|
enable_service neutron-api
|
||||||
enable_service q-agt
|
enable_service neutron-agent
|
||||||
enable_service q-dhcp
|
enable_service neutron-dhcp
|
||||||
enable_service q-l3
|
enable_service neutron-l3
|
||||||
enable_service q-meta
|
enable_service neutron-metadata-agent
|
||||||
enable_service q-qos
|
enable_service neutron-qos
|
||||||
|
|
||||||
# Octavia
|
# Octavia
|
||||||
enable_service octavia
|
enable_service octavia
|
||||||
@ -68,7 +68,7 @@ OCTAVIA_CONTROLLER_IP_PORT_LIST=192.168.0.3:5555,192.168.0.4:5555
|
|||||||
OCTAVIA_NODE=main
|
OCTAVIA_NODE=main
|
||||||
OCTAVIA_NODES=main:192.168.42.10,second:192.168.42.11
|
OCTAVIA_NODES=main:192.168.42.10,second:192.168.42.11
|
||||||
|
|
||||||
Q_PLUGIN=ml2
|
NEUTRON_CORE_PLUGIN=ml2
|
||||||
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
||||||
|
|
||||||
LOGFILE=$DEST/logs/stack.sh.log
|
LOGFILE=$DEST/logs/stack.sh.log
|
||||||
|
@ -60,12 +60,12 @@ enable_service g-reg
|
|||||||
|
|
||||||
# Neutron
|
# Neutron
|
||||||
enable_service neutron
|
enable_service neutron
|
||||||
enable_service q-svc
|
enable_service neutron-api
|
||||||
enable_service q-agt
|
enable_service neutron-agent
|
||||||
enable_service q-dhcp
|
enable_service neutron-dhcp
|
||||||
enable_service q-l3
|
enable_service neutron-l3
|
||||||
enable_service q-meta
|
enable_service neutron-metadata-agent
|
||||||
enable_service q-qos
|
enable_service neutron-qos
|
||||||
|
|
||||||
# Octavia
|
# Octavia
|
||||||
enable_service octavia
|
enable_service octavia
|
||||||
@ -77,7 +77,7 @@ enable_service o-api
|
|||||||
|
|
||||||
# enable DVR
|
# enable DVR
|
||||||
|
|
||||||
Q_PLUGIN=ml2
|
NEUTRON_CORE_PLUGIN=ml2
|
||||||
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
Q_ML2_TENANT_NETWORK_TYPE=vxlan
|
||||||
Q_DVR_MODE=dvr_snat
|
Q_DVR_MODE=dvr_snat
|
||||||
|
|
||||||
|
@ -79,8 +79,8 @@ GITDIR["python-octaviaclient"]=$DEST/python-octaviaclient
|
|||||||
NEUTRON_LBAAS_DIR=$DEST/neutron-lbaas
|
NEUTRON_LBAAS_DIR=$DEST/neutron-lbaas
|
||||||
NEUTRON_LBAAS_CONF=$NEUTRON_CONF_DIR/neutron_lbaas.conf
|
NEUTRON_LBAAS_CONF=$NEUTRON_CONF_DIR/neutron_lbaas.conf
|
||||||
OCTAVIA_SERVICE_PROVIDER=${OCTAVIA_SERVICE_PROVIDER:-"LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default"}
|
OCTAVIA_SERVICE_PROVIDER=${OCTAVIA_SERVICE_PROVIDER:-"LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default"}
|
||||||
Q_SVC=${Q_SVC:-"q-svc"}
|
NEUTRON_ANY=${NEUTRON_ANY:-"q-svc neutron-api"}
|
||||||
LBAAS_V2=${LBAAS_V2:-"q-lbaasv2"}
|
LBAAS_V2=${LBAAS_V2:-"neutron-lbaasv2"}
|
||||||
|
|
||||||
# HA-deployment related settings
|
# HA-deployment related settings
|
||||||
OCTAVIA_USE_PREGENERATED_SSH_KEY=${OCTAVIA_USE_PREGENERATED_SSH_KEY:-"False"}
|
OCTAVIA_USE_PREGENERATED_SSH_KEY=${OCTAVIA_USE_PREGENERATED_SSH_KEY:-"False"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user