Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

check instance-status.status,Values=ok before SSH #203

Closed
wants to merge 0 commits into from

Conversation

tedteng
Copy link
Contributor

@tedteng tedteng commented Jun 1, 2020

What this PR does / why we need it:
check instance-status.status,Values=ok before SSH AWS instance

Which issue(s) this PR fixes:
Fixes #191

Special notes for your reviewer:

Release note:


@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 1, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 1, 2020
README.md Outdated
@@ -154,7 +154,7 @@ Targets represent a hierarchical structure of resources. On top, there is/are th
`gardenctl ls issues`
- Drop an element from target stack
`gardenctl drop`
- Open a shell to a cluster node
Copy link
Contributor

Choose a reason for hiding this comment

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

Would leave it shell as we don't use ssh forwarding over a pod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, I will rollback this change.

@@ -284,6 +282,23 @@ func (a *AwsInstanceAttribute) createBastionHostInstance() {
capturedOutput, err := captured()
checkError(err)
a.BastionIP = capturedOutput
// check instance-status.status,Values=ok before SSh"
Copy link
Contributor

Choose a reason for hiding this comment

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

I tested it with the instance-status.status check and it takes a long time until the instance status check is successful. Not sure if we should really add this check because we can ssh onto the instance even before the check is ready. The operators will probably get annoyed by waiting 4-5 minutes to ssh to the instance. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

em, I will double-check it again.
because last time I failed to use ssh onto the instance even before the check is ready

Copy link
Contributor

Choose a reason for hiding this comment

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

Please double check, I tested it and for me it worked before the status check was succesful, but it is good if you can confirm it as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes you are right, It may be network issue when I testing before in APJ region.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

close it, and Please have review the PR only for bastioninstan name check #207

@tedteng tedteng closed this Jun 8, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gardenctl ssh does not work
4 participants