baremetal-operator: Live-ISO test failing
Which jobs are failing?
Periodic E2E: https://github.com/metal3-io/baremetal-operator/actions/workflows/e2e-test-periodic-main.yml
Which tests are failing?
live-iso: https://github.com/metal3-io/baremetal-operator/actions/runs/12227994617/job/34105542268
Since when has it been failing?
Fist failure was 4th December
Jenkins link
No response
Reason for failure (if possible)
The BMH cannot be provisioned because the “image is not valid for use”.
From Ironic logs:
2024-12-05 14:23:05.425 1 DEBUG ironic.common.images [None req-f1216348-13a7-4a46-bfcb-8de7d88b3fb1 - - - - - -] Image http://192.168.222.1/sysrescue-out.iso downloaded in 2.58 seconds. fetch_into /usr/lib/python3.9/site-packages/ironic/common/images.py:386
2024-12-05 14:23:05.430 1 DEBUG oslo_utils.imageutils.format_inspector [None req-f1216348-13a7-4a46-bfcb-8de7d88b3fb1 - - - - - -] Format inspector for vmdk does not match, excluding from consideration (Signature KDMV not found: b'3\xed\x90\x90') _process_chunk /usr/lib/python3.9/site-packages/oslo_utils/imageutils/format_inspector.py:1365
2024-12-05 14:23:05.435 1 DEBUG oslo_utils.imageutils.format_inspector [None req-f1216348-13a7-4a46-bfcb-8de7d88b3fb1 - - - - - -] Format inspector for vhdx does not match, excluding from consideration (Region signature not found at 30000) _process_chunk /usr/lib/python3.9/site-packages/oslo_utils/imageutils/format_inspector.py:1365
2024-12-05 14:23:05.437 1 ERROR ironic.common.images [None req-f1216348-13a7-4a46-bfcb-8de7d88b3fb1 - - - - - -] Security: The requested user image for the deployment node image cache failed to be able to be parsed by the image format checker: Multiple formats detected: iso,gpt: oslo_utils.imageutils.format_inspector.ImageFormatError: Multiple formats detected: iso,gpt
2024-12-05 14:23:05.512 1 ERROR ironic.conductor.utils [None req-f1216348-13a7-4a46-bfcb-8de7d88b3fb1 - - - - - -] Node f9ba65c4-987a-42b7-8965-1787c849a3f5 failed deploy step {'step': 'deploy', 'priority': 100, 'argsinfo': None, 'interface': 'deploy'}: The requested image is not valid for use.: ironic.common.exception.InvalidImage: The requested image is not valid for use.
Anything else we need to know?
We thought first that the issue was that we did not specify the image hash, but this has been ruled out in https://github.com/metal3-io/baremetal-operator/pull/2103.
Label(s) to be applied
/kind failing-test One or more /area label. See https://github.com/metal3-io/baremetal-operator/labels for the list of labels.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (25 by maintainers)
I think I found another issue. 😦
While Ironic was pinned, we switched to kind because minikube was causing flakes. That obviously means we have not tested this with the latest ironic-image and it seems it does not work.
The difference is how Ironic is exposed to the BMHs. With minikube, we were running everything in the same network, but with kind, we have Ironic in a separate network. This means that we rely on the IRONIC_EXTERNAL_CALLBACK_URL for the callback and something about this has changed. I think the issue is that we pass the base URL here. That would make IPA use the internal address instead of the external. I will try to test and fix this today.
Edit: Please disregard for now. I think this was my broken environment. It was not properly cleaned up before I tried the newer image.
@lentzi90 I think I tracked this down to a bug in IPA: https://review.opendev.org/c/openstack/ironic-python-agent/+/942690
Yes we should, but the tests are failing on the revert. I am debugging it at the moment
Eventually in the Ironic community we have landed on this fix: https://review.opendev.org/c/openstack/ironic/+/938363
/assign @Rozzii
I have created a bug report on Ironic side and continued working on this: https://bugs.launchpad.net/ironic/+bug/2091611
We could discuss reverting the pinning https://github.com/metal3-io/baremetal-operator/pull/2112 as there is a possibility to turn off the feature that initiates the problematic image format inspection, so that we could continue the testing of other Ironic features.
I was expecting this originally: https://opendev.org/openstack/ironic/commit/669304bc0c6b2762c872b71297480c4b4ffdb554
Added to CI tracker.