Bug 1977417
Summary: | Overcloud deployment for partition image with uefi boot mode failed | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Paras Babbar <pbabbar> | |
Component: | openstack-ironic-python-agent | Assignee: | Julia Kreger <jkreger> | |
Status: | CLOSED ERRATA | QA Contact: | ||
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 16.2 (Train) | CC: | jkreger, pweeks, racedoro, sbaker, shrjoshi, spower, supadhya | |
Target Milestone: | --- | Keywords: | Regression, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openstack-ironic-python-agent-5.0.5-2.20210611024819.el8ost.3 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1978343 (view as bug list) | Environment: | ||
Last Closed: | 2021-09-15 07:16:23 UTC | Type: | Bug | |
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: | 1978343 |
Description
Paras Babbar
2021-06-29 17:13:37 UTC
This was introduced by the fix for BZ # 1966129, as for the stable/train backport, we tried to make it python2.7 compatible as RDO had recently complained about breaking py2 compatability. At this point, I'm going to make that fix python3 exclusive and it should be fine. This is the actual root failure reported in the IPA logs: Jun 24 07:53:07 host-192-168-24-36 ironic-python-agent[708]: 2021-06-24 07:53:07.311 708 DEBUG ironic_python_agent.extensions.image [-] Exception encountered while attempting to setup the EFI loader from a root filesystem. Error: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128) _try_preserve_efi_assets /usr/lib/python3.6/site-packages/ironic_python_agent/extensions/image.py:744 Jun 24 07:53:07 host-192-168-24-36 ironic-python-agent[708]: 2021-06-24 07:53:07.317 708 DEBUG ironic_python_agent.extensions.image [-] No EFI assets were preserved for setup or the ramdisk was unable to complete the setup. falling back to bootloader installation fromdeployed image. _install_grub2 /usr/lib/python3.6/site-packages/ironic_python_agent/extensions/image.py:501 An additional failure is ultimately what was being reported above, which is not critical, would then occur when attempting to fall back. We're going to handle that issue upstream since it is not a blocker nor an issue for our deployment cases, we just happen to be able to observe it in how this case is failing. The root cause is an attempt to maintain compatibility for upstream RDO when we backpoted the original UEFI default configuration loading support to navigate the 8.4 bug with the efi shim loader resetting the NVRAM based upon the defaults. For the the backport, I changed the syntax to be python2 compatible, however python3 doesn't honor that syntax and requires an explicit statement of the encoding type. Python3 would then open the file as ascii and it would fail validation. Interestingly enough, this was not observed in upstream CI, but it is likely because upstream Ubuntu is used which does not have a file beginning marker, where as RHEL's default file *does* have the marker (0xFEFF), and the FF portion of FEFF fails the character encoding handling rules of python for ascii. 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 (RHOSP) 16.2 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/RHEA-2021:3483 |