Merge "Adds network check in upgrade phase in devstack"

This commit is contained in:
Jenkins 2017-02-10 16:33:18 +00:00 committed by Gerrit Code Review
commit cdd7f5ae6a
2 changed files with 15 additions and 2 deletions

View File

@ -33,6 +33,11 @@ set -o xtrace
function early_create {
# We need these steps only in case of flat-network
if [[ -n "${IRONIC_PROVISION_NETWORK_NAME}" ]]; then
return
fi
# Ironic needs to have network access to the instance during deployment
# from the control plane (ironic-conductor). This 'early_create' function
# creates a new network with a unique CIDR, adds a route to this network
@ -98,6 +103,11 @@ function verify_noapi {
}
function destroy {
# We need these steps only in case of flat-network
if [[ -n "${IRONIC_PROVISION_NETWORK_NAME}" ]]; then
return
fi
# NOTE(vsaienko) move ironic VMs back to private network.
local net_id
net_id=$(openstack network show private -f value -c id)

View File

@ -86,11 +86,14 @@ start_nova_compute
ensure_services_started ironic-api ironic-conductor
ensure_logs_exist ir-cond ir-api
# We need these steps only in case of flat-network
# NOTE(vsaienko) starting from Ocata when Neutron is restarted there is no guarantee that
# internal tag, that was assigned to network will be the same. As result we need to update
# tag on link between br-int and brbm to new value after restart.
net_id=$(openstack network show ironic_grenade -f value -c id)
create_ovs_taps $net_id
if [[ -z "${IRONIC_PROVISION_NETWORK_NAME}" ]]; then
net_id=$(openstack network show ironic_grenade -f value -c id)
create_ovs_taps $net_id
fi
set +o xtrace
echo "*********************************************************************"