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

Verify Apiserver in docker-env #9938

Closed
medyagh opened this issue Dec 11, 2020 · 5 comments · Fixed by #10021
Closed

Verify Apiserver in docker-env #9938

medyagh opened this issue Dec 11, 2020 · 5 comments · Fixed by #10021
Assignees
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@medyagh medyagh added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Dec 11, 2020
@azhao155
Copy link
Contributor

/assign azhao155

@prezha
Copy link
Contributor

prezha commented Dec 12, 2020

@azhao155 i was looking at #9936 where the TestFunctional/parallel/ComponentHealth fails because of expected component "kube-apiserver" was not found error (https://github.com/kubernetes/minikube/runs/1540063530#step:7:140), and, as @medyagh rightly pointed out, that should not happen as TestFunctional/serial/StartWithProxy was run before it with --wait=true flag set (that should ensure, amongst others, the apiserver was started):

{"StartWithProxy", validateStartWithProxy}, // Set everything else up for success

startArgs := append([]string{"start", "-p", profile, "--memory=4000", fmt.Sprintf("--apiserver-port=%d", apiPortTest), "--wait=true"}, StartArgs()...)

if waitFlags[0] == "true" || waitFlags[0] == "all" {
klog.Infof("Waiting for all components: %+v", kverify.AllComponents)
return kverify.AllComponents

AllComponents = map[string]bool{APIServerWaitKey: true, SystemPodsWaitKey: true, DefaultSAWaitKey: true, AppsRunningKey: true, KubeletKey: true}

APIServerWaitKey = "apiserver"

{"ComponentHealth", validateComponentHealth},

so, these two issues might be related

@afbjorklund
Copy link
Collaborator

I don't understand the title, docker-env doesn't have anything to do wtih apiserver ?

@azhao155
Copy link
Contributor

While run docker-env, we need to make sure dockerd is up. If it's not up, we need to wait for api server container to be up and then restart dockerd

@azhao155
Copy link
Contributor

#9973 for the improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
4 participants