[Bug 2071939] Re: [caraca|2024.1] the 22.0 version of python3-ceilometer is missing files thus breaking the notification service
Guillaume Boutry
2071939 at bugs.launchpad.net
Mon Jul 15 16:09:27 UTC 2024
I built a ceilometer Rock from Noble Proposed and was able to confirm
this fixes the issue.
Built the rock by applying the following diff to
https://github.com/canonical/ubuntu-openstack-
rocks/blob/6707266619e67abe4e1a48ab0fe91e81b6aa5b36/rocks/ceilometer-
consolidated/rockcraft.yaml#L13
diff --git a/rocks/ceilometer-consolidated/rockcraft.yaml b/rocks/ceilometer-consolidated/rockcraft.yaml
index e9679b1..6f539bf 100644
--- a/rocks/ceilometer-consolidated/rockcraft.yaml
+++ b/rocks/ceilometer-consolidated/rockcraft.yaml
@@ -5,14 +5,16 @@ description: |
Ubuntu distribution of OpenStack ceilometer-consolidated
version: '2024.1'
-# renovate: base: ubuntu:22.04 at sha256:1b8d8ff4777f36f19bfe73ee4df61e3a0b789caeff29caa019539ec7c9a57f95
-base: ubuntu at 22.04
+base: ubuntu at 24.04
platforms:
amd64:
package-repositories:
- type: apt
- cloud: caracal
+ url: http://archive.ubuntu.com/ubuntu/
+ suites: [noble-proposed]
+ components: [main, universe, restricted, multiverse]
+ key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C
priority: always
parts:
>From inside the Rock
apt policy ceilometer-agent-notification
ceilometer-agent-notification:
Installed: 2:22.0.0-0ubuntu1.1
Candidate: 2:22.0.0-0ubuntu1.1
Version table:
*** 2:22.0.0-0ubuntu1.1 100
100 /var/lib/dpkg/status
I can confirm the notification agent is now starting with the following
logs:
2024-07-15 18:05:50
2024-07-15 16:05:45.757 22 INFO ceilometer.publisher.messaging [-] Publishing policy set to default
2024-07-15 18:05:49
2024-07-15 16:05:45.757 22 INFO ceilometer.publisher.messaging [-] Publishing policy set to default
Before the fix, the notification didn't start, failing on the reported exception.
** Tags removed: verification-needed-noble
** Tags added: verification-done-noble
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceilometer in Ubuntu.
https://bugs.launchpad.net/bugs/2071939
Title:
[caraca|2024.1] the 22.0 version of python3-ceilometer is missing
files thus breaking the notification service
Status in Ubuntu Cloud Archive:
New
Status in Ubuntu Cloud Archive caracal series:
Fix Committed
Status in ceilometer package in Ubuntu:
Fix Released
Status in ceilometer source package in Noble:
Fix Committed
Status in ceilometer source package in Oracular:
Fix Released
Bug description:
[Impact]
Meter definition files are not included in the binary package resulting in a non-functional ceilometer after install.
[Test Case - Basic]
sudo apt install python3-ceilometer
find /usr/lib/python3 -name meters.yaml -> file is not found.
[Test Case - Advanced]
Deploy OpenStack Caracal using Charmed OpenStack Tester
Ceilometer agents will fail to start due to missing data files.
[Where problems could occur]
Limited - we're picking a patch that's been in Debian for sometime (2016) so its had good testing exposure already; as to why we need this in Noble whereas in Mantic this problem did not exist - probably something todo with installation behaviour changes between Python versions.
[Original Bug Report]
The issue I discovered is that (in an installed system) the:
/usr/lib/python3/dist-packages/ceilometer/pipeline/data/...
directory is missing. This is supplied by the python3-ceilometer .deb
file.
For bobcat (mantic):
$ dpkg -c python3-ceilometer_21.0.0-0ubuntu1~cloud0_all.deb | grep data
drwxr-xr-x root/root 0 2023-10-05 19:34 ./usr/lib/python3/dist-packages/ceilometer/data/
drwxr-xr-x root/root 0 2023-10-05 19:34 ./usr/lib/python3/dist-packages/ceilometer/data/meters.d/
-rw-r--r-- root/root 13538 2023-10-04 12:09 ./usr/lib/python3/dist-packages/ceilometer/data/meters.d/meters.yaml
drwxr-xr-x root/root 0 2023-10-05 19:34 ./usr/lib/python3/dist-packages/ceilometer/pipeline/data/
-rw-r--r-- root/root 17573 2023-10-04 12:09 ./usr/lib/python3/dist-packages/ceilometer/pipeline/data/event_definitions.yaml
-rw-r--r-- root/root 176 2023-10-04 12:09 ./usr/lib/python3/dist-packages/ceilometer/pipeline/data/event_pipeline.yaml
-rw-r--r-- root/root 175 2023-10-04 12:09 ./usr/lib/python3/dist-packages/ceilometer/pipeline/data/pipeline.yaml
drwxr-xr-x root/root 0 2023-10-05 19:34 ./usr/lib/python3/dist-
...
For caracal (noble):
dpkg -c python3-ceilometer_22.0.0-0ubuntu1~cloud0_all.deb | grep data
-rw-r--r-- root/root 5113 2024-04-03 12:08 ./usr/lib/python3/dist-packages/ceilometer/tests/unit/compute/pollsters/test_location_metadata.py
-rw-r--r-- root/root 32485 2024-04-03 12:08 ./usr/lib/python3/dist-packages/ceilometer/tests/unit/ipmi/notifications/ipmi_test_data.py
-rw-r--r-- root/root 14151 2024-04-03 12:08 ./usr/lib/python3/dist-packages/ceilometer/tests/unit/ipmi/platform/ipmitool_test_data.py
i.e. the data directory is completely missing. It is available in the
upstream ceilometer repo:
https://opendev.org/openstack/ceilometer/src/branch/stable/2024.1/ceilometer/pipeline/data
I suspect something is amiss with the package src files.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2071939/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list