[aodh.notifier] Not setting user_domain_id raises keystone error: The resource could not be found.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
New
|
Undecided
|
Jorge Niedbalski | ||
OpenStack AODH Charm |
Fix Released
|
Undecided
|
Jorge Niedbalski | ||
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Mitaka |
Triaged
|
Medium
|
Unassigned | ||
Ocata |
Triaged
|
Medium
|
Unassigned | ||
Queens |
Fix Released
|
Medium
|
Unassigned | ||
Rocky |
Fix Released
|
Medium
|
Unassigned | ||
Stein |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned | ||
charm-interface-keystone |
Fix Released
|
Undecided
|
Jorge Niedbalski | ||
aodh (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Environment]
Xenial/Queens
[Description]
If no user_domain_id is provided then, the following exception will be raised by the
aodh-notifier component:
$ openstack alarm-history show 1424b6fb-
==> /var/log/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier return self._plugin.
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier authenticated=
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier return self.request(url, 'POST', **kwargs)
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier raise exceptions.
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier NotFound: (http://
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier
Domain configuration for the aodh service is as follows:
root@juju-
gnocchi_
project_domain_name = service_domain
user_domain_name = service_domain
[Test Case]
1) Configure aodh service with the following configuration
root@juju-
gnocchi_
project_domain_name = service_domain
user_domain_name = service_domain
2) Check the alarm history
ubuntu@
==> /var/log/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier return self._plugin.
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier authenticated=
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier return self.request(url, 'POST', **kwargs)
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier File "/usr/lib/
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier raise exceptions.
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier NotFound: (http://
2019-05-31 02:07:26.663 15274 ERROR aodh.notifier
*** With the patch applied the latest traceback doesn't gets generated.
[Regression Potential]
* None has been identified
### Explanation
The following line https:/
enforces the existence of the user_domain_id for getting the authenticated keystone session.
[Proposed Solution]
* Use user_domain_name as a fallback if no user_domain_id is provided.
* The charm templates should provide only user_domain_id if provided orelse
fallback to user_domain_name.
Changed in aodh: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in charm-aodh: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
status: | New → In Progress |
Changed in aodh (Ubuntu): | |
status: | New → In Progress |
Changed in charm-interface-keystone: | |
status: | New → In Progress |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Disco): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Cosmic): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Bionic): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Xenial): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Eoan): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
status: | In Progress → New |
Changed in charm-interface-keystone: | |
status: | In Progress → Fix Released |
Changed in aodh (Ubuntu Eoan): | |
importance: | Undecided → High |
status: | New → Triaged |
importance: | High → Medium |
Changed in aodh (Ubuntu Disco): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in aodh (Ubuntu Cosmic): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in aodh (Ubuntu Bionic): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in aodh (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in aodh (Ubuntu Xenial): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Bionic): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Cosmic): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Disco): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Eoan): | |
status: | Triaged → Fix Committed |
Changed in aodh (Ubuntu Disco): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in aodh (Ubuntu Cosmic): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
no longer affects: | aodh (Ubuntu Xenial) |
tags: | added: sts-sru-needed |
Changed in aodh (Ubuntu Bionic): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Disco): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in aodh (Ubuntu Cosmic): | |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
no longer affects: | aodh (Ubuntu Cosmic) |
tags: | added: sts-sponsor |
tags: | removed: sts-sponsor |
Changed in charm-aodh: | |
milestone: | none → 19.07 |
Changed in charm-aodh: | |
status: | Fix Committed → Fix Released |
Changed in aodh (Ubuntu Eoan): | |
status: | Fix Committed → Fix Released |
Aodh fix for review https:/ /review. opendev. org/662559