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

openstack: Allow to skip pre-flight validations #4452

Merged
merged 1 commit into from Dec 5, 2020

Conversation

pierreprinetti
Copy link
Member

@pierreprinetti pierreprinetti commented Dec 4, 2020

Skip pre-flight validations when the development-only variable
OS_SKIP_PREFLIGHT_VALIDATIONS=1 is found in the environment.

Skipping pre-flight validations is essential to testing manifest
generation when the exotic settings under test are not available in the
CI infrastructure.

Implements OSASINFRA-2194

/label platform/openstack

@pierreprinetti
Copy link
Member Author

/cc mandre mdbooth

@EmilienM
Copy link
Member

EmilienM commented Dec 4, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2020
@pierreprinetti
Copy link
Member Author

/cc @staebler
/hold

Sorry to ping you for a platform-specific change, but this flag I'm introducing is potentially controversial and I want to be sure I'm not doing something wrong.

Here I introduce an undocumented, dev-only environment variable for disabling pre-flight validations. My use-case: I want to test manifest generation for Nova availability zones, and I don't want to need a cloud with actual AZs for testing the manifests.

Is this change acceptable?

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 2020
@stbenjam
Copy link
Member

stbenjam commented Dec 4, 2020

This sounds similar to something we had to solve for baremetal IPI. We only do data validations (formatting, presence, etc) in the Platform validator, and moving the rest to the Provisioning validators which only happen at create cluster: #3851

@pierreprinetti
Copy link
Member Author

moving the rest to the Provisioning validators

Thank you! I'm hoping that I can merge this dev flag before FF, but yours sounds like a good proper solution for when master is open again.

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 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.

I'm curious what the discussions were initially around doing these validations every time that the install config is generated or loaded rather than waiting until it is time to actually create the cluster. I've always found it a bit strange that I could not create manifests without having a real server to talk to. While I would like to generally discourage the use of environment variables to direct behavior, I can live with this as a short-term solution until we can come up with a better solution--ideally usable by all platforms.

/hold cancel

pkg/asset/installconfig/openstack/validate.go Outdated Show resolved Hide resolved
Skip pre-flight validations when the development-only variable
`OPENSHFIT_INSTALL_SKIP_PREFLIGHT_VALIDATIONS=1` is found in the
environment.

Skipping pre-flight validations is essential to testing manifest
generation when the exotic settings under test are not available in the
CI infrastructure.

Implements OSASINFRA-2194
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2020
@pierreprinetti
Copy link
Member Author

strange that I could not create manifests without having a real server to talk to

agree. we'll revisit that. Thank you.

@iamemilio
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 4, 2020
@iamemilio
Copy link

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iamemilio

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 Dec 4, 2020
@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.

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.

@pierreprinetti
Copy link
Member Author

/skip

@pierreprinetti
Copy link
Member Author

/test e2e-aws

@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 Dec 5, 2020

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

Test name Commit Details Rerun command
ci/prow/e2e-ovirt 39478ff link /test e2e-ovirt
ci/prow/e2e-crc 39478ff link /test e2e-crc
ci/prow/e2e-libvirt 39478ff 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.

@openshift-merge-robot openshift-merge-robot merged commit 8f2af9d into openshift:master Dec 5, 2020
@pierreprinetti pierreprinetti deleted the OSASINFRA-2194 branch December 5, 2020 18:34
@pierreprinetti
Copy link
Member Author

pierreprinetti commented Dec 7, 2020

@stbenjam @staebler
https://issues.redhat.com/browse/OSASINFRA-2206 Thank you for the feedback.

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/openstack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants