Skip to content

Conversation

@clnperez
Copy link
Contributor

because Power VS has some networking limitations, we have been restricted to one cluster/zone for IPI on Power VS. this PR allows re-using an existing VPC, Cloud connection (the GRE tunnel wrapper that allows us to communicate with IBM Cloud components from the Power VS DCs), an a Power Network. It should be noted that the intended use case is that these are from previously-installed OpenShift clusters, not created by hand.

Signed-off-by: Christy Norman [email protected]

@clnperez
Copy link
Contributor Author

Relies on PR #6210

because Power VS has some networking limitations, we have been restricted to one cluster/zone for IPI on Power VS. this PR allows re-using an existing VPC, Cloud connection (the GRE tunnel wrapper that allows us to communicate with IBM Cloud components from the Power VS DCs), and a Power Network. It should be noted that the intended use case is that the user pre-creates the items. If resources from a previous cluster are re-used, and destroy is called on that cluster, the destroy would fail before completion, and the Cloud connection would be deleted for the other clusters. We'll document what is supported in official documentation.

Signed-off-by: Christy Norman <[email protected]>
this is being added as a seperate PR, and whehen it merges, i'll remove this commit. this is included so that the tests run

Signed-off-by: Christy Norman <[email protected]>
@clnperez
Copy link
Contributor Author

reconciling some doc/code comment descriptions and fixed the tf formatting. i think this is good to go for review. @r4f4 anyone else i need to get to look at it on the installer team?

@clnperez
Copy link
Contributor Author

weirdness with prow...

/retest-required

@r4f4
Copy link
Contributor

r4f4 commented Aug 11, 2022

i think this is good to go for review.

Do you mind if we stick a /hold on this PR to make it clear that #6210 has to merge first? lgtms would be lost after the rebase anyway.

@r4f4 anyone else i need to get to look at it on the installer team?

I'd say @rna-afk if he has some free cycles this sprint, given his background of reviewing PowerVS PRs.

@clnperez
Copy link
Contributor Author

@bkhadars @miyamotoh would appreciate a review from you both since this touches code you've submitted or modified in the past

@miyamotoh
Copy link
Contributor

Proposed changes make sense, and no obvious red flags I see by just looking at the diffs. So, LGTM, as long as it's tested working.

@clnperez
Copy link
Contributor Author

/retest-required

@clnperez
Copy link
Contributor Author

lots of Pod pending timeouts here. Hopefully those are fixed by now.

@clnperez
Copy link
Contributor Author

@r4f4 this seems stuck. any ideas?

@r4f4
Copy link
Contributor

r4f4 commented Aug 16, 2022

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 16, 2022

@clnperez: 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-libvirt 6941459 link false /test e2e-libvirt
ci/prow/e2e-openstack 6941459 link false /test e2e-openstack
ci/prow/okd-e2e-aws 6941459 link false /test okd-e2e-aws
ci/prow/e2e-metal-assisted 6941459 link false /test e2e-metal-assisted
ci/prow/e2e-ibmcloud 6941459 link false /test e2e-ibmcloud
ci/prow/e2e-aws-imdsv2 6941459 link false /test e2e-aws-imdsv2
ci/prow/e2e-aws-single-node 6941459 link false /test e2e-aws-single-node
ci/prow/e2e-ovirt 6941459 link false /test e2e-ovirt

Full PR test history. Your PR dashboard.

Details

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.

@r4f4
Copy link
Contributor

r4f4 commented Aug 16, 2022

@r4f4 this seems stuck. any ideas?

It went through now. I guess it had to do with the Prow builder upgrade.

@clnperez
Copy link
Contributor Author

thanks @r4f4

@rna-afk can we get this one in?

variable "pvs_network_name" {
type = string
description = "The name of a pre-created Power VS DHCP Network."
default = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

lets remove the default fields if there is nothing to set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe this is a terraform knoweldge gap for me, but if these arent set to an empty string, they're null, and i thought i'd get a type mismatch later when trying to check if it equals nil or not. i do have to check those to set some resource counts later on

@rna-afk
Copy link
Contributor

rna-afk commented Aug 18, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
@rna-afk
Copy link
Contributor

rna-afk commented Aug 18, 2022

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rna-afk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Aug 18, 2022
@openshift-merge-robot openshift-merge-robot merged commit 44e71ef into openshift:master Aug 19, 2022
patrickdillon pushed a commit to patrickdillon/installer that referenced this pull request Oct 24, 2023
powervs: allow VPC, Cloud connection, and NW re-use
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants