ceilometer-upgrade action fails with a Keystone error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceilometer Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Description
=======
When running ceilometer-update on ceilometer/leader,
action fails with error:
"ERROR ceilometer The Keystone service is temporarily unavailable."
Versions
=======
Cloud focal-victoria
Charm ceilometer rev: 278
Steps to reproduce
=======
1. Deploy a focal-victoria bundle (i.e. openstack-on-lxd bundle https:/
2. Ceilometer unit is in "blocked" state with message:
"Run the ceilometer-upgrade action on the leader to initialize ceilometer and gnocchi"
3. Run ceilomer-upgrade action with:
"juju run-action ceilometer/0 ceilometer-upgrade --wait"
4. Action fail with the error: https:/
But keystone is working correctly:
$ openstack endpoint list | grep keystone
| 32ed53350d2d4e7
| b42ddcfe21df4c0
| c75b63ec49a84c4
$ openstack token issue
+------
| Field | Value |
+------
| expires | 2020-12-
| id | gAAAAABfyLUsbBd
| project_id | 5c19cc143cb746b
| user_id | 4434a217512a4bb
+------
Expected result
=======
ceilometer-upgrade action complete and the unit is "active" state.
I found that keystone was using https endpoint configured with the relatioon:
vault:certificates keystone: certificates
While gnocchi was using http endpoint. I have added the relation with vault with:
juju add-relation vault:certificates gnocchi: certificates
and now I am able to complete the ceilometer-upgraade action:
$ juju run-action ceilometer/0 ceilometer-upgrade --wait cmd.storage [-] python3/ dist-packages/ ceilometer/ cmd/storage. py:42\e[ 00m\nlxc\ nactive\ n"
unit-ceilometer-0:
UnitId: ceilometer/0
id: "32"
results:
Stdout: "lxc\n2020-12-03 10:44:14.825 139161 DEBUG ceilometer.
Upgrading Gnocchi resource types upgrade /usr/lib/
outcome: success, ceilometer-upgrade completed.
status: completed
timing:
completed: 2020-12-03 10:44:30 +0000 UTC
enqueued: 2020-12-03 10:44:06 +0000 UTC
started: 2020-12-03 10:44:06 +0000 UTC