-
Notifications
You must be signed in to change notification settings - Fork 244
[WIP] OCPBUGS-63472: Include --copy-network for all ABI installations #8155
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
base: master
Are you sure you want to change the base?
Conversation
The --copy-network flag needs to be included so that network configuration changes applied through the agent-tui/nmtui persist after the node reboots.
|
@rwsu: This pull request references Jira Issue OCPBUGS-63472, 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rwsu 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 |
|
/jira refresh |
|
@rwsu: This pull request references Jira Issue OCPBUGS-63472, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8155 +/- ##
==========================================
- Coverage 43.16% 43.15% -0.01%
==========================================
Files 404 404
Lines 69872 69880 +8
==========================================
- Hits 30161 30159 -2
- Misses 37008 37017 +9
- Partials 2703 2704 +1
🚀 New features to boost your workflow:
|
|
@rwsu: 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. |
| // In ABI, the --copy-network flag should always be included in the installer args. | ||
| // The flag is added if the infraenv is found to have static networking configured. | ||
| // See https://github.com/openshift/assisted-service/blob/f026180842bb99cc97d5597fd1bfaa483a55828b/internal/host/hostcommands/install_cmd.go#L368 | ||
| // Here we add a dummy static network config to force the --copy-network flag |
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.
Based on our previous discussion, I think that a slightly safer implementation could be the check the presence of any keyfile in the live environment to conditionally decide to set the infraEnvParams.InfraenvCreateParams.StaticNetworkConfig: that should cover both the case when the user defines some static network configuration via install-config/agent-config file, either when it's just added via agent TUI (ignoring instead when it's not set all).
| // Here we add a dummy static network config to force the --copy-network flag | ||
| // to be added. The dummy network config is not applied to the hosts. | ||
| netYaml := `interfaces: | ||
| - ipv4: |
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.
I like the idea of a dummy network config, but I'd expect something simpler or more "dummy", ie something like:
- routes:
Right now it's just evaluated later by AS (and in case of ABI never applied), but anyhow I'd prefer to have a really simple definition
| }, | ||
| }, | ||
| } | ||
| infraEnvParams.InfraenvCreateParams.StaticNetworkConfig = dummyStaticNetworkConfig |
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.
In general this solution may work from 4.21+, where we have in plan to enable the infraenv late binding. But I don't think it will work for 4.20, where currently the registerIfnraEnv step is ignored
The --copy-network flag needs to be included so that network configuration changes applied through the agent-tui/nmtui persist after the node reboots.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs, README, etc)Reviewers Checklist