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

OCPBUGS-33961: OCPBUGS-33890: SPLAT-1469: Remove vsphere terraform #8254

Merged

Conversation

jcpowermac
Copy link
Contributor

@jcpowermac jcpowermac commented Apr 10, 2024

This PR:

  • Removes all vSphere terraform providers
  • Removes all vSphere-specific terraform project files
  • Modifies vsphere-specific installer terraform stages and asset generation.

@openshift-bot openshift-bot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 10, 2024
@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 10, 2024

@jcpowermac: This pull request references SPLAT-1469 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

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.

@jcpowermac
Copy link
Contributor Author

/test altinfra-e2e-vsphere-capi-ovn

@jcpowermac
Copy link
Contributor Author

/test altinfra-e2e-vsphere-capi-ovn

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 11, 2024

@jcpowermac: This pull request references SPLAT-1469 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

In response to this:

This PR:

  • All vSphere terraform providers
  • All vSphere-specific terraform project files
  • Modifies vsphere-specific installer terraform stages and asset generation.

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.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 11, 2024

@jcpowermac: This pull request references SPLAT-1469 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set.

In response to this:

This PR:

  • Removes all vSphere terraform providers
  • Removes all vSphere-specific terraform project files
  • Modifies vsphere-specific installer terraform stages and asset generation.

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.

@jcpowermac
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 22, 2024

@jcpowermac: This pull request references SPLAT-1469 which is a valid jira issue.

In response to this:

/jira refresh

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.

@jcpowermac
Copy link
Contributor Author

@r4f4 since time is short can you take a look and see if this seems sane?

Since this PR will break periodics we can't actually merge this until capi is built by default.

@jcpowermac
Copy link
Contributor Author

/test altinfra-e2e-vsphere-capi-ovn

@r4f4
Copy link
Contributor

r4f4 commented Apr 22, 2024

LGTM. I'll tag when we're closer to merging it.
Edit: actually, we cannot fail to generate the terraform variables since that's a req for vsphere/capi:
https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_installer/8254/pull-ci-openshift-installer-master-altinfra-e2e-vsphere-capi-ovn/1782452952850501632#1:build-log.txt%3A173

I'll check if there is a better way of failing in the terraform case.

@r4f4
Copy link
Contributor

r4f4 commented Apr 23, 2024

@jcpowermac sorry for the delay on getting back to you on this.
I don't have access to a vcenter, so I couldn't test it with vsphere. Instead, I did the same to AWS. Here's what I suggest:

  1. On pkg/asset/cluster/tfvars/tfvars.go you go back to what you had before with return nil
  2. On pkg/infrastructure/platform/platform.go you change the line:
-               return terraform.InitializeProvider(vsphere.PlatformStages), nil
+               return nil, fmt.Errorf("installing on vSphere via terraform is no longer supported")
  1. As a bonus of 2), you can now remove pkg/terraform/stages/vsphere

This is what I can with the above changes for AWS:

 ./openshift-install create cluster
INFO Credentials loaded from the "default" profile in file "/run/secrets/aws_credentials"
INFO Creating infrastructure resources...
FATAL failed to fetch Cluster: failed to generate asset "Cluster": error getting infrastructure provider: installing on AWS via terraform is no longer supported

and the capi install works as expected.

In the end I think none of this will matter because capi-vsphere will be the default path and there will be no way to trigger the tf path.

@jcpowermac
Copy link
Contributor Author

/test altinfra-e2e-vsphere-capi-ovn

@jcpowermac sorry for the delay on getting back to you on this.

no worries, thanks for sending suggestions!

@jcpowermac
Copy link
Contributor Author

👋 buh bye terraform

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 2, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 9, 2024
@jcpowermac jcpowermac changed the title SPLAT-1469: Remove vsphere terraform OCPBUGS-33890: SPLAT-1469: Remove vsphere terraform May 17, 2024
@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label May 17, 2024
@openshift-ci openshift-ci bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label May 17, 2024
@sadasu
Copy link
Contributor

sadasu commented May 17, 2024

/override ci/prow/shellcheck

Copy link
Contributor

openshift-ci bot commented May 17, 2024

@sadasu: Overrode contexts on behalf of sadasu: ci/prow/shellcheck

In response to this:

/override ci/prow/shellcheck

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.

@sadasu
Copy link
Contributor

sadasu commented May 17, 2024

/approve

Copy link
Contributor

openshift-ci bot commented May 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sadasu

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2024
@sadasu
Copy link
Contributor

sadasu commented May 17, 2024

/override ci/prow/shellcheck

shellcheck was failing due to:
./docs/user/agent/add-node/node-joiner-monitor.sh:10:13: warning: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. [SC2124]
which is unrelated to these changes.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD fde8335 and 2 for PR HEAD e5a4c42 in total

@jcpowermac
Copy link
Contributor Author

/test okd-images

1 similar comment
@jcpowermac
Copy link
Contributor Author

/test okd-images

Copy link
Contributor

openshift-ci bot commented May 18, 2024

@jcpowermac: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agent-compact-ipv4 23a5e69 link true /test e2e-agent-compact-ipv4
ci/prow/okd-e2e-aws-ovn-upgrade e5a4c42 link false /test okd-e2e-aws-ovn-upgrade
ci/prow/e2e-vsphere-zones-techpreview e5a4c42 link false /test e2e-vsphere-zones-techpreview

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.

@jcpowermac
Copy link
Contributor Author

@sadasu @patrickdillon can we override okd-images?

@patrickdillon
Copy link
Contributor

/override ci/prow/okd-images

Copy link
Contributor

openshift-ci bot commented May 19, 2024

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/okd-images

In response to this:

/override ci/prow/okd-images

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.

@openshift-merge-bot openshift-merge-bot bot merged commit dcd7435 into openshift:master May 19, 2024
36 of 38 checks passed
@openshift-ci-robot
Copy link
Contributor

@jcpowermac: Jira Issue OCPBUGS-33890: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-33890 has been moved to the MODIFIED state.

In response to this:

This PR:

  • Removes all vSphere terraform providers
  • Removes all vSphere-specific terraform project files
  • Modifies vsphere-specific installer terraform stages and asset generation.

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.

@jcpowermac
Copy link
Contributor Author

/cherrypick release-4.16

@jcpowermac
Copy link
Contributor Author

/cherry-pick release-4.16

@jcpowermac
Copy link
Contributor Author

its going to work this time right? 🤞
/cherrypick release-4.16

@jcpowermac
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@jcpowermac: Jira Issue OCPBUGS-33890 is in an unrecognized state (MODIFIED) and will not be moved to the MODIFIED state.

In response to this:

/jira refresh

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.

@jcpowermac
Copy link
Contributor Author

/cherrypick release-4.16

@jcpowermac
Copy link
Contributor Author

/jira cherrypick OCPBUGS-33890

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 20, 2024

@jcpowermac: Jira Issue OCPBUGS-33890 has been cloned as Jira Issue OCPBUGS-33961. Will retitle bug to link to clone.
/retitle OCPBUGS-33961: OCPBUGS-33890: SPLAT-1469: Remove vsphere terraform

In response to this:

/jira cherrypick OCPBUGS-33890

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.

@openshift-ci openshift-ci bot changed the title OCPBUGS-33890: SPLAT-1469: Remove vsphere terraform OCPBUGS-33961: OCPBUGS-33890: SPLAT-1469: Remove vsphere terraform May 20, 2024
@openshift-ci-robot
Copy link
Contributor

@jcpowermac: Jira Issue OCPBUGS-33961: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-33961 has been moved to the MODIFIED state.

In response to this:

This PR:

  • Removes all vSphere terraform providers
  • Removes all vSphere-specific terraform project files
  • Modifies vsphere-specific installer terraform stages and asset generation.

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.

neisw added a commit to neisw/installer that referenced this pull request May 20, 2024
…emove-terraform"

This reverts commit dcd7435, reversing
changes made to fde8335.
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-installer-altinfra-container-v4.17.0-202405201608.p0.gdcd7435.assembly.stream.el9 for distgit ose-installer-altinfra.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants