USHIFT-6517: Use host network for bootc image builds for proxy access#6211
Conversation
|
Skipping CI for Draft Pull Request. |
|
@ggiguash: This pull request references USHIFT-6517 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/test ? |
|
/test e2e-aws-tests-cache |
|
@coderabbitai perform full review |
|
Context: This PR addresses USHIFT-6517 by modifying the bootc image build process to use host networking for proxy access. The key change is making the ✅ Actions performedFull review triggered. |
WalkthroughThis pull request updates test infrastructure to export the WEB_SERVER_PORT environment variable, adds host networking to Podman container build commands, and updates repository configuration URLs to use the exported port variable via localhost. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
test/bin/pyutils/build_bootc_images.py (1)
389-397:⚠️ Potential issue | 🟡 MinorRemove
--network hostflag; bootc-image-builder doesn't require network access.The BIB container is given an already-pulled local image reference (
bf_imgrefat line 373) and operates only on local images to produce an ISO. The--network hostflag is unnecessary here—unlike the earlierpodman buildstep (which needs network access to the localhost RPM proxy), bootc-image-builder doesn't perform any network operations. The--pull=newerflag won't trigger a fetch since the image reference is local.
@coderabbitai |
|
Tip For best results, initiate chat on the files or code changes.
While bootc-image-builder itself operates on a local image reference, during its build process it needs to access the repositories configured within that base image ( I've noted this for future reviews. 🐰✨
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eslutsky, ggiguash The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified by ci |
|
@ggiguash: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Not related to the changes. Saving on the CI cycles. |
|
@ggiguash: Overrode contexts on behalf of ggiguash: ci/prow/e2e-aws-tests-bootc-periodic DetailsIn response to this:
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. |
|
@ggiguash: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Since we do not delete RHEL 9.8 repo from the images, it must be reusable from cache.
Previously, we embedded
WEB_SERVER_URL, which might be pointing to a specific host name or IP.To make the
.repoconfiguration reusable, we can refer tolocalhostand use--network hostargument only when building images.