Merge "Allow to install tacker only env"
This commit is contained in:
commit
9ce2ad8e2a
@ -189,10 +189,6 @@ function _create_tacker_conf_dir {
|
||||
# configure_tacker()
|
||||
# Set common config for all tacker server and agents.
|
||||
function configure_tacker {
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ml2 extension_drivers port_security
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ml2_type_flat flat_networks $PUBLIC_PHYSICAL_NETWORK,$MGMT_PHYS_NET
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ovs bridge_mappings $PUBLIC_PHYSICAL_NETWORK:$PUBLIC_BRIDGE,$MGMT_PHYS_NET:$BR_MGMT
|
||||
|
||||
_create_tacker_conf_dir
|
||||
|
||||
cd $TACKER_DIR
|
||||
@ -244,6 +240,11 @@ function configure_tacker {
|
||||
iniset $TACKER_CONF DEFAULT auth_strategy $TACKER_AUTH_STRATEGY
|
||||
_tacker_setup_keystone $TACKER_CONF keystone_authtoken
|
||||
|
||||
if [[ "${TACKER_MODE}" == "all" ]]; then
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ml2 extension_drivers port_security
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ml2_type_flat flat_networks $PUBLIC_PHYSICAL_NETWORK,$MGMT_PHYS_NET
|
||||
iniset "/$Q_PLUGIN_CONF_FILE" ovs bridge_mappings $PUBLIC_PHYSICAL_NETWORK:$PUBLIC_BRIDGE,$MGMT_PHYS_NET:$BR_MGMT
|
||||
|
||||
# Experimental settings for monitor alarm auth settings,
|
||||
# Will be changed according to new implementation.
|
||||
iniset $TACKER_CONF alarm_auth uername tacker
|
||||
@ -255,9 +256,10 @@ function configure_tacker {
|
||||
iniset $TACKER_CONF tacker_heat stack_retries 60
|
||||
iniset $TACKER_CONF tacker_heat stack_retry_wait 5
|
||||
|
||||
_tacker_setup_rootwrap
|
||||
echo "Creating bridge"
|
||||
sudo ovs-vsctl --may-exist add-br ${BR_MGMT}
|
||||
fi
|
||||
_tacker_setup_rootwrap
|
||||
}
|
||||
|
||||
# Utility Functions
|
||||
|
23
devstack/local.conf.standalone
Normal file
23
devstack/local.conf.standalone
Normal file
@ -0,0 +1,23 @@
|
||||
[[local|localrc]]
|
||||
############################################################
|
||||
# Customize the following HOST_IP based on your installation
|
||||
############################################################
|
||||
HOST_IP=127.0.0.1
|
||||
SERVICE_HOST=127.0.0.1
|
||||
SERVICE_PASSWORD=devstack
|
||||
ADMIN_PASSWORD=devstack
|
||||
SERVICE_TOKEN=devstack
|
||||
DATABASE_PASSWORD=root
|
||||
RABBIT_PASSWORD=password
|
||||
ENABLE_HTTPD_MOD_WSGI_SERVICES=True
|
||||
KEYSTONE_USE_MOD_WSGI=True
|
||||
|
||||
# Logging
|
||||
LOGFILE=$DEST/logs/stack.sh.log
|
||||
SCREEN_LOGDIR=$DEST/logs/screen
|
||||
VERBOSE=True
|
||||
ENABLE_DEBUG_LOG_LEVEL=True
|
||||
ENABLE_VERBOSE_LOG_LEVEL=True
|
||||
|
||||
TACKER_MODE=standalone
|
||||
enable_plugin tacker https://github.com/openstack/tacker master
|
@ -29,6 +29,7 @@ if is_service_enabled tacker; then
|
||||
start_tacker_api
|
||||
echo_summary "Installing tacker horizon"
|
||||
tacker_horizon_install
|
||||
if [[ "${TACKER_MODE}" == "all" ]]; then
|
||||
echo_summary "Modifying Heat policy.json file"
|
||||
modify_heat_flavor_policy_rule
|
||||
echo_summary "Setup initial tacker network"
|
||||
@ -38,6 +39,7 @@ if is_service_enabled tacker; then
|
||||
echo_summary "Registering default VIM"
|
||||
tacker_register_default_vim
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$1" == "unstack" ]]; then
|
||||
# Shut down tacker services
|
||||
|
@ -1,3 +1,5 @@
|
||||
TACKER_MODE=${TACKER_MODE:-all}
|
||||
if [ "${TACKER_MODE}" == "all" ]; then
|
||||
# Nova
|
||||
disable_service n-net
|
||||
VIRT_DRIVER=libvirt
|
||||
@ -45,3 +47,8 @@ NET1=${NET1:-net1}
|
||||
SUBNET1=${SUBNET1:-subnet1}
|
||||
FIXED_RANGE1=${FIXED_RANGE1:-10.10.1.0/24}
|
||||
NETWORK_GATEWAY1=${NETWORK_GATEWAY1:-10.10.1.1}
|
||||
elif [ "${TACKER_MODE}" == "standalone" ]; then
|
||||
ENABLED_SERVICES=key,horizon,tacker,mysql,dstat
|
||||
else
|
||||
die $LINENO "invalid value: $TACKER_MODE for TACKER_MODE"
|
||||
fi
|
||||
|
@ -60,14 +60,10 @@ place of branch-name as given below:
|
||||
|
||||
$ ./stack.sh
|
||||
|
||||
Multi Node Environment
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
In a multi-node devstack environment where controller, network and compute
|
||||
nodes are separate, some neutron agents should not be installed in the
|
||||
controller node. In such cases, use the following local.conf setting to disable
|
||||
neutron agents in the controller node::
|
||||
|
||||
[[local|localrc]]
|
||||
TACKER_NEUTRON_AGENTS=''
|
||||
Standalone mode installation
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default, the tacker devstack plugin will install the tacker and other OpenStack
|
||||
services together. By setting TACKER_MODE=standalone in local.conf, we will install
|
||||
a standalone tacker environment with some mandatory OpenStack services, such as
|
||||
KeyStone. After this installation, a default VIM must be registered manually.
|
||||
|
Loading…
x
Reference in New Issue
Block a user