multi region support --os-region-name doesnt work

Bug #1451196 reported by Tomer Shtilman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Undecided
ZhiQiang Fan

Bug Description

In multi region setup the --os-region-name does not work

we have a keystone with two regions R1 R2
these are two ceilometer endpoints ( one endpoint for each region)

| 014f8b3d93f04275b73c37cca6a03557 | R2 | http://135.248.18.161:8777/ | http://135.248.18.161:8777/ | http://135.248.18.161:8777/ | 1d1cf2b896d7459eb874e4877b3b92df |
| 97807b3239374e4581946b1c05ae1cda | R1 | http://135.248.18.160:8777/ | http://135.248.18.160:8777/ | http://135.248.18.160:8777/ | 1d1cf2b896d7459eb874e4877b3b92df |

the following command using --os-region-name returns an empty list
 ceilometer --os-tenant-name=demo --os-region-name=R2 meter-list -q 'resource=989d53f5-2244-45c8-8b74-ecd979fd59ac'
+------+------+------+-------------+---------+------------+
| Name | Type | Unit | Resource ID | User ID | Project ID |
+------+------+------+-------------+---------+------------+
+------+------+------+-------------+---------+------------+

if we change the command to use ceilomoter url (the same as the one in keystone) instead of the the region name the correct data is returned

ceilometer --os-tenant-name=demo --ceilometer-url http://135.248.18.161:8777/ meter-list -q 'resource=989d53f5-2244-45c8-8b74-ecd979fd59ac'
+--------------------------+------------+-----------+--------------------------------------+----------------------------------+----------------------------------+
| Name | Type | Unit | Resource ID | User ID | Project ID |
+--------------------------+------------+-----------+--------------------------------------+----------------------------------+----------------------------------+
| cpu | cumulative | ns | 989d53f5-2244-45c8-8b74-ecd979fd59ac | d19ab8e5f3b24fe5913b0bcdf8fa5a9b | a43acaca01b24c73b6d269f0705c0c25 |
| cpu_util | gauge | % | 989d53f5-2244-45c8-8b74-ecd979fd59ac | d19ab8e5f3b24fe5913b0bcdf8fa5a9b | a43acaca01b24c73b6d269f0705c0c25 |
| disk.allocation | gauge | B | 989d53f5-2244-45c8-8b74-ecd979fd59ac | d19ab8e5f3b24fe5913b0bcdf8fa5a9b |
....
+--------------------------+------------+-----------+--------------------------------------+----------------------------------+----------------------------------+

ZhiQiang Fan (aji-zqfan)
Changed in ceilometer:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :
Changed in ceilometer:
status: New → Incomplete
ZhiQiang Fan (aji-zqfan)
affects: ceilometer → python-ceilometerclient
Revision history for this message
Tomer Shtilman (tomer-shtilman) wrote :

working on devstack master
stack@tshtilma-devstack-r1:~$ ceilometer --version
1.0.13
will pull the newest code and retry

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

just an update. it was backported to 1.0.14 (https://review.openstack.org/#/c/175516/)

it will probably only be usable against kilo though.

Revision history for this message
Tomer Shtilman (tomer-shtilman) wrote :

check with updated ceilometer client seems like issue is fixed
thanks

Changed in python-ceilometerclient:
status: Incomplete → Fix Released
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.