openstack-tox-py3N jobs continously fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Wallaby |
Fix Released
|
High
|
Unassigned | ||
Xena |
Fix Released
|
High
|
Unassigned | ||
Yoga |
Fix Released
|
High
|
Unassigned | ||
python-aodhclient |
Confirmed
|
High
|
Unassigned | ||
aodh (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
python-aodhclient (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
these changes fix the aodhclient functional tests and are needed
in order for packages such as aodh to be able to run their tests.
[Test Plan]
run aodh tempest/functional tests
[Regression Potential]
no regressions expected and aodh CI func tests should pass once this lands
-------
Currently openstack-
Debugging the failures, I suspect the recent change in aodh is causing the problem.
https:/
~~~
aodhclient.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/
result = self.aodh(
File "/home/
return self.clients.
File "/home/
return base.execute(
File "/home/
raise exceptions.
tempest.
stdout:
b''
stderr:
b'{\'cause\': \'Invalid input\', \'reason\': "\'aggregate\' operation invalid for dictionary value @ data[\'
~~~
Changed in python-aodhclient: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in python-aodhclient (Ubuntu): | |
status: | New → Fix Released |
Changed in python-aodhclient (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in aodh (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in aodh (Ubuntu): | |
status: | New → Fix Released |
no longer affects: | python-aodhclient (Ubuntu Jammy) |
description: | updated |
I debugged this a bit and the error is because of some wrong params in the aodh call and the metrics does not exist in functional test
Metrics list shows empty
$ .tox/py3/ bin/gnocchi --os-auth-type gnocchi-basic --user admin --endpoint http:// localhost: 8051 metric list
alarm create --type gnocchi_ aggregation_ by_resources_ threshold says cpu metrics not found
$ .tox/py3/bin/aodh --os-auth-plugin aodh-noauth --user-id 0c64700f- 6926-4e6f- b966-391e75682a db --project-id c18b0723- c075-41d2- a96e-d82317a9d9 8d --aodh-endpoint http:// localhost: 8042 alarm create --type gnocchi_ aggregation_ by_resources_ threshold --name alarm1 --metric cpu --threshold 80 --query '{"=": {"creator": "admin"}}' --resource-type generic --aggregation- method mean d2da-4d5b- 82bc-96474a2bd6 74)
{'cause': 'Metrics not found', 'detail': ['cpu']} (HTTP 400) (Request-ID: req-dec0afc1-