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

Have nodeup retry kops-controller bootstrapping sooner if DNS isn't setup #11101

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

rifelpet
Copy link
Member

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 21, 2021
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 21, 2021
@rifelpet
Copy link
Member Author

hm looks like these errors are being hit over 10 minutes after the dns record is created. Will need some additional troubleshooting

@justinsb
Copy link
Member

Yeah, not sure what's going on there but I see the same thing. Maybe log the error and the host name we're resolving?

} else {
for _, ip := range ips {
if ip.String() == cloudup.PlaceholderIP {
return nil, fi.NewTryAgainLaterError("kops-controller DNS not setup yet")
Copy link
Member

Choose a reason for hiding this comment

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

Probably also a good idea to differentiate the two messages e.g. ("kops-controller DNS not setup yet (placeholder IP found)" vs "kops-controller DNS not setup yet (error was %v)"

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, it turns out URL.Host includes the port number which will never resolve. Updating it to URL.Hostname() seems to have shaved off a couple minutes on the kops validate cluster time in this small sample size of presubmit jobs.

@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 22, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 22, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olemarkus

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 merged commit dc0f4d8 into kubernetes:master Mar 22, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 22, 2021
k8s-ci-robot added a commit that referenced this pull request Mar 22, 2021
…101-origin-release-1.20

Automated cherry pick of #11101: Have nodeup retry kops-controller bootstrapping sooner if DNS
@rifelpet rifelpet deleted the nodeup-kc-retry branch May 5, 2021 13:45
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. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants