Collecting host info for instance

Currently the mapping to collect host info of instance is not correct,
and unfortunately, we can only get a hexdigest of project_id + host_name.
But we can get the correct host name by using the same algorithm when
doing billing.

Closes-Bug: #1665191

Change-Id: I0585c1e9a01250e6b34f3c1d060b76db34fcd6bf
This commit is contained in:
adrian-turjak 2017-01-31 16:11:56 +13:00 committed by Feilong Wang
parent 6d1dec6cd9
commit b2e57549e9
2 changed files with 6 additions and 6 deletions

View File

@ -54,7 +54,7 @@ collection:
- OS-EXT-AZ:availability_zone
host:
sources:
- instance_host
- host
-
meter: ip.floating
service: n1.ipv4

View File

@ -19,7 +19,7 @@
- OS-EXT-AZ:availability_zone
host:
sources:
- instance_host
- host
-
meter: ip.floating
service: n1.ipv4