[Bug 2083060] [NEW] ironic-conductor fails to start because of missing raid_config_schema.json

Takashi Kajinami 2083060 at bugs.launchpad.net
Fri Sep 27 16:19:24 UTC 2024


Public bug reported:

In Puppet OpenStack project we've been running a test of ironic
deployment with Ubuntu 22.04 + UCA Caracal.

In the job we observe that ironic-conductor fails to start and dumps the
following error.

```
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service Traceback (most recent call last):
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 206, in _load_plugins
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     ext = self._load_one_plugin(ep,
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/named.py", line 156, in _load_one_plugin
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return super(NamedExtensionManager, self)._load_one_plugin(
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 242, in _load_one_plugin
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     obj = plugin(*invoke_args, **invoke_kwds)
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/drivers/base.py", line 1461, in __init__
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     with open(RAID_CONFIG_SCHEMA, 'r') as raid_schema_fobj:
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service During handling of the above exception, another exception occurred:
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service Traceback (most recent call last):
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 810, in run_service
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     service.start()
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/rpc_service.py", line 60, in start
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._real_start()
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/rpc_service.py", line 36, in _real_start
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     super()._real_start()
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/rpc_service.py", line 88, in _real_start
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self.manager.init_host(admin_context)
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/base_manager.py", line 181, in init_host
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._collect_periodic_tasks(admin_context)
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/base_manager.py", line 321, in _collect_periodic_tasks
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     for ifaces in driver_factory.all_interfaces().values():
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 284, in all_interfaces
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return {iface: interfaces(iface) for iface in _INTERFACE_LOADERS}
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 284, in <dictcomp>
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return {iface: interfaces(iface) for iface in _INTERFACE_LOADERS}
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 275, in interfaces
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return _get_all_drivers(_INTERFACE_LOADERS[interface_type]())
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 336, in __init__
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self.__class__._init_extension_manager()
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 407, in _init_extension_manager
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     stevedore.NamedExtensionManager(
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/named.py", line 78, in __init__
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     extensions = self._load_plugins(invoke_on_load,
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 218, in _load_plugins
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._on_load_failure_callback(self, ep, err)
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 358, in _catch_driver_not_found
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     raise exception.DriverLoadError(driver=ep.name, reason=exc)
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service ironic.common.exception.DriverLoadError: Driver, hardware type or interface agent could not be loaded. Reason: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'.
2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
```

I also confirmed that the python3-ironic does not provide the
/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json
file.

The version of ironic packages currently used is 1:24.1.1-0ubuntu1~cloud0 . 
The ironic 1:20.1.0-0ubuntu1.2 for Ubuntu Jammy contains the file so it seems the issue is specific to recent versions.

** Affects: ironic (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/2083060

Title:
  ironic-conductor fails to start because of missing
  raid_config_schema.json

Status in ironic package in Ubuntu:
  New

Bug description:
  In Puppet OpenStack project we've been running a test of ironic
  deployment with Ubuntu 22.04 + UCA Caracal.

  In the job we observe that ironic-conductor fails to start and dumps
  the following error.

  ```
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service Traceback (most recent call last):
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 206, in _load_plugins
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     ext = self._load_one_plugin(ep,
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/named.py", line 156, in _load_one_plugin
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return super(NamedExtensionManager, self)._load_one_plugin(
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 242, in _load_one_plugin
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     obj = plugin(*invoke_args, **invoke_kwds)
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/drivers/base.py", line 1461, in __init__
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     with open(RAID_CONFIG_SCHEMA, 'r') as raid_schema_fobj:
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service During handling of the above exception, another exception occurred:
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service Traceback (most recent call last):
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 810, in run_service
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     service.start()
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/rpc_service.py", line 60, in start
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._real_start()
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/rpc_service.py", line 36, in _real_start
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     super()._real_start()
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/rpc_service.py", line 88, in _real_start
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self.manager.init_host(admin_context)
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/base_manager.py", line 181, in init_host
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._collect_periodic_tasks(admin_context)
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/conductor/base_manager.py", line 321, in _collect_periodic_tasks
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     for ifaces in driver_factory.all_interfaces().values():
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 284, in all_interfaces
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return {iface: interfaces(iface) for iface in _INTERFACE_LOADERS}
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 284, in <dictcomp>
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return {iface: interfaces(iface) for iface in _INTERFACE_LOADERS}
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 275, in interfaces
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     return _get_all_drivers(_INTERFACE_LOADERS[interface_type]())
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 336, in __init__
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self.__class__._init_extension_manager()
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 407, in _init_extension_manager
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     stevedore.NamedExtensionManager(
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/named.py", line 78, in __init__
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     extensions = self._load_plugins(invoke_on_load,
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 218, in _load_plugins
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     self._on_load_failure_callback(self, ep, err)
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service   File "/usr/lib/python3/dist-packages/ironic/common/driver_factory.py", line 358, in _catch_driver_not_found
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service     raise exception.DriverLoadError(driver=ep.name, reason=exc)
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service ironic.common.exception.DriverLoadError: Driver, hardware type or interface agent could not be loaded. Reason: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json'.
  2024-09-27 16:03:15.062 60748 ERROR oslo_service.service 
  ```

  I also confirmed that the python3-ironic does not provide the
  /usr/lib/python3/dist-packages/ironic/drivers/raid_config_schema.json
  file.

  The version of ironic packages currently used is 1:24.1.1-0ubuntu1~cloud0 . 
  The ironic 1:20.1.0-0ubuntu1.2 for Ubuntu Jammy contains the file so it seems the issue is specific to recent versions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ironic/+bug/2083060/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list