[multiple] Log patched container images for OpenStackVersion CR - #4152
[multiple] Log patched container images for OpenStackVersion CR#4152danpawlik wants to merge 1 commit into
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 25m 59s |
|
Test done: openstack-k8s-operators/telemetry-operator#992 |
PR Summary by QodoLog OpenStackVersion custom container image overrides
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
|
recheck |
Code Review by Qodo
1. edpm_prepare variables misnamed
|
28dc47d to
336fbba
Compare
When a job patches the `OpenStackVersion` `controlplane` CR with custom container images (e.g. s2i-built images from an operator PR), the resulting `spec.customContainerImages` is only visible by inspecting the must-gather `openstackversions.core.openstack.org/controlplane.yaml`. Jobs like `s2i-speculative-deploy-test-*` gave no in-log indication of which images were applied. Add a debug task in both `OpenStackVersion` writers -- the `update_containers` role (template + `oc apply`) and the `set_containers` call in `edpm_prepare` -- that reads back the generated CR and prints it verbatim, so the patched images are visible directly in the job output. The rendered file is printed as raw lines rather than re-parsed with `from_yaml`, which threw `yaml.scanner.ScannerError` on values containing a colon-space sequence. Assisted-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
336fbba to
384e377
Compare
|
recheck |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 30m 15s |
|
recheck |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 34m 19s |
When a job patches the
OpenStackVersioncontrolplaneCR with custom container images (e.g. s2i-built images from an operator PR), the resultingspec.customContainerImagesis only visible by inspecting the must-gatheropenstackversions.core.openstack.org/controlplane.yaml. Jobs likes2i-speculative-deploy-test-*gave no in-log indication of which images were applied.Add a debug task in both
OpenStackVersionwriters -- theupdate_containersrole (template +oc apply) and theset_containerscall inedpm_prepare-- that reads back the generated CR and prints thecustomContainerImagesmap, so the patched images are visible directly in the job output.Assisted-By: Claude Opus 4.8 noreply@anthropic.com