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

test/e2e/framework: validate external node IPs #73436

Closed
wants to merge 1 commit into from
Closed

test/e2e/framework: validate external node IPs #73436

wants to merge 1 commit into from

Conversation

crawford
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:
It is possible for a node not to have an external IP address. This extra
check is copied directly from GetNodeInternalIP and prevents errors like
the following:

INFO: Getting external IP address for ip-10-0-133-82.ec2.internal
error dialing core@:22: 'dial tcp :22: connect: connection refused'

In this case, there was no public IP for this host, but
GetNodeExternalIP returned ":22" instead of an error.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
None

Does this PR introduce a user-facing change?:

NONE

It is possible for a node not to have an external IP address. This extra
check is copied directly from GetNodeInternalIP and prevents errors like
the following:

    INFO: Getting external IP address for ip-10-0-133-82.ec2.internal
    error dialing core@:22: 'dial tcp :22: connect: connection refused'

In this case, there was no public IP for this host, but
GetNodeExternalIP returned ":22" instead of an error.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 28, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @crawford. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 28, 2019
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

thanks @crawford

/lgtm
/ok-to-test
/priority backlog

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 29, 2019
@smarterclayton
Copy link
Contributor

/retest

@crawford
Copy link
Contributor Author

Based on https://gubernator.k8s.io/builds/kubernetes-jenkins/pr-logs/directory/pull-kubernetes-e2e-kops-aws, it looks like e2e-kops-aws fails quite a bit. I don't think this change is related to the failures I'm seeing.

/retest

@crawford
Copy link
Contributor Author

/retest

@k8s-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 7378ebc link /test pull-kubernetes-e2e-kops-aws

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.

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.

@smarterclayton
Copy link
Contributor

Only concern here is if this causes some of the extended suites to start failing post submit.

@kubernetes/sig-testing-pr-reviews who is most likely to know what the odds are of a break (testing a cluster with no external ip but a reachable internal ip)?

@BenTheElder
Copy link
Member

kops AWS is #73444
not sure how likely this is to break, at least it looks like it won't break what we're already doing.

@timothysc
Copy link
Member

/approve
/hold

I'd be surprised if this causes other failures, feel free to unhold on all clear.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 6, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crawford, timothysc

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2019
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 21, 2019
@k8s-ci-robot
Copy link
Contributor

@crawford: PR needs rebase.

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.

@crawford
Copy link
Contributor Author

Superseded by #76637.

@k8s-ci-robot
Copy link
Contributor

@crawford: Closed this PR.

In response to this:

Superseded by #76637.

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.

@crawford crawford deleted the external-ip branch April 22, 2019 03:46
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants