From 72df3cd79a78de55f9bcb3723873b0b25a31b39d Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 26 Mar 2018 11:45:16 +0530 Subject: [PATCH] Circumvent bug #1747721 to prevent CI failures Change-Id: I0fb057657fdf568b591bc6a43cfd6eb355010523 Related-Bug: #1747721 Signed-off-by: Rishabh Dave --- devstack/plugin.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index a3e89cd1dd..27ea3d286d 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -332,7 +332,13 @@ function create_service_share_servers { fi floating_ip=$(openstack floating ip create $PUBLIC_NETWORK_NAME --subnet $PUBLIC_SUBNET_NAME | grep 'floating_ip_address' | get_field 2) - openstack server add floating ip $vm_id $floating_ip + # TODO(rishabh-d-dave): For time being circumvent the bug - + # https://bugs.launchpad.net/python-openstackclient/+bug/1747721 + # Once fixed, replace the following 3 lines by - + # openstack server add floating ip $vm_id $floating_ip + vm_port_id=$(openstack port list --server $vm_id -c ID -f \ + value) + openstack floating ip set --port $vm_port_id $floating_ip iniset $MANILA_CONF $BE service_instance_name_or_id $vm_id iniset $MANILA_CONF $BE service_net_name_or_ip $floating_ip