-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Fixed infinite loop in cluster validation. #38814
Fixed infinite loop in cluster validation. #38814
Conversation
9a37bf5
to
af4eedf
Compare
Jenkins GCE Node e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins GKE smoke e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GKE smoke e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GCE e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins CRI GCE Node e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins verification failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE etcd3 e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins Kubemark GCE e2e failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
Jenkins unit/integration failed for commit 9a37bf557020507dfa2344bf6fcacf7b012ce61c. Full PR test history. The magic incantation to run this job again is |
@@ -91,7 +93,12 @@ while true; do | |||
# Suppress errors from kubectl output because during cluster bootstrapping | |||
# for clusters where the master node is registered, the apiserver will become | |||
# available and then get restarted as the kubelet configures the docker bridge. | |||
node=$(kubectl_retry get nodes) || continue | |||
node=$(kubectl_retry get nodes) || if [[ "${attempt}" -gt "${MAX_ATTEMPTS}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this simpler - for example don't mix assignment and if with exit and continue. Its hard to tell what this thing is exactly doing without good bash knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some refactoring, but I'm not sure if it is much better.
af4eedf
to
8df4911
Compare
Fixed infinite loop in cluster validation when getting nodes failed.
8df4911
to
3dbfa94
Compare
LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Removing label |
Removing label |
Cherry-picked to 1.5 in #39137 |
Fixed infinite loop in cluster validation when getting nodes failed.