OpenStack Neutron Init and Start
作者:
mqddb | 来源:发表于
2017-12-14 16:04 被阅读0次init_neutron
init_mutnauq
recreate_database neutron
/usr/local/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
# start neutron-api
start_neutron_api
local opts=""
opts+=" --config-file $NEUTRON_CONF"
opts+=" --config-file $NEUTRON_CORE_PLUGIN_CONF"
local cfg_file
for cfg_file in ${_NEUTRON_SERVER_EXTRA_CONF_FILES_ABS[@]}; do
opts+=" --config-file $cfg_file"
done
run_process neutron-api "$NEUTRON_BIN_DIR/neutron-server $opts"
if ! wait_for_service $SERVICE_TIMEOUT $service_protocol://$NEUTRON_SERVICE_HOST:$service_port; then
die $LINENO "neutron-api did not start"
fi
# start q-svc
configure_neutron_after_post_config
iniset /etc/neutron/neutron.conf DEFAULT service_plugins neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
start_neutron_service_and_check
local service_port=9696
local service_protocol=http
local cfg_file_options
determine_config_files neutron-server
_determine_config_server
run_process q-svc '/usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'
test_with_retry 'wget --no-proxy -q -O- http://192.168.2.96:9696' 'Neutron did not start' 60
# start neutron
start_neutron
start_mutnauq_l2_agent
run_process q-agt '/usr/local/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'
start_mutnauq_other_agents
run_process q-dhcp '/usr/local/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini'
run_process q-l3 '/usr/local/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent.ini'
run_process q-meta '/usr/local/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini'
run_process q-metering '/usr/local/bin/neutron-metering-agent --config-file /etc/neutron/neutron.conf --config-file '
# Creating initial neutron network elements
create_neutron_initial_network
本文标题:OpenStack Neutron Init and Start
本文链接:https://www.haomeiwen.com/subject/xbmkwxtx.html
网友评论