From 70504de1e3752ab962c578693f87b65c46ff6f2e Mon Sep 17 00:00:00 2001 From: Noam Angel Date: Tue, 17 Jan 2017 15:47:49 +0200 Subject: [PATCH] make sure OVS_PHYSICAL_BRIDGE is up before bring up vlan interface we need to make sure before we bring up vlan interface on "configure_ironic_provision_network:723" that OVS_PHYSICAL_BRIDGE is up. otherwise we can fail (RTNETLINK answers: Network is down) This issue discover on a unique configurations I run different biridges for external network (PUBLIC_BRIDGE) and internal bridge (OVS_PHYSICAL_BRIDGE) so devstack don't seem to bring up ovs bridge. Change-Id: I80f29075cff47c96ac70c13717dcf13475065f83 --- devstack/lib/ironic | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 0517252234..6f7ae7f093 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -719,6 +719,7 @@ function configure_ironic_provision_network { # othervise assign ip to br interface directly. if [[ "$IRONIC_PROVISION_PROVIDER_NETWORK_TYPE" == "vlan" ]]; then sudo ip link add link $OVS_PHYSICAL_BRIDGE name $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID type vlan id $IRONIC_PROVISION_SEGMENTATION_ID + sudo ip link set dev $OVS_PHYSICAL_BRIDGE up sudo ip link set dev $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID up sudo ip addr add dev $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID $ironic_provision_network_ip/$provision_net_prefix else