When getting floatingips by Nova API, the results will be filtered
with the 'tenant_id'.
So, we can only get the floatingips belonging the tenant of current
context.
When ceilometer invokes novaclient to list floatingips, it will get an
empty list because the tenant is 'service'.
we should allow an admin user to index all tenants's floatingip by adding a
parameter 'all_tenants'.
Part1:
part1 try to implement this and part2 will remove the unused codes.
Reviewed: https:/ /review. openstack. org/81429 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6478554f531 f6ee2fa86226fbc 79dd31e556bc06
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6478554f531f6ee 2fa86226fbc79dd 31e556bc06
Author: liu-sheng <email address hidden>
Date: Wed Mar 19 11:44:22 2014 +0800
Allow admin user to get all tenant's floating IPs
When getting floatingips by Nova API, the results will be filtered
with the 'tenant_id'.
So, we can only get the floatingips belonging the tenant of current
context.
When ceilometer invokes novaclient to list floatingips, it will get an
empty list because the tenant is 'service'.
we should allow an admin user to index all tenants's floatingip by adding a
parameter 'all_tenants'.
Part1:
part1 try to implement this and part2 will remove the unused codes.
Change-Id: I7ab1d5ff463fc2 9928f6811f846c9 e204390a412
Closes-bug: #1262124