-
Notifications
You must be signed in to change notification settings - Fork 1.5k
AGENT-280: Generate mirror config from install-config #6098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AGENT-280: Generate mirror config from install-config #6098
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
1da8ce2 to
ea138ad
Compare
ea138ad to
9359be5
Compare
9359be5 to
6289a47
Compare
data/data/agent/systemd/units/assisted-service.service.template
Outdated
Show resolved
Hide resolved
6289a47 to
7f3893c
Compare
Use the podman default, with no unqualified-search-registries.
When the user runs the "agent create cluster-manifests" command, also generate the mirror configuration from the install-config if it is available.
7f3893c to
fe23a37
Compare
Ideally we would just always mount the same /etc/containers/ config (including registries.conf) and CA certificates into the assisted-service container as we have in the live ISO. Both are pulling images from the same location (since the assisted-service image itself will come from the release payload). However, the assisted-service code fails if there are no registry mirrors configured in registries.conf, so continue to make just this part conditional on there being some mirroring settings.
ca08f38 to
d31b43a
Compare
Unlike with 'cluster-manifests', we'll never need to read user-supplied files with unknown names from the 'mirror' directory, so there is no point having an extra asset to collect data from the two mirror config assets together.
It's not always obvious to users what files they can provide, so generate an empty ca-bundle.crt file in the "agent create cluster-manifests" command if there is no additionalTrustBundle specified in the install-config.
d31b43a to
c5fb531
Compare
|
/lgtm |
|
I tested this with openshift-metal3/dev-scripts#1424 with MIRROR_IMAGES=true and verified it works as expected, up to the point where we hit the assisted-service ICSP issue (https://issues.redhat.com/browse/MGMT-10209) |
rwsu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that the issues have been fixed.
/approve
|
/assign @jhixson74 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon, rwsu 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 |
|
Need openshift/release#30488 to fix the tests. |
|
/test e2e-agent-compact |
|
/test verify-vendor |
|
@zaneb: 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/test-infra repository. I understand the commands that are listed here. |
Generate the mirror configuration (
mirror/registries.confandmirror/ca-bundle.crt) from the install-config if it is supplied.(Note: depends on #6087)