Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2129137

Summary: Fix iRMC https certification [OSP 16.1]
Product: Red Hat OpenStack Reporter: Lon Hohberger <lhh>
Component: openstack-ironicAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: hjensas, jkreger, jniu, jparoly, rhos-maint, sbaker, yusokada
Target Milestone: z9Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ironic-13.0.7-1.20220928173741.3d77e61.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2129136 Environment:
Last Closed: 2022-12-07 20:27:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2119227    

Description Lon Hohberger 2022-09-22 16:27:39 UTC
Description of problem:

The stable/train fix for python-scciclient concerning HTTPS certificate validation requires this change in Ironic in order to work.

Comment 4 Yusuke Okada (fujitsu) 2022-11-10 03:05:59 UTC
Hi,

After updating the ironic packages in the containers, ironic conductor cannot be started.
It repeats restarting with the following error.

```
2022-11-09 21:58:01.188 7 ERROR oslo_service.service [req-dd04e35d-df9c-4801-bdad-eb486b6bb47b - - - - -] Error starting thread.: ironic.common.exception.DriverLoadError: Driver, hardware type or interface irmc could not be loaded. Reason: No module named 'packaging'.
2022-11-09 21:58:01.188 7 ERROR oslo_service.service Traceback (most recent call last):
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 195, in _load_plugins
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     verify_requirements,
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/stevedore/named.py", line 158, in _load_one_plugin
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     verify_requirements,
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/stevedore/extension.py", line 223, in _load_one_plugin
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     plugin = ep.resolve()
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     module = __import__(self.module_name, fromlist=['__name__'], level=0)
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/ironic/drivers/irmc.py", line 24, in <module>
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     from ironic.drivers.modules.irmc import bios
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/ironic/drivers/modules/irmc/bios.py", line 24, in <module>
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     from ironic.drivers.modules.irmc import common as irmc_common
2022-11-09 21:58:01.188 7 ERROR oslo_service.service   File "/usr/lib/python3.6/site-packages/ironic/drivers/modules/irmc/common.py", line 23, in <module>
2022-11-09 21:58:01.188 7 ERROR oslo_service.service     from packaging import version
2022-11-09 21:58:01.188 7 ERROR oslo_service.service ModuleNotFoundError: No module named 'packaging'
```

The new ironic conductor requires python3-packaging, but it is not included in the OSP repository.
https://github.com/openstack/ironic/blob/stable/train/requirements.txt#L51

Could you add python3-packaging in OSP repository?

Best Regards,
Yusuke Okada

Comment 7 Yusuke Okada (fujitsu) 2022-11-28 20:24:05 UTC
Hi,

I verified openstack-ironic-13.0.7-1.20220928173741.3d77e61.el8ost works as expected if I install/update the following packages in the ironic-conductor container.

- python3-packaging is needed
- python3-scciclient-0.9.1-2.20220111031440.el8ost.noarch.rpm

Could you tell me when will this fix released?

Best regards,
Yusuke Okada

Comment 14 errata-xmlrpc 2022-12-07 20:27:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8795

Comment 15 Yusuke Okada (fujitsu) 2022-12-09 23:40:09 UTC
Hi,

I checked the latest container (ironic-conductor:16.1.9-5) and found that it doesn't include python3-packaging.
As I commented in #4, if python3-packaging is absent, ironic-conductor won't start.

Could you include the package and update containers?

Best regards,
Yusuke Okada

Comment 16 jingjing niu 2022-12-12 14:30:15 UTC
Hi Okada-san,

Just create a new bug to track this issue.
https://bugzilla.redhat.com/show_bug.cgi?id=2152623

Comment 17 Red Hat Bugzilla 2023-09-19 04:26:56 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days