-
Notifications
You must be signed in to change notification settings - Fork 413
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
Bug 1857162: daemon: inject proxy vars into MCD container #2037
Bug 1857162: daemon: inject proxy vars into MCD container #2037
Conversation
@yuqi-zhang: This pull request references Bugzilla bug 1857162, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In 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/test-infra repository. |
Tested that the env vars are injected correctly, and that with the env vars proxy should be able to pull the image. Tested the image pull manually (successful) on a failing cluster but was not able to do a full test on a failing proxy cluster, will try to set it up if possible but I'm pretty confident this should work. Also added a comment to the OS extraction function so we can keep this in mind if we ever rework it |
With the introduction of extensions and reworking of OS updates in openshift#1941, we now run `oc/podman` directly in the MCD to fetch the OS image. Thus we need to inject the proxy env vars into the container via the daemonset definition, otherwise image pulls will fail. Signed-off-by: Yu Qi Zhang <[email protected]>
6413150
to
ea0f893
Compare
@yuqi-zhang: This pull request references Bugzilla bug 1857162, which is valid. 3 validation(s) were run on this bug
In 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/test-infra repository. |
/approve |
/hold did not pass on an upgrade in proxy, investigating |
Sync env var changes in the daemonset definition, so injected proxy env var updates will get applied upon an upgrade. Signed-off-by: Yu Qi Zhang <[email protected]>
Ive tested this to work on AWS again, and it properly synced the env var on an upgrade. Will test on Azure before removing the hold. Also note that we should eventually look to either update or remove our lib code but that's not in scope of this PR |
@yuqi-zhang: This pull request references Bugzilla bug 1857162. The bug has been updated to no longer refer to the pull request using the external bug tracker. In 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/test-infra repository. |
@yuqi-zhang: This pull request references Bugzilla bug 1857162, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In 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/test-infra repository. |
/hold cancel Can confirm this successfully passed an upgrade on an azure proxy env |
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.
Looks great, thanks Jerry for fixing it!
/lgtm
@yuqi-zhang Curious if we have any public documentation somewhere to run OCP cluster in proxy environment, this can help us in future to do proxy related testing. |
/retest Please review the full test history for this PR and help us cut down flakes. |
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.
Overall LGTM but does seem like we should take on switching to library-go after branching for 4.6.
existingCurr = &existing.Env[len(existing.Env)-1] | ||
} | ||
ensureEnvVar(modified, existingCurr, required) | ||
} |
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.
This doesn't support removing variables right? Which is probably OK short term but seems like a trap if e.g. someone wants to remove a proxy.
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.
Hmm yeah I just copied the Ports
section below but now you mentioned it we don't check for removals. I think that's a problem for all changes applied to the resource. Maybe merging with upstream library-go will fix this
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, runcom, sinnykumari, yuqi-zhang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Unfortunately not really. The AWS cluster-bot proxy env is the closest we have but it doesn't use a real proxy today. I talked to Eric Wolinetz and he is looking to get it updated. For this PR specifically I requested some environments from QE. |
/retest Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@yuqi-zhang: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
@yuqi-zhang: All pull requests linked via external trackers have merged: Bugzilla bug 1857162 has been moved to the MODIFIED state. In 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/test-infra repository. |
With the introduction of extensions and reworking of OS updates in
#1941,
we now run
oc/podman
directly in the MCD to fetch the OS image.Thus we need to inject the proxy env vars into the container via the
daemonset definition, otherwise image pulls will fail.