Find the neutron port id that corresponds to your private/fixedip.
$openstack floating ip set --port 0e7a7afe-5f1d-436e-a4c8-8dfdcd3c68c1 10.245.172.4
$openstack floating ip set --port 8a54b735-5c27-460f-a84c-8e8edf77b2bb 10.245.172.3
⟫ openstack server list
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+
| 0e4853f1-3af9-4351-ad75-b096b5bd3e53 | xenial-uefi-182922-1 | ACTIVE | private=172.16.0.9, 10.245.172.4 | xenial-uefi | m1.small |
| c1229557-b7ee-4131-bb84-754319c5d88a | xenial-uefi-182922-2 | ACTIVE | private=172.16.0.8, 10.245.172.3 | xenial-uefi | m1.small |
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+
$ ping 10.245.172.4
PING 10.245.172.4 (10.245.172.4) 56(84) bytes of data.
64 bytes from 10.245.172.4: icmp_seq=1 ttl=61 time=3.53 ms
64 bytes from 10.245.172.4: icmp_seq=2 ttl=61 time=4.60 ms
64 bytes from 10.245.172.4: icmp_seq=3 ttl=61 time=1.27 ms
Ran into this today as well:
looks like api changes broke this. /git.openstack. org/cgit/ openstack- dev/grenade/ commit/ ?id=fce6befbb50 fdc774f16fa963d d51e2bb8eedd63
https:/
For now the following workaround that I'm using is:
$ openstack server list ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+ ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+ 3af9-4351- ad75-b096b5bd3e 53 | xenial- uefi-182922- 1 | ACTIVE | private=172.16.0.9 | xenial-uefi | m1.small | b7ee-4131- bb84-754319c5d8 8a | xenial- uefi-182922- 2 | ACTIVE | private=172.16.0.8 | xenial-uefi | m1.small | ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| 0e4853f1-
| c1229557-
+------
$neutron port-list -F id -F fixed_ips
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------+ 5f1d-436e- a4c8-8dfdcd3c68 c1 | {"subnet_id": "e1aa7691- 149c-4dcd- b504-248b02f28b 2a", "ip_address": "172.16.0.9"} | 5e0a-4b1a- 86a4-65ba53fc52 af | {"subnet_id": "fe6ae8d3- 8a6d-4755- b304-b32d6875d0 4b", "ip_address": "10.245.172.7"} | 4dfc-45ad- b05c-a5c062ad1f 6e | {"subnet_id": "e1aa7691- 149c-4dcd- b504-248b02f28b 2a", "ip_address": "172.16.0.2"} | 5c27-460f- a84c-8e8edf77b2 bb | {"subnet_id": "e1aa7691- 149c-4dcd- b504-248b02f28b 2a", "ip_address": "172.16.0.8"} | f97b-44b9- a626-59a7b17684 8e | {"subnet_id": "fe6ae8d3- 8a6d-4755- b304-b32d6875d0 4b", "ip_address": "10.245.172.4"} | f5ea-4ebf- 956f-0d3f63ee1f e0 | {"subnet_id": "fe6ae8d3- 8a6d-4755- b304-b32d6875d0 4b", "ip_address": "10.245.172.3"} | b540-4649- 8c51-ed84a4f259 99 | {"subnet_id": "e1aa7691- 149c-4dcd- b504-248b02f28b 2a", "ip_address": "172.16.0.1"} | 5d86-481c- 9aed-b9753a8d6a 2d | {"subnet_id": "e1aa7691- 149c-4dcd- b504-248b02f28b 2a", "ip_address": "172.16.0.7"} | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------+
+------
| id | fixed_ips |
+------
| 0e7a7afe-
| 3bea6557-
| 630f258f-
| 8a54b735-
| c9a1892f-
| cb3e76ce-
| d8c5ccdf-
| fe0af27c-
+------
Take note of the private ip address.
Find the neutron port id that corresponds to your private/fixedip.
$openstack floating ip set --port 0e7a7afe- 5f1d-436e- a4c8-8dfdcd3c68 c1 10.245.172.4 5c27-460f- a84c-8e8edf77b2 bb 10.245.172.3
$openstack floating ip set --port 8a54b735-
⟫ openstack server list ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+ ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+ 3af9-4351- ad75-b096b5bd3e 53 | xenial- uefi-182922- 1 | ACTIVE | private=172.16.0.9, 10.245.172.4 | xenial-uefi | m1.small | b7ee-4131- bb84-754319c5d8 8a | xenial- uefi-182922- 2 | ACTIVE | private=172.16.0.8, 10.245.172.3 | xenial-uefi | m1.small | ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- -+----- ------- ------- ------- ------- -+----- ------- -+----- -----+
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| 0e4853f1-
| c1229557-
+------
$ ping 10.245.172.4
PING 10.245.172.4 (10.245.172.4) 56(84) bytes of data.
64 bytes from 10.245.172.4: icmp_seq=1 ttl=61 time=3.53 ms
64 bytes from 10.245.172.4: icmp_seq=2 ttl=61 time=4.60 ms
64 bytes from 10.245.172.4: icmp_seq=3 ttl=61 time=1.27 ms