Merge "[devstack] Do not die if neutron is disabled"
This commit is contained in:
commit
65bd52dee7
@ -476,11 +476,13 @@ function create_ironic_accounts {
|
||||
|
||||
# init_ironic() - Initialize databases, etc.
|
||||
function init_ironic {
|
||||
# Save private network as cleaning network
|
||||
local cleaning_network_uuid
|
||||
cleaning_network_uuid=$(neutron net-list | grep private | get_field 1)
|
||||
die_if_not_set $LINENO cleaning_network_uuid "Failed to get ironic cleaning network id"
|
||||
iniset $IRONIC_CONF_FILE neutron cleaning_network_uuid ${cleaning_network_uuid}
|
||||
if is_service_enabled neutron; then
|
||||
# Save private network as cleaning network
|
||||
local cleaning_network_uuid
|
||||
cleaning_network_uuid=$(neutron net-list | grep private | get_field 1)
|
||||
die_if_not_set $LINENO cleaning_network_uuid "Failed to get ironic cleaning network id"
|
||||
iniset $IRONIC_CONF_FILE neutron cleaning_network_uuid ${cleaning_network_uuid}
|
||||
fi
|
||||
|
||||
# (Re)create ironic database
|
||||
recreate_database ironic
|
||||
|
Loading…
x
Reference in New Issue
Block a user