Rehome functions to enable Neutron's placement integration
Those functions were part of the neutron devstack plugin but we discussed it during last PTG [1] and decided to move to the Devstack repo as plugins which are used by e.g. CI jobs which are defined outside of the neutron repository. Placement integration is used e.g. in the tempest-slow job which is defined in tempest and used by many different OpenStack projects. [1] https://etherpad.opendev.org/p/neutron-yoga-ptg#L142 Change-Id: Ib86071881f16de1b69c0f9b1b19b6df8b7e66a07
This commit is contained in:
parent
c8134987c9
commit
7f6d9283b8
@ -277,6 +277,7 @@ source $TOP_DIR/lib/neutron_plugins/services/metering
|
|||||||
source $TOP_DIR/lib/neutron_plugins/services/l3
|
source $TOP_DIR/lib/neutron_plugins/services/l3
|
||||||
|
|
||||||
# Additional Neutron service plugins
|
# Additional Neutron service plugins
|
||||||
|
source $TOP_DIR/lib/neutron_plugins/services/placement
|
||||||
source $TOP_DIR/lib/neutron_plugins/services/trunk
|
source $TOP_DIR/lib/neutron_plugins/services/trunk
|
||||||
|
|
||||||
# Use security group or not
|
# Use security group or not
|
||||||
@ -374,6 +375,9 @@ function configure_mutnauq {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure Neutron's advanced services
|
# Configure Neutron's advanced services
|
||||||
|
if is_service_enabled q-placement neutron-placement; then
|
||||||
|
configure_placement_extension
|
||||||
|
fi
|
||||||
if is_service_enabled q-trunk neutron-trunk; then
|
if is_service_enabled q-trunk neutron-trunk; then
|
||||||
configure_trunk_extension
|
configure_trunk_extension
|
||||||
fi
|
fi
|
||||||
|
21
lib/neutron_plugins/services/placement
Normal file
21
lib/neutron_plugins/services/placement
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function configure_placement_service_plugin {
|
||||||
|
neutron_service_plugin_class_add "placement"
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure_placement_neutron {
|
||||||
|
iniset $NEUTRON_CONF placement auth_type "$NEUTRON_PLACEMENT_AUTH_TYPE"
|
||||||
|
iniset $NEUTRON_CONF placement auth_url "$KEYSTONE_SERVICE_URI"
|
||||||
|
iniset $NEUTRON_CONF placement username "$NEUTRON_PLACEMENT_USERNAME"
|
||||||
|
iniset $NEUTRON_CONF placement password "$SERVICE_PASSWORD"
|
||||||
|
iniset $NEUTRON_CONF placement user_domain_name "$SERVICE_DOMAIN_NAME"
|
||||||
|
iniset $NEUTRON_CONF placement project_name "$SERVICE_TENANT_NAME"
|
||||||
|
iniset $NEUTRON_CONF placement project_domain_name "$SERVICE_DOMAIN_NAME"
|
||||||
|
iniset $NEUTRON_CONF placement region_name "$REGION_NAME"
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure_placement_extension {
|
||||||
|
configure_placement_service_plugin
|
||||||
|
configure_placement_neutron
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user