Skip to content

Conversation

@patrickdillon
Copy link
Contributor

Adds support for the gather command for the GCP platform.

There might be a more elegant way to parse the terraform state file for GCP using the unstructured package, but this implementation works and has error checking at each step.

CORS-1123

/label platform/google

Include GCP platform in gather command. Add logic to lookup bootstrap and master ip addresses from terraform state file according to the gcp schema.
Error message displays when gather command failed and no ssh keys were passed. The message recommends ensuring ssh keys were in keyring or specifying the key in a flag.
@openshift-ci-robot openshift-ci-robot added platform/google size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 17, 2019
@patrickdillon
Copy link
Contributor Author

/cc @jstuever (resident gather expert)

@abhinavdahiya
Copy link
Contributor

/assign @jstuever

@patrickdillon
Copy link
Contributor Author

/test e2e-aws

@patrickdillon
Copy link
Contributor Author

@abhinavdahiya asked me to look into how the bootstrap node having an ephemeral public ip address could affect the gather command: it should not be an issue.

An ephemeral ip is only released if the instance is stopped. If the instance is reset the ip address is maintained. I tested this. Docs:

Ephemeral external IP address are released from a resource if you delete the resource. For VM instances, if you stop the instance, the IP address is also released. Once you restart the instance, it is assigned a new ephemeral external IP address.

@jstuever
Copy link
Contributor

Are we concerned a user may stop their instance? If so, we may want to spin off a bug to set a static IP here.

@jstuever
Copy link
Contributor

/lgtm

I'm with you, the unraveling is a bit clunky and I'd hope there is a cleaner way. But, it works.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2019
@jstuever
Copy link
Contributor

/cc @abhinavdahiya for approval

@openshift-ci-robot
Copy link
Contributor

@jstuever: GitHub didn't allow me to request PR reviews from the following users: for, approval.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @abhinavdahiya for approval

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.

@abhinavdahiya
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, jstuever, patrickdillon

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

openshift-ci-robot commented Jul 17, 2019

@patrickdillon: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 00307d1 link /test e2e-aws-scaleup-rhel7

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@patrickdillon
Copy link
Contributor Author

/test e2e-aws

@openshift-merge-robot openshift-merge-robot merged commit 526edca into openshift:master Jul 18, 2019
@patrickdillon patrickdillon deleted the gather-gcp-cors-1123 branch October 24, 2019 18:22
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/google size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants