Skip to content

Commit

Permalink
remove clean all unused floating ips
Browse files Browse the repository at this point in the history
Signed-off-by: Kobi Hakimi <khakimi@redhat.com>
  • Loading branch information
kobihk committed Mar 28, 2024
1 parent ffd1dbc commit 655ac3b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ods_ci/tasks/Resources/Provisioning/Hive/OSP/create_fips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ osp_dashboard="$(openstack catalog show keystone -c endpoints -c name -c type \

echo "Connected to Openstack: ${osp_dashboard}"

echo "Cleaning unused Floating IPs in Openstack Cloud '$OSP_CLOUD' (before creating new IPs in Network '$OSP_NETWORK')"
openstack floating ip list --status DOWN -c 'Floating IP Address' -f value | xargs -n1 -r --verbose openstack floating ip delete || rc=$?
if [[ -n "$rc" ]] ; then
echo -e "Failure [$rc] cleaning unused floating IPs"
exit ${rc:+$rc}
fi

echo "Allocating a floating IP for cluster's API"
cmd=(openstack floating ip create --description "$CLUSTER_NAME API" -f value -c floating_ip_address "$OSP_NETWORK")
echo "${cmd[@]}"
Expand Down

0 comments on commit 655ac3b

Please sign in to comment.