-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-6663: Check platform baremetal settings against default values #6809
OCPBUGS-6663: Check platform baremetal settings against default values #6809
Conversation
@bfournie: This pull request references Jira Issue OCPBUGS-6663, 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: 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 kubernetes/test-infra repository. |
/cc @zaneb @rwsu @andfasano |
@bfournie: This pull request references Jira Issue OCPBUGS-6663, which is valid. 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 kubernetes/test-infra repository. |
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.
/lgtm
fieldPath := field.NewPath("Platform", "Baremetal", "ExternalBridge") | ||
logrus.Warnf(fmt.Sprintf("%s: %s is ignored", fieldPath, baremetal.ExternalBridge)) | ||
} | ||
if baremetal.ExternalMACAddress != "" { |
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.
Good catch. I would have assumed the MAC address would have been blank instead of randomized.
/retest-required |
Spurious warning are being generated for platform baremetal values. Compare the values to default in order to detect the values were set in install-config.
8023836
to
ce99013
Compare
Fixed lint issue |
/lgtm |
/cherry-pick release-4.12 |
@bfournie: once the present PR merges, I will cherry-pick it on top of release-4.12 in a new PR and assign it to you. 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. |
/retest-required |
[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 |
@bfournie: 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. |
@bfournie: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-6663 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. |
@bfournie: new pull request created: #6815 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. |
@@ -187,58 +188,53 @@ func warnUnusedConfig(installConfig *types.InstallConfig) { | |||
switch installConfig.Platform.Name() { | |||
|
|||
case baremetal.Name: | |||
defaultIc := &types.InstallConfig{Platform: types.Platform{BareMetal: &baremetal.Platform{}}} |
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 the case where the provisioning network is disabled and the ProvisioningIP is set, the default ProvisioningNetworkCIDR is derived from network CIDRs in the install-config. We could avoid a warning in that case by starting with a copy of the InstallConfig, instead of a blank one. (However, there will already be warnings about ProvisioningNetwork=disabled and ProvisioningIP in that case, so this is not a big deal.)
Spurious warning are being generated for platform baremetal values. Compare the values to default in order to detect the values were set in install-config.
Since the default values for MAC addresses are generated a valid comparison can't be done, so these checks have been removed.