ceilometer.nova_client.Client.floating_ip_get_all does not return all floating ips

Bug #1346429 reported by WK Sze
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
Unassigned

Bug Description

ceilometer.nova_client.Client.floating_ip_get_all expects to get all floating ips for all tenant. However, self.nova_client.floating_ips.list() only returns the floating ips of the current tenant. It basically returns only the floating ips assigned to the tenant which ceilometer user is in, which is typically the service tenant.

--- a/ceilometer/nova_client.py
+++ b/ceilometer/nova_client.py
@@ -134,4 +134,4 @@ class Client(object):
     @logged
     def floating_ip_get_all(self):
         """Returns all floating ips."""
- return self.nova_client.floating_ips.list()
+ return self.nova_client.floating_ips_bulk.list()

gordon chung (chungg)
Changed in ceilometer:
status: New → Triaged
Revision history for this message
Liusheng (liusheng) wrote :
Revision history for this message
gordon chung (chungg) wrote :

liusheng, you're right. i remember now. has it been fixed/patched in Nova and can we reapply your patch?

Revision history for this message
WK Sze (swk-private+launchpad) wrote :

Sorry that I failed to spot the existing report.

I am wondering if a similar bug for _with_image has been reported. _with_image calls nova_client.images.get, but the result is filtered by the context project id.

Revision history for this message
Liusheng (liusheng) wrote :

gordon chung, the main part of the fixes of the bug(Nova side) has been merged, but it has a mistake for nova-network scenario that lead to bug#1328694.
I posted a patch to fix the bug https://review.openstack.org/#/c/99251/, but Nova cores opposed to use *polling* way to meter floatingip, a thread has been posted in ML about this: http://lists.openstack.org/pipermail/openstack-dev/2014-June/037304.html, Finally, the patches are decided to revert and suggest to use other ways (like notification) to meter floatingip. the reverting changes:https://review.openstack.org/#/c/99938/ https://review.openstack.org/99212

Revision history for this message
gordon chung (chungg) wrote :

we stop using nova for floating_ips

https://review.openstack.org/#/c/269369/

Changed in ceilometer:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.