[Bug 2073643] Re: [Errno 2] No such file or directory: '/usr/lib/python3/dist- packages/ironic/drivers/raid_config_schema.json'.
James Page
2073643 at bugs.launchpad.net
Thu Oct 17 19:24:55 UTC 2024
This bug was fixed in the package ironic - 1:24.1.1-0ubuntu1.2~cloud0
---------------
ironic (1:24.1.1-0ubuntu1.2~cloud0) jammy-caracal; urgency=medium
.
* New update for the Ubuntu Cloud Archive.
.
ironic (1:24.1.1-0ubuntu1.2) noble-security; urgency=medium
.
* SECURITY UPDATE: ensure underlying environment details not leaked when a
maliciously crafted image is used (LP: #2071740).
- d/p/CVE-2024-44082.patch: Harden all image handling and conversion code.
- d/control: Add qemu-utils to Build-Depends to allow unit tests to run
qemu-img.
- CVE-2024-44082
.
ironic (1:24.1.1-0ubuntu1.1) noble; urgency=medium
.
[ James Page ]
* d/gbp.conf: Create stable/2024.1 branch.
* d/gbp.conf, .launchpad.yaml: Sync from cloud-archive-tools for
caracal.
.
[ Felipe Reyes ]
* d/p/install-missing-files.patch: Install all data files under the ironic/
directory (LP: #2073643).
* d/p/install-missing-db-files.patch: Dropped in favor of
d/p/install-missing-files.patch.
** Changed in: cloud-archive/caracal
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ironic in Ubuntu.
https://bugs.launchpad.net/bugs/2073643
Title:
[Errno 2] No such file or directory: '/usr/lib/python3/dist-
packages/ironic/drivers/raid_config_schema.json'.
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive caracal series:
Fix Released
Status in ironic package in Ubuntu:
Fix Released
Status in ironic source package in Noble:
Fix Committed
Bug description:
[Impact]
The python3-ironic package available in Ubuntu Noble fails when trying
to load the ironic drivers, because there is a json schema file
missing. This is because the package is not including it when it was
built.
Stacktrace:
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service [None req-ee11f675-cc73-4c39-92d5-9a2ace917501 - - - - - -] Error starting thread.: ironic.common.exception.DriverLoadError: Driver, hardware type or interface no-raid could
not be loaded. Reason: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'.
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service Traceback (most recent call last):
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 206, in _load_plugins
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service ext = self._load_one_plugin(ep,
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/stevedore/named.py", line 156, in _load_one_plugin
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service return super(NamedExtensionManager, self)._load_one_plugin(
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 242, in _load_one_plugin
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service obj = plugin(*invoke_args, **invoke_kwds)
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/ironic/drivers/base.py", line 1461, in __init__
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service with open(RAID_CONFIG_SCHEMA, 'r') as raid_schema_fobj:
2024-07-19 15:24:28.547 1009815 ERROR oslo_service.service FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'
[ Test Plan ]
1. get a copy of charm-ironic-conductor: git clone https://opendev.org/openstack/charm-ironic-conductor
2. Build a local copy of the charm: tox -e build
3. Run the functional testing: cd src/ ; tox -e func-target -- noble-caracal
Expected results: All the tests passes
Current result: /var/log/ironic/ironic-conductor.log has the error
logged "FileNotFoundError: [Errno 2] No such file or directory:
'/usr/lib/python3/dist-
packages/ironic/drivers/raid_config_schema.json'"
[ Where problems could occur ]
This change will make the python3-ironic package larger in size since
it's including all files present in the released tarball, but not
less. A possible issue could be that unused files are installed in the
system, and this could be a problem for users producing OCI images,
rocks and cheaseled images.
[ Other Info ]
This patch[0] was used to test this fix in jammy-caracal -> jammy-
caracal-alt https://openstack-ci-
reports.ubuntu.com/artifacts/6e7/924544/2/check/jammy-caracal-
alt/6e746fb/ : SUCCESS in 59m 10s
[0] https://review.opendev.org/c/openstack/charm-ironic-
conductor/+/924544
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2073643/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list