Skip to content

[cifmw_cephadm] Add fallback when cifmw_cephadm_rpm_url 404s#4030

Open
fultonj wants to merge 1 commit into
openstack-k8s-operators:mainfrom
fultonj:fallback_cifmw_cephadm_rpm_url
Open

[cifmw_cephadm] Add fallback when cifmw_cephadm_rpm_url 404s#4030
fultonj wants to merge 1 commit into
openstack-k8s-operators:mainfrom
fultonj:fallback_cifmw_cephadm_rpm_url

Conversation

@fultonj

@fultonj fultonj commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

If cifmw_cephadm_rpm_url returns a 404, strip the filename from the URL to get the parent directory, fetch the index page, and search it for a cephadm RPM. If one is found, warn and update cifmw_cephadm_rpm_url to the discovered URL. If none is found, fail with a descriptive error.

This handles cases where the exact RPM version in the URL has changed (e.g. a compose rebuild with a new NVR) but a valid cephadm package still exists in the same directory.

Related-Issue: OSPRH-31757

@openshift-ci

openshift-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tosky for approval. For more information see the Code Review Process.

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

Details Needs approval from an approver in each of these files:

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

@fultonj fultonj requested a review from tosky July 2, 2026 15:30
If `cifmw_cephadm_rpm_url` returns a 404, strip the filename from
the URL to get the parent directory, fetch the index page, and
search it for a cephadm RPM. If one is found, warn and update
`cifmw_cephadm_rpm_url` to the discovered URL. If none is found,
fail with a descriptive error.

This handles cases where the exact RPM version in the URL has
changed (e.g. a compose rebuild with a new NVR) but a valid
cephadm package still exists in the same directory.

Related-Issue: OSPRH-31757
Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: John Fulton <fulton@redhat.com>
@fultonj fultonj force-pushed the fallback_cifmw_cephadm_rpm_url branch from f897237 to f66160b Compare July 2, 2026 15:36
@fultonj fultonj changed the title fmw_cephadm] Add fallback when cifmw_cephadm_rpm_url 404s [cifmw_cephadm] Add fallback when cifmw_cephadm_rpm_url 404s Jul 2, 2026
@fultonj fultonj requested a review from fmount July 2, 2026 21:16
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.

1 participant