Skip to content

[edpm_deploy_baremetal] Wait for ProvisionServer localImageUrl - #4136

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix/edpm-deploy-baremetal-wait-local-image-url
Aug 26, 2026
Merged

[edpm_deploy_baremetal] Wait for ProvisionServer localImageUrl#4136
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix/edpm-deploy-baremetal-wait-local-image-url

Conversation

@rebtoor

@rebtoor rebtoor commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Retry fetching OpenStackProvisionServer until status.localImageUrl is set.
  • Use safe .get() access when deriving the checksum URL fallback.
  • Store the image URL in a fact for the subsequent HTTP probes.

Problem

cifmw-crc-podified-edpm-baremetal-bootc failed in edpm_deploy_baremetal
with 'dict object' has no attribute 'localImageUrl' even though the
Provision Server pod and deployment were ready. The operator publishes
localImageUrl after reconciliation, not when the Deployment becomes
Available.

Test plan

  • Re-run cifmw-crc-podified-edpm-baremetal-bootc on rdoproject Zuul
  • TEST_SINGLE_ROLE=edpm_deploy_baremetal make molecule (dry-run converge)

Made with Cursor

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@rebtoor
rebtoor force-pushed the fix/edpm-deploy-baremetal-wait-local-image-url branch from 775b98b to 896aff8 Compare August 24, 2026 09:01
abays
abays previously approved these changes Aug 24, 2026

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/4c7f7278c9814b5eb8b0acc74e22371a

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 13m 54s
podified-multinode-edpm-deployment-crc FAILURE in 2h 01m 36s
cifmw-crc-podified-edpm-baremetal FAILURE in 2h 05m 59s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 1h 55m 06s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 27s
✔️ openstack-k8s-operators-content-provider-bootc SUCCESS in 3h 11m 14s
cifmw-crc-podified-edpm-baremetal-bootc FAILURE in 1h 58m 45s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 56s
✔️ cifmw-pod-pre-commit SUCCESS in 9m 55s
✔️ cifmw-molecule-edpm_deploy_baremetal SUCCESS in 5m 10s

@nemarjan

Copy link
Copy Markdown
Contributor

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #4130 is needed.

@rebtoor

rebtoor commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

recheck

Valkyrie00
Valkyrie00 previously approved these changes Aug 26, 2026

@Valkyrie00 Valkyrie00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

nemarjan
nemarjan previously approved these changes Aug 26, 2026

@nemarjan nemarjan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nemarjan, Valkyrie00

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [Valkyrie00,nemarjan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rebtoor
rebtoor force-pushed the fix/edpm-deploy-baremetal-wait-local-image-url branch from 896aff8 to 41a14d3 Compare August 26, 2026 09:04
@openshift-ci openshift-ci Bot removed the lgtm label Aug 26, 2026
The role queried OpenStackProvisionServer status as soon as the
deployment was Available, but the baremetal operator sets
status.localImageUrl asynchronously. Retry k8s_info until the URL is
present and use dict.get() when building checksum fallback facts.

Seen in cifmw-crc-podified-edpm-baremetal-bootc while validating
ci-framework#4131 (unrelated failure).

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
@rebtoor
rebtoor dismissed stale reviews from abays, Valkyrie00, and nemarjan via 0c11976 August 26, 2026 12:10
@rebtoor
rebtoor force-pushed the fix/edpm-deploy-baremetal-wait-local-image-url branch from 41a14d3 to 0c11976 Compare August 26, 2026 12:10
@centosinfra-prod-github-app

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 4130,c07d8d4f7727303ceccc711beb282ccb51374fe2

@rebtoor

rebtoor commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@rebtoor

rebtoor commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

too many unrelated fails.

/override rdoproject.org/github-check

@openshift-ci

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@rebtoor: Overrode contexts on behalf of rebtoor: rdoproject.org/github-check

Details

In response to this:

too many unrelated fails.

/override rdoproject.org/github-check

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Valkyrie00

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Aug 26, 2026
@Valkyrie00

Copy link
Copy Markdown
Contributor

too many unrelated fails.

/override rdoproject.org/github-check

Ack and agreed

@openshift-merge-bot
openshift-merge-bot Bot merged commit e04cbb8 into openstack-k8s-operators:main Aug 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants