python encoding libs are missing in IPA ramdisk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ironic-python-agent |
Fix Released
|
Medium
|
Illia Polliul |
Bug Description
Description of problem:
If you build IPA ramdisk with default parameters, it would be missing cp457 encoding file from python-libs. So if you try to run any Ansible against it it would result in a traceback like this:
Traceback (most recent call last):
File "/root/
_ansiballz_
File "/root/
invoke_
File "/root/
z = zipfile.
File "/usr/lib64/
self.
File "/usr/lib64/
filename = filename.
LookupError: unknown encoding: cp437
We use IPA as a minimal operating system to run firmware updates, before the actual OpenStack rollout.
I understand that this is a niche use-case, but still would be nice to have it fixed.
Version-Release number of selected component (if applicable):
ironic-
Additional info:
Also unzip package is missing, from baseos.
Missing Python encoding can probably be fixed in the python-libs package because it only includes a compiled .pyc version for this type of encoding, cp457. Some other encodings have source files.
So far my workaround is like this:
# This is required for Ansible to run on IPA, otherwise you recieve python zip errors
sed -i.bak '/^.*pyc/d' /usr/local/
# unzip is missing in CentOS 9 base image
sed -i.bak '/^parted/a unzip:' /usr/local/
Changed in ironic: | |
status: | New → In Progress |
Changed in ironic-python-agent: | |
status: | Confirmed → Invalid |
Changed in ironic-python-agent: | |
status: | Confirmed → Fix Committed |
Changed in ironic-python-agent: | |
status: | Fix Committed → Fix Released |
This really impacts ironic- python- agent-builder; but we don't appear to have a launchpad bug project for that.