-
Notifications
You must be signed in to change notification settings - Fork 412
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
OCPBUGS-49894: Ensure proxy config exists when reverting from OCL to non-OCL #4833
base: master
Are you sure you want to change the base?
OCPBUGS-49894: Ensure proxy config exists when reverting from OCL to non-OCL #4833
Conversation
This was needed because if there was a problem rebooting, the MCDRebootError would never be surfaced. Additionally, the degraded message would not include that. This fixes that problem by adding revert code and also makes the OCL update path more similar to the non-OCL update path.
@cheesesashimi: This pull request references Jira Issue OCPBUGS-49894, which is invalid:
Comment The bug has been updated to 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 openshift-eng/jira-lifecycle-plugin repository. |
12b8b7f
to
309ea69
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi 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 |
When a proxy config is used with OCL, the proxy config disappears from the nodes' disk when the node reboots itself for the same reason that makes the revert systemd service needed. This writes the proxy config to the node (when enabled) to a custom location before launching the revert service.
309ea69
to
3112f68
Compare
@cheesesashimi: 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-sigs/prow repository. I understand the commands that are listed here. |
- What I did
I added the proxy config to the revert systemd service that gets written whenever one reverts from OCL to non-OCL. This is needed for the same reason that the revert systemd mechanism is; after rebooting into the factory OS, all of the configs are gone and the node effectively needs to be re-bootstrapped. While this works, the proxy config was not being recognized since it was effectively not there.
Additionally, this moves file management for all of the files needed into the RevertService implementation and outputs these files as part of the Ignition config that gets written to disk. This consolidates that process and makes things a bit easier to reason about.
Note: This PR is based upon #4825, which must land before this PR does.
- How to verify it
- Description for the changelog
Ensure proxy config exists when reverting from OCL to non-OCL