Skip to content
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

baremetal: when networking is disabled make the bootstrap provisioning ip optional #4390

Merged
merged 3 commits into from
Nov 20, 2020
Merged

baremetal: when networking is disabled make the bootstrap provisioning ip optional #4390

merged 3 commits into from
Nov 20, 2020

Conversation

asalkeld
Copy link
Contributor

This is needed by the assisted installer, so that it does not have to create static ips.

/cc @zaneb @hardys

@asalkeld
Copy link
Contributor Author

/retest

@hardys
Copy link
Contributor

hardys commented Nov 18, 2020

/label platform/baremetal

/cc @stbenjam

@openshift-ci-robot openshift-ci-robot added the platform/baremetal IPI bare metal hosts platform label Nov 18, 2020
@stbenjam
Copy link
Member

stbenjam commented Nov 18, 2020

Thanks @asalkeld, looks reasonable but we have to at least change this validation:

if err := validateIPNotinMachineCIDR(p.BootstrapProvisioningIP, n); err != nil {
allErrs = append(allErrs, field.Invalid(fldPath.Child("bootstrapProvisioningIP"), p.BootstrapProvisioningIP, err.Error()))
}

I get this error when testing:

2020-11-18 08:44:02 level=fatal msg=failed to fetch Cluster: failed to fetch dependency of "Cluster": failed to generate asset "Platform Provisioning Check": platform.baremetal.bootstrapProvisioningIP: Invalid value: "": provisioning network is disabled, IP expected to be in one of the machine networks: fd2e:6f44:5dd8:c956::/120

You can test your code by removing this line from dev-scripts

https://github.com/openshift-metal3/dev-scripts/blob/38bb37338a9e69cfa312f27d5612c7fa67d0df8b/ocp_install_env.sh#L81

and checking out your installer code to $GOPATH/src/github.com/openshift/installer

and:

export KNI_INSTALL_FROM_GIT=true
export PROVISIONING_NETWORK_PROFILE=Disabled

@asalkeld
Copy link
Contributor Author

thanks for the review @stbenjam
I have an assisted installer setup.. so i since have tested by running a " create ignition-configs" and confirming no validation errors and the output. ( startironic.sh has the interface section missing)

@stbenjam
Copy link
Member

/lgtm

Nice, I get past bootstrap without the dedicated IP.

/assign @staebler @abhinavdahiya

Would one of you mind taking a look? It touches cluster/tfvars so we can't approve it ourselves. Thanks!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2020
Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: staebler

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@hardys
Copy link
Contributor

hardys commented Nov 19, 2020

/lgtm

I also tested locally and this works as expected, thanks @asalkeld!

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@stbenjam
Copy link
Member

@asalkeld In preparation for this landing, would you mind putting up a PR to dev-scripts to pull out the bootstrapProvisioningIP on 4.7?

https://github.com/openshift-metal3/dev-scripts/blob/38bb37338a9e69cfa312f27d5612c7fa67d0df8b/ocp_install_env.sh#L81

@hardys
Copy link
Contributor

hardys commented Nov 19, 2020

@asalkeld In preparation for this landing, would you mind putting up a PR to dev-scripts to pull out the bootstrapProvisioningIP on 4.7?

https://github.com/openshift-metal3/dev-scripts/blob/38bb37338a9e69cfa312f27d5612c7fa67d0df8b/ocp_install_env.sh#L81

@stbenjam @asalkeld note that we probably need to base that change on openshift-metal3/dev-scripts#1146 (or land that first) because the current OPENSHIFT_VERSION variable doesn't work in CI.

@asalkeld
Copy link
Contributor Author

@asalkeld In preparation for this landing, would you mind putting up a PR to dev-scripts to pull out the bootstrapProvisioningIP on 4.7?
https://github.com/openshift-metal3/dev-scripts/blob/38bb37338a9e69cfa312f27d5612c7fa67d0df8b/ocp_install_env.sh#L81

@stbenjam @asalkeld note that we probably need to base that change on openshift-metal3/dev-scripts#1146 (or land that first) because the current OPENSHIFT_VERSION variable doesn't work in CI.

openshift-metal3/dev-scripts#1156

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
Copy link
Contributor

openshift-merge-robot commented Nov 20, 2020

@asalkeld: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-workers-rhel7 be2d969 link /test e2e-aws-workers-rhel7
ci/prow/e2e-libvirt be2d969 link /test e2e-libvirt

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.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 68282c1 into openshift:master Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. platform/baremetal IPI bare metal hosts platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants