nicira@Ubuntu1404Server:~/devstack$ nova list --all-tenants
+--------------------------------------+------+--------+------------+-------------+-------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+-------------------------------+
| c3849872-4f6b-42f3-855f-7d6a64ea09b3 | vm1 | ACTIVE | - | Running | private=10.0.0.2, 172.24.4.75 |
+--------------------------------------+------+--------+------------+-------------+-------------------------------+
nicira@Ubuntu1404Server:~/devstack$ openstack congress datasource row list nova floating_IPs
nicira@Ubuntu1404Server:~/devstack$ openstack congress datasource row list nova servers
+--------------------------------------+------+----------------------------------------------------------+--------+----------------------------------+----------------------------------+--------------------------------------+------+
| Col0 | Col1 | Col2 | Col3 | Col4 | Col5 | Col6 | Col7 |
+--------------------------------------+------+----------------------------------------------------------+--------+----------------------------------+----------------------------------+--------------------------------------+------+
| c3849872-4f6b-42f3-855f-7d6a64ea09b3 | vm1 | 935cd96d4d2b696667abea50992d3dadd6684ee3d54506f3a1973b1a | ACTIVE | 67e985672c10492cb6970b895bf8753a | 344a3b4a80024784912f10f6bb4b14f9 | 3d5664db-2846-4e2c-bb5b-30fbb5333343 | 1 |
+--------------------------------------+------+----------------------------------------------------------+--------+----------------------------------+----------------------------------+--------------------------------------+------+
Current nova_driver uses Nova API '/v2/<id> //os-floating- ips' without enabling all_tenants. And this API seems to not populate floating ips which are already attached to instances. E.g.
stack@stack- cnt11:~ /workspace/ python- congressclient$ nova floating-ip-list ------- ---+--- ------- +------ + ------- ---+--- ------- +------ + ------- ---+--- ------- +------ + cnt11:~ /workspace/ python- congressclient$ nova floating-ip-list --all-tenants ------- ---+--- ------- +------ + ------- ---+--- ------- +------ + ------- ---+--- ------- +------ + cnt11:~ /workspace/ python- congressclient$ neutron floatingip-list ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- + 3b8a-40e8- af80-ec08037742 bc | 172.16.0.6 | 192.0.2.46 | dc3f3c75- c741-43cb- 9dfa-1859c61b10 ab | ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- ---+--- ------- ------- ------- ------- ------- + cnt11:~ /workspace/ python- congressclient$ nova floating-ip-create ------+ ------- ----+-- ------- -+----- ----+ ------+ ------- ----+-- ------- -+----- ----+ ------+ ------- ----+-- ------- -+----- ----+ cnt11:~ /workspace/ python- congressclient$ nova floating-ip-list ------+ ------- ----+-- ------- -+----- ----+ ------+ ------- ----+-- ------- -+----- ----+ ------+ ------- ----+-- ------- -+----- ----+ cnt11:~ /workspace/ python- congressclient$ nova floating-ip-list --all-tenants ------+ ------- ----+-- ------- -+----- ----+ ------+ ------- ----+-- ------- -+----- ----+
+----+-
| Ip | Server Id | Fixed Ip | Pool |
+----+-
+----+-
stack@stack-
+----+-
| Ip | Server Id | Fixed Ip | Pool |
+----+-
+----+-
stack@stack-
+------
| id | fixed_ip_address | floating_ip_address | port_id |
+------
| 7a0d6c41-
+------
stack@stack-
+------
| Ip | Server Id | Fixed Ip | Pool |
+------
| 192.0.2.48 | - | - | ext-net |
+------
stack@stack-
+------
| Ip | Server Id | Fixed Ip | Pool |
+------
| 192.0.2.48 | - | - | ext-net |
+------
stack@stack-
+------
| Ip | Server Id | Fixed Ip | Pool |
+------
| 192.0.2.48 | - | - | ext-net |
After I created a new floating ip, I can see it's populated:
stack@stack- cnt11:~ /workspace/ python- congressclient$ openstack congress datasource row list nova floating_IPs ----+-- ------- ------- ------- ------- ------- -+----- ------- +------ ---+--- ------+ ----+-- ------- ------- ------- ------- ------- -+----- ------- +------ ---+--- ------+ f684-4a1d- be0b-d36cdc1048 8f | 192.0.2.48 | None | ext-net | ----+-- ------- ------- ------- ------- ------- -+----- ------- +------ ---+--- ------+
+------
| fixed_ip | id | ip | host_id | pool |
+------
| None | 2a694a76-
+------