octavia is not reporting metrics like lbaasv2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Undecided
|
Jorge Niedbalski | ||
Ubuntu Cloud Archive |
Triaged
|
Medium
|
Unassigned | ||
Queens |
In Progress
|
Medium
|
Unassigned | ||
Rocky |
Fix Released
|
Medium
|
Unassigned | ||
Stein |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned | ||
ceilometer (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Triaged
|
Medium
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Environment]
Stein OpenStack
Ubuntu Bionic
[Description]
From my understanding the current Octavia API should be backwards compatible with LBaaS v2, therefore, the current LBaaS v2 pollster [1] should suffice to gather the following meters:
meters:
- network.
- network.
- network.
- network.
- network.
- network.
- network.
- network.
- network.
However, the following warning is noticed when restarted the ceilometer services.
2999:2019-11-07 15:05:41.665 22487 WARNING ceilometer.
3467:2019-11-07 15:06:21.830 3916 WARNING ceilometer.
In fact, by checking at the gnocchi metric list (https:/
metrics/resources haven't been created.
The reason is that for a gnocchi resource to exist, ceilometer has to create the resource type explicitly.
This action is commanded by the ceilometer gnocchi client [2] and it uses the file /usr/lib/
for the resource definitions, which doesn't includes the lbaasv2 directives.
[Test case]
1) Deploy a gnocchi backed ceilometer unit with octavia deployed.
2) check that lb meters aren't being gathered
$ gnocchi metric list|grep loadbalancer | wc -l
0
3) install the patched version
4) configure all pollsters
$ juju config ceilometer enable-
5) sudo systemctl restart ceilometer*
6) sudo ceilometer-upgrade
7) Check that lb metrics are being gathered
ubuntu@
72
ubuntu@
| 3947b249-
| 5527c5b6-
| 57d63bcb-
| 5d93c751-
| 71ace776-
| 738b1dd0-
| 7b4726f6-
| 8689e872-
| ae72c5f3-
| b59ef5ae-
| bdf259a1-
| e5d2e433-
| eb634e4e-
[Regression Potential]
There is no regression potential identified on this patch as it uses
the new metrics upgrade path and it doesn't
enables any new metrics if the lbaasv2 pollster isn't configured.
[Proposed solution]
Enable the resources on /usr/lib/
and modify the gnocchi client provider. I am able to gather the metrics for the octavia load balancers.
ubuntu@
| 3947b249-
| 5527c5b6-
| 57d63bcb-
| 5d93c751-
| 71ace776-
| 738b1dd0-
| 7b4726f6-
| 8689e872-
| ae72c5f3-
| b59ef5ae-
| bdf259a1-
| e5d2e433-
| eb634e4e-
| ef04f494-
ubuntu@
+------
| timestamp | granularity | value |
+------
| 2019-11-
| 2019-11-
| 2019-11-
+------
Changed in charm-octavia: | |
status: | New → Triaged |
Changed in ceilometer (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ceilometer (Ubuntu Eoan): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ceilometer (Ubuntu Disco): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ceilometer (Ubuntu Bionic): | |
importance: | Undecided → Medium |
status: | New → Triaged |
description: | updated |
description: | updated |
tags: |
added: verification-done verification-done-disco verification-done-eoan verification-rocky-done verification-stein-done verification-train-done removed: verification-needed verification-needed-disco verification-needed-eoan verification-rocky-needed verification-stein-needed verification-train-needed |
affects: | charm-octavia → ubuntu-translations |
no longer affects: | ubuntu-translations |
Added field medium, as we have a customer waiting for feedback