You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A VM can have multiple interfaces, each interface can have its own set of FIPs to be assigned to avoid an error above.
Elektra should check available "port-FIP'-pairs in advance before putting them into the "Attach FIP" dropdown to avoid such messages.
Here is a script, which can list valid FIPs per each server's interface:
#!/bin/bash
os=openstack
server_id=$1forportin`$os port list --device-id $server_id -f value -c id`;doforsubnet_idin`$os port show $port -f json -c fixed_ips | jq -r '.fixed_ips[]|.subnet_id'`;doforrouter_portin`$os port list --fixed-ip subnet=$subnet_id --device-owner network:router_interface -f value -c id`;do
router_id=$($os port show $router_port -f value -c device_id)forrouter_fip_subnetin`$os router show $router_id -f json -c external_gateway_info | jq -r '.external_gateway_info.external_fixed_ips[]|.subnet_id'`;do
router_fip_network=$($os subnet show $router_fip_subnet -f value -c network_id)echo"The $server_id server's $port port can have the following FIPs:"$os floating ip list --network $router_fip_network -f json | jq -r '.[]|select(."Fixed IP Address"==null)|."Floating IP Address"'donedonedonedone
The text was updated successfully, but these errors were encountered:
kayrus
changed the title
Attach floating IP to a VM in Elektra should filter out all all clearly wrong FIPs
Attach floating IP to a VM in Elektra should filter out all clearly wrong FIPs
Jan 5, 2024
A VM can have multiple interfaces, each interface can have its own set of FIPs to be assigned to avoid an error above.
Elektra should check available "port-FIP'-pairs in advance before putting them into the "Attach FIP" dropdown to avoid such messages.
Here is a script, which can list valid FIPs per each server's interface:
The text was updated successfully, but these errors were encountered: