Comment 2 for bug 1747721

Revision history for this message
Sean Feole (sfeole) wrote :

Ran into this today as well:

looks like api changes broke this.
https://git.openstack.org/cgit/openstack-dev/grenade/commit/?id=fce6befbb50fdc774f16fa963dd51e2bb8eedd63

For now the following workaround that I'm using is:

$ openstack server list
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+
| 0e4853f1-3af9-4351-ad75-b096b5bd3e53 | xenial-uefi-182922-1 | ACTIVE | private=172.16.0.9 | xenial-uefi | m1.small |
| c1229557-b7ee-4131-bb84-754319c5d88a | xenial-uefi-182922-2 | ACTIVE | private=172.16.0.8 | xenial-uefi | m1.small |
+--------------------------------------+----------------------+--------+----------------------------------+-------------+----------+

$neutron port-list -F id -F fixed_ips

neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+-------------------------------------------------------------------------------------+
| id | fixed_ips |
+--------------------------------------+-------------------------------------------------------------------------------------+
| 0e7a7afe-5f1d-436e-a4c8-8dfdcd3c68c1 | {"subnet_id": "e1aa7691-149c-4dcd-b504-248b02f28b2a", "ip_address": "172.16.0.9"} |
| 3bea6557-5e0a-4b1a-86a4-65ba53fc52af | {"subnet_id": "fe6ae8d3-8a6d-4755-b304-b32d6875d04b", "ip_address": "10.245.172.7"} |
| 630f258f-4dfc-45ad-b05c-a5c062ad1f6e | {"subnet_id": "e1aa7691-149c-4dcd-b504-248b02f28b2a", "ip_address": "172.16.0.2"} |
| 8a54b735-5c27-460f-a84c-8e8edf77b2bb | {"subnet_id": "e1aa7691-149c-4dcd-b504-248b02f28b2a", "ip_address": "172.16.0.8"} |
| c9a1892f-f97b-44b9-a626-59a7b176848e | {"subnet_id": "fe6ae8d3-8a6d-4755-b304-b32d6875d04b", "ip_address": "10.245.172.4"} |
| cb3e76ce-f5ea-4ebf-956f-0d3f63ee1fe0 | {"subnet_id": "fe6ae8d3-8a6d-4755-b304-b32d6875d04b", "ip_address": "10.245.172.3"} |
| d8c5ccdf-b540-4649-8c51-ed84a4f25999 | {"subnet_id": "e1aa7691-149c-4dcd-b504-248b02f28b2a", "ip_address": "172.16.0.1"} |
| fe0af27c-5d86-481c-9aed-b9753a8d6a2d | {"subnet_id": "e1aa7691-149c-4dcd-b504-248b02f28b2a", "ip_address": "172.16.0.7"} |
+--------------------------------------+-------------------------------------------------------------------------------------+

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-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