From 4cb638f65e03580b7aa84ff4f16c7cf5529cc390 Mon Sep 17 00:00:00 2001 From: Harald Jensas Date: Wed, 20 Dec 2017 14:17:19 +0100 Subject: [PATCH] Use openstack port create instead of neutron port-create Change-Id: Icbb95fd00bfaac69f3fe8ff3b93118b2095608ff --- devstack/lib/ironic | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 1feff57508..5f59735cd3 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -1378,11 +1378,7 @@ function create_ovs_taps { # need to create one in Neutron to know what netns to tap into prior to the # first node booting. local port_id - port_id=$(neutron port-create ${ironic_net_id} | grep " id " | get_field 2) - # NOTE(vsaienko) openstack port create was introduced in Newton. - # Since the function is used during upgrade, it should be backward compatible with Mitaka. - # Switch to openstack port create in Ocata release. - #port_id=$(openstack port create --network ${ironic_net_id} temp_port -c id -f value) + port_id=$(openstack port create --network ${ironic_net_id} temp_port -c id -f value) die_if_not_set $LINENO port_id "Failed to create neutron port" # intentional sleep to make sure the tag has been set to port