[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 |
Undecided
|
Jorge Niedbalski | |||
Ubuntu Cloud Archive |
Medium
|
Unassigned | |||
Mitaka |
Medium
|
Unassigned | |||
Ocata |
Medium
|
Unassigned | |||
Queens |
Medium
|
Unassigned | |||
Rocky |
Medium
|
Unassigned | |||
Stein |
Medium
|
Unassigned | |||
Train |
Medium
|
Unassigned | |||
charm-interface-keystone |
Undecided
|
Jorge Niedbalski | |||
aodh (Ubuntu) |
Medium
|
Unassigned | |||
Bionic |
Medium
|
Unassigned | |||
Disco |
Medium
|
Unassigned | |||
Eoan |
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) |
Jorge Niedbalski (niedbalski) wrote : | #1 |
Jorge Niedbalski (niedbalski) wrote : | #2 |
Required charm-keystone-
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 |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 5bc07627efedd6b
Author: Jorge Niedbalski <email address hidden>
Date: Fri May 31 17:30:26 2019 -0400
Add service_domain_id to the auto_accessors list.
service_
such as aodh and should be exposed as an accessor attribute.
Partial-Bug: #1831181
Change-Id: Idae7aec048b920
Signed-off-by: Jorge Niedbalski <email address hidden>
Fix proposed to branch: master
Review: https:/
Changed in charm-interface-keystone: | |
status: | In Progress → Fix Released |
Jorge Niedbalski (niedbalski) wrote : | #5 |
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 |
Corey Bryant (corey.bryant) wrote : | #6 |
This bug should be "Fix Released" for upstream aodh master, stable/stein, stable/rocky, and stable/queens according to the patches that have been merged. See comment #5 at https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 58b8feeece1c05b
Author: Jorge Niedbalski <email address hidden>
Date: Tue Jun 4 15:58:15 2019 -0400
Add user_domain_id to service_
Keystone authentication might use user_domain_id
as a fallback if no user_domain_name is provided.
Change-Id: I96008794a2f8cc
Closes-Bug: #1831181
Signed-off-by: Jorge Niedbalski <email address hidden>
Changed in charm-aodh: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: stable/19.04
Review: https:/
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) |
Jorge Niedbalski (niedbalski) wrote : | #9 |
Changed in aodh (Ubuntu Bionic): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Jorge Niedbalski (niedbalski) wrote : | #10 |
Jorge Niedbalski (niedbalski) wrote : | #11 |
The attachment "Disco SRU debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
tags: | added: patch |
tags: | added: sts-sru-needed |
Corey Bryant (corey.bryant) wrote : | #13 |
Cosmic is EOL so let's just fix this in Rocky.
Changed in aodh (Ubuntu Cosmic): | |
status: | Triaged → Won't Fix |
Łukasz Zemczak (sil2100) wrote : | #14 |
What is the test case for validation here? I know one could potentially figure something out from the description of the problem, but we'd prefer a straightforward test-case provided as part of the SRU information. Regression potential could be good as well, although seeing the change I guess there's not much that can regress because of that.
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) |
Jorge Niedbalski (niedbalski) wrote : | #15 |
@sil2100
updated SRU template as requested.
description: | updated |
Hello Jorge, or anyone else affected,
Accepted aodh into disco-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in aodh (Ubuntu Disco): | |
status: | Triaged → Fix Committed |
tags: | added: verification-needed verification-needed-disco |
Jorge Niedbalski (niedbalski) wrote : | #17 |
With the patch applied, the problem isn't longer reproduced: https:/
tags: |
added: verification-done verification-done-disco removed: verification-needed verification-needed-disco |
Jorge Niedbalski (niedbalski) wrote : | #18 |
Please @SRU, check the bionic debdiff that's also attached into this case.
Thank you.
tags: | added: sts-sponsor |
tags: | removed: sts-sponsor |
Changed in charm-aodh: | |
milestone: | none → 19.07 |
James Page (james-page) wrote : | #19 |
Hello Jorge, or anyone else affected,
Accepted aodh into stein-proposed. The package will build now and be available in the Ubuntu Cloud Archive in a few hours, and then in the -proposed repository.
Please help us by testing this new package. To enable the -proposed repository:
sudo add-apt-repository cloud-archive:
sudo apt-get update
Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-
Further information regarding the verification process can be found at https:/
tags: | added: verification-stein-needed |
Sahid Orentino (sahid-ferdjaoui) wrote : | #20 |
======
Totals
======
Ran: 92 tests in 1103.8351 sec.
- Passed: 84
- Skipped: 8
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 544.0273 sec.
tags: |
added: verification-stein-done removed: verification-stein-needed |
Launchpad Janitor (janitor) wrote : | #21 |
This bug was fixed in the package aodh - 8.0.0-0ubuntu1.1
---------------
aodh (8.0.0-0ubuntu1.1) disco; urgency=medium
[ Corey Bryant ]
* d/gbp.conf: Create stable/stein branch.
[ Sahid Orentino Ferdjaoui ]
* d/p/0001-
client might require the user domain name. (LP: #1831181).
-- Corey Bryant <email address hidden> Tue, 07 May 2019 13:45:39 -0400
Changed in aodh (Ubuntu Disco): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for aodh has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Jorge Niedbalski (niedbalski) wrote : | #23 |
@Corey, @Sahid.
Any chance to check the bionic debdiff attached? plus R/Q backports in UCA?
Thank you
Changed in charm-aodh: | |
status: | Fix Committed → Fix Released |
Corey Bryant (corey.bryant) wrote : | #24 |
Thanks Jorge. I've uploaded new versions of aodh with your patches to the bionic unapproved queue [1] and rocky-staging.
[1] https:/
Hello Jorge, or anyone else affected,
Accepted aodh into bionic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in aodh (Ubuntu Bionic): | |
status: | Triaged → Fix Committed |
tags: |
added: verification-needed verification-needed-bionic removed: verification-done |
Corey Bryant (corey.bryant) wrote : | #26 |
Hello Jorge, or anyone else affected,
Accepted aodh into rocky-proposed. The package will build now and be available in the Ubuntu Cloud Archive in a few hours, and then in the -proposed repository.
Please help us by testing this new package. To enable the -proposed repository:
sudo add-apt-repository cloud-archive:
sudo apt-get update
Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-
Further information regarding the verification process can be found at https:/
tags: | added: verification-rocky-needed |
Change abandoned by Alex Kavanagh (tinwood) (<email address hidden>) on branch: stable/19.04
Review: https:/
Reason: dropping as in 19.07 and backport is not necessary.
Corey Bryant (corey.bryant) wrote : | #28 |
@Sahid/@Jorge,
If you have cycles can you help test this according to the steps in the [Test Case] section?
Thanks,
Corey
Hello Jorge, or anyone else affected,
Accepted aodh into queens-proposed. The package will build now and be available in the Ubuntu Cloud Archive in a few hours, and then in the -proposed repository.
Please help us by testing this new package. To enable the -proposed repository:
sudo add-apt-repository cloud-archive:
sudo apt-get update
Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-
Further information regarding the verification process can be found at https:/
tags: | added: verification-queens-needed |
Jorge Niedbalski (niedbalski) wrote : | #30 |
Deployed on q/r/b the problem is no longer reproduced https:/
tags: |
added: sts-sru-done verification-done verification-done-bionic verification-queens-done verification-rocky-done removed: sts-sru-needed verification-needed verification-needed-bionic verification-queens-needed verification-rocky-needed |
Launchpad Janitor (janitor) wrote : | #31 |
This bug was fixed in the package aodh - 6.0.1-0ubuntu1.2
---------------
aodh (6.0.1-0ubuntu1.2) bionic; urgency=medium
* d/p/0001-
client might require the user domain name. (LP: #1831181).
-- Jorge Niedbalski <email address hidden> Wed, 26 Jun 2019 19:09:47 -0400
Changed in aodh (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for aodh has completed successfully and the package has now been released to -updates. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Corey Bryant (corey.bryant) wrote : | #33 |
This bug was fixed in the package aodh - 8.0.0-0ubuntu1.
---------------
aodh (8.0.0-
.
* New update for the Ubuntu Cloud Archive.
.
aodh (8.0.0-0ubuntu1.1) disco; urgency=medium
.
[ Corey Bryant ]
* d/gbp.conf: Create stable/stein branch.
.
[ Sahid Orentino Ferdjaoui ]
* d/p/0001-
client might require the user domain name. (LP: #1831181).
Corey Bryant (corey.bryant) wrote : | #34 |
The verification of the Stable Release Update for aodh has completed successfully and the package has now been released to -updates. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Corey Bryant (corey.bryant) wrote : | #35 |
This bug was fixed in the package aodh - 7.0.0-0ubuntu4~
---------------
aodh (7.0.0-
.
* d/gbp.conf: Create stable/rocky branch.
* d/p/0001-
client might require the user domain name. (LP: #1831181).
Corey Bryant (corey.bryant) wrote : | #36 |
The verification of the Stable Release Update for aodh has completed successfully and the package has now been released to -updates. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Corey Bryant (corey.bryant) wrote : | #37 |
This bug was fixed in the package aodh - 6.0.1-0ubuntu1.
---------------
aodh (6.0.1-
.
* New update for the Ubuntu Cloud Archive.
.
aodh (6.0.1-0ubuntu1.2) bionic; urgency=medium
.
* d/p/0001-
client might require the user domain name. (LP: #1831181).
Changed in aodh (Ubuntu Eoan): | |
status: | Fix Committed → Fix Released |
This issue was fixed in the openstack/aodh 9.0.0.0rc1 release candidate.
Aodh fix for review https:/ /review. opendev. org/662559