oc cluster up fails with timeout on ctl plane
I'm using oc cluster on travis here.
Quite often I see teh following timeout:
+oc cluster up --skip-registry-check
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.10 is available ...
Creating shared mount directory on the remote host ...
Determining server IP ...
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.10 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.10 ...
I0912 11:04:30.930379 7791 flags.go:30] Running "create-kubelet-flags"
I0912 11:04:31.666996 7791 run_kubelet.go:48] Running "start-kubelet"
I0912 11:04:31.874825 7791 run_self_hosted.go:172] Waiting for the kube-apiserver to be ready ...
E0912 11:09:31.876755 7791 run_self_hosted.go:542] API server error: Get https://127.0.0.1:8443/healthz?timeout=32s: dial tcp 127.0.0.1:8443: getsockopt: connection refused ()
Error: timed out waiting for the condition
This can often be fixed by re-running the job. Thus in general I think it's not a performance issue.
Version
+oc version oc v3.10.0+dd10d17
Steps To Reproduce
+oc cluster up --skip-registry-check --enable=-router,-sample-templates- and the a few cycles of
oc cluster downandup
Current Result
See above
Expected Result
Reliable down and up.
Additional Information
[try to run $ oc adm diagnostics (or oadm diagnostics) command if possible]
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
[visit https://docs.openshift.org/latest/welcome/index.html]
And again https://travis-ci.com/fabiand/traviskube/jobs/145239710
Likely a dupe of https://github.com/openshift/origin/issues/20928
@openshift/sig-master
cc @deads2k
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Yes, this seems to still be an issue with 3.10 and 3.11.... Unable to issue oc cluster up when $CWD/openshift.local.clusterup directory exists and has content from previous oc cluster up. This appears to be an issue wherein the k8s master api is unable to service requests for openshift.io APIs which ultimately leads to the container cycling.
E0115 19:24:01.360471 1 reflector.go:136] github.com/openshift/client-go/oauth/informers/externalversions/factory.go:101: Failed to list *v1.OAuthClient: the server could not find the requested resource (get oauthclients.oauth.openshift.io)
E0115 19:24:01.768342 1 oauth_apiserver.go:242] the server could not find the requested resource (post oauthclients.oauth.openshift.io)
E0115 19:24:02.460309 1 reflector.go:136] github.com/openshift/origin/pkg/quota/generated/informers/internalversion/factory.go:101: Failed to list *quota.ClusterResourceQuota: the server could not find the requested resource (get clusterresourcequotas.quota.openshift.io)
E0115 19:24:02.564427 1 reflector.go:136] github.com/openshift/client-go/oauth/informers/externalversions/factory.go:101: Failed to list *v1.OAuthClient: the server could not find the requested resource (get oauthclients.oauth.openshift.io)
E0115 19:24:02.831656 1 oauth_apiserver.go:242] the server could not find the requested resource (post oauthclients.oauth.openshift.io)
EDIT - perhaps I've spoken too soon. 3.11 seems to be moving on. More later.
Basically, starting after oc cluster up and oc cluster down is sporadic at best with 3.11 bits. With 3.10, it always failed. I've decided to go another route for my testing, so this is largely irrelevant at this point to me. But ether way....
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
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.