You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AWS: timed out waiting for bootstrap-complete #857
$ bin/openshift-install versionbin/openshift-install v0.5.0-master-49-g485b1bec14c39e954c70b1a83cee706ef3d5eddeTerraform v0.11.8Your version of Terraform is out of date! The latest versionis 0.11.10. You can update by downloading from www.terraform.io/downloads.html
Platform (aws|libvirt|openstack):
aws
What happened?
Installer hangs
What you expected to happen?
I expect the installer to install
How to reproduce it (as minimally and precisely as possible)?
put auth file into /home/ccallega/.secrets/openshift_pull_secret.json
I think this is because upon running the destroy command your subdomain is deleted. Upon next installation the subdomain is recreated but the main zone file is never updated to point to the new NS records.
INFO Waiting 30m0s for the bootstrap-complete event...
DEBUG added kube-scheduler.156f099f39466587: ip-10-0-2-32_017c2dba-fca3-11e8-8022-0edf8fa56caa became leader
DEBUG added kube-controller-manager.156f099fdd53a2f9: ip-10-0-2-32_0170284e-fca3-11e8-b58f-0edf8fa56caa became leader
FATAL Error executing openshift-install: waiting for bootstrap-complete: timed out waiting for the condition
@cooktheryan the asset that gets destroyed is the private vpc-attached zone not the public zone. Only the couple resource records get removed from the public zone. The public zone is otherwise intact.
Even using the following command... $ bin/openshift-install --dir /tmp/ccallegar/ create cluster
yields the same error...
time="2018-12-10T15:46:00-05:00" level=info msg="API v1.11.0+bb4887f up"
time="2018-12-10T15:46:00-05:00" level=info msg="Waiting 30m0s for the bootstrap-complete event..."
time="2018-12-10T15:46:01-05:00" level=debug msg="added kube-scheduler.156f139cb9a42c07: ip-10-0-3-114_94a11ebb-fcbc-11e8-be03-0e424992db8a became leader"
time="2018-12-10T15:46:03-05:00" level=debug msg="added kube-controller-manager.156f139d29cfa72d: ip-10-0-3-114_94891a14-fcbc-11e8-9923-0e424992db8a became leader"
FATAL Error executing openshift-install: waiting for bootstrap-complete: timed out waiting for the condition
This means your cluster-bootstrap instance started trying to push the configured objects into the cluster, but they were already there (and cluster-bootstrap, like bootkube before it, doesn't deal with that case gracefully). The existing content is probably from some earlier bootkube.sh run that pushed some objects but then died before all the pods it waits for came up.
To help prevent similar occurrences in the future, can you look further back in the logs to see why the first bootkube.service that made it as far as "Creating self-hosted assets" failed?
i pulled the latest version of the code and the problem seems to have vanished
I doubt we fixed it, but I'm glad your cluster is working. These seem to be low-probability bugs, so any information folks can capture about initial causes when they do occur will help us fix the issues.
$ bin/openshift-install version
bin/openshift-install v0.5.0-master-77-gc2975a67b6a70973d902ce48987d57d9d8e8541c
Terraform v0.11.10
INFO API v1.11.0+231d012 up
INFO Waiting 30m0s for the bootstrap-complete event...
DEBUG added kube-scheduler.156f552e553f376f: ip-10-0-12-207_6fa0263c-fd64-11e8-8b63-0e6d23fbf468 became leader
DEBUG added kube-controller-manager.156f552f7df931da: ip-10-0-12-207_6fbc7e40-fd64-11e8-a2f3-0e6d23fbf468 became leader
DEBUG added kube-controller-manager.156f5535722a440f: ip-10-0-12-207_79bfb5e3-fd64-11e8-a2a5-0e6d23fbf468 became leader
FATAL Error executing openshift-install: waiting for bootstrap-complete: timed out waiting for the condition
...
Jan 09 00:05:24 ip-10-0-8-80 bootkube.sh[4395]: Creating self-hosted assets...
Jan 09 00:05:24 ip-10-0-8-80 bootkube.sh[4395]: Created /assets/manifests/0000_00_cluster-version-operator_00_namespace.yaml Namespace openshift-cluster-version
...
Jan 09 00:05:24 ip-10-0-8-80 bootkube.sh[4395]: Created /assets/manifests/secret-serving-cert.yaml Secret openshift-kube-apiserver/serving-cert
Jan 09 00:05:54 ip-10-0-8-80 bootkube.sh[4395]: Pod Status:openshift-kube-apiserver/openshift-kube-apiserver DoesNotExist
Jan 09 00:05:54 ip-10-0-8-80 bootkube.sh[4395]: Pod Status:openshift-kube-scheduler/openshift-kube-scheduler DoesNotExist
Jan 09 00:05:54 ip-10-0-8-80 bootkube.sh[4395]: Pod Status:openshift-kube-controller-manager/openshift-kube-controller-manager DoesNotExist
Jan 09 00:05:54 ip-10-0-8-80 bootkube.sh[4395]: Pod Status:openshift-cluster-version/cluster-version-operator-77fdc55899-nswfj Pending
Jan 09 00:25:24 ip-10-0-8-80 bootkube.sh[4395]: Error: error while checking pod status: timed out waiting for the condition
Jan 09 00:25:24 ip-10-0-8-80 bootkube.sh[4395]: Tearing down temporary bootstrap control plane...
Jan 09 00:25:24 ip-10-0-8-80 bootkube.sh[4395]: Error: error while checking pod status: timed out waiting for the condition
Jan 09 00:25:24 ip-10-0-8-80 bootkube.sh[4395]: Error: error while checking pod status: timed out waiting for the condition
Jan 09 00:25:25 ip-10-0-8-80 bootkube.sh[4395]: unable to find container etcd-signer: no container with name or ID etcd-signer found: no such container
Jan 09 00:25:25 ip-10-0-8-80 systemd[1]: bootkube.service: main process exited, code=exited, status=125/n/a
Jan 09 00:25:25 ip-10-0-8-80 systemd[1]: Unit bootkube.service entered failed state.
Jan 09 00:25:25 ip-10-0-8-80 systemd[1]: bootkube.service failed.
Jan 09 00:25:30 ip-10-0-8-80 systemd[1]: bootkube.service holdoff time over, scheduling restart.
Jan 09 00:25:30 ip-10-0-8-80 systemd[1]: Stopped Bootstrap a Kubernetes cluster.
Jan 09 00:25:30 ip-10-0-8-80 systemd[1]: Started Bootstrap a Kubernetes cluster.
Jan 09 00:25:39 ip-10-0-8-80 bootkube.sh[13601]: Starting etcd certificate signer...
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: f7f480e310e7805d71721a4764b00bcce9850f7d0ea052cd883c92fd96cfa037
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: Waiting for etcd cluster...
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: https://mmasters-etcd-0.devcluster.openshift.com:2379 is healthy: successfully committed proposal: took = 2.18212ms
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: https://mmasters-etcd-1.devcluster.openshift.com:2379 is healthy: successfully committed proposal: took = 3.891165ms
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: https://mmasters-etcd-2.devcluster.openshift.com:2379 is healthy: successfully committed proposal: took = 3.490832ms
Jan 09 00:25:40 ip-10-0-8-80 bootkube.sh[13601]: etcd cluster up. Killing etcd certificate signer...
Jan 09 00:25:41 ip-10-0-8-80 bootkube.sh[13601]: f7f480e310e7805d71721a4764b00bcce9850f7d0ea052cd883c92fd96cfa037
Jan 09 00:25:41 ip-10-0-8-80 bootkube.sh[13601]: Starting cluster-bootstrap...
Jan 09 00:25:41 ip-10-0-8-80 bootkube.sh[13601]: Starting temporary bootstrap control plane...
Jan 09 00:25:41 ip-10-0-8-80 bootkube.sh[13601]: Waiting for api-server...
Jan 09 00:25:52 ip-10-0-8-80 bootkube.sh[13601]: W0109 00:25:52.230095 1 create.go:58] Unable to determine api-server readiness: API Server http status: 500
Jan 09 00:25:56 ip-10-0-8-80 bootkube.sh[13601]: Creating self-hosted assets...
Jan 09 00:25:56 ip-10-0-8-80 bootkube.sh[13601]: Failed creating /assets/manifests/0000_00_cluster-version-operator_00_namespace.yaml Namespace openshift-cluster-version: namespaces "openshift-cluster-version" already exists
...
Jan 09 00:25:57 ip-10-0-8-80 bootkube.sh[13601]: Failed creating /assets/manifests/secret-serving-cert.yaml Secret openshift-kube-apiserver/serving-cert: secrets "serving-cert" already exists
Jan 09 00:25:57 ip-10-0-8-80 bootkube.sh[13601]: NOTE: Bootkube failed to create some cluster assets. It is important that manifest errors are resolved and resubmitted to the apiserver.
Jan 09 00:25:57 ip-10-0-8-80 bootkube.sh[13601]: For example, after resolving issues: kubectl create -f <failed-manifest>
Jan 09 00:54:30 ip-10-0-33-192 hyperkube[5976]: E0109 00:54:30.970930 5976 reflector.go:136] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: pods is forbidden: User "system:anonymous" cannot list pods at the cluster scope: no RBAC policy matched
Jan 09 00:54:30 ip-10-0-33-192 hyperkube[5976]: E0109 00:54:30.971748 5976 reflector.go:136] k8s.io/kubernetes/pkg/kubelet/kubelet.go:464: Failed to list *v1.Node: nodes "ip-10-0-33-192.ec2.internal" is forbidden: User "system:anonymous" cannot list nodes at the cluster scope: no RBAC policy matched
Jan 09 00:54:30 ip-10-0-33-192 hyperkube[5976]: E0109 00:54:30.973167 5976 reflector.go:136] k8s.io/kubernetes/pkg/kubelet/kubelet.go:455: Failed to list *v1.Service: services is forbidden: User "system:anonymous" cannot list services at the cluster scope: no RBAC policy matched
I'm guessing the RBAC failures are a result of the bootkube.sh failure.
Activity
mazzystr commentedon Dec 10, 2018
debug file
You'll have to be on the Red Hat internal network to retrieve the file.
cooktheryan commentedon Dec 10, 2018
I think this is because upon running the destroy command your subdomain is deleted. Upon next installation the subdomain is recreated but the main zone file is never updated to point to the new NS records.
wking commentedon Dec 10, 2018
From the tail of the debug file:
That means your Kubernetes API came up between the bootstrap node and the production masters, but that the bootstrap node never got all the pods it waits for up. You can try these troubleshooting notes.
[-]Unable to deploy AWS[/-][+]AWS: timed out waiting for bootstrap-complete[/+]mazzystr commentedon Dec 10, 2018
@cooktheryan the asset that gets destroyed is the private vpc-attached zone not the public zone. Only the couple resource records get removed from the public zone. The public zone is otherwise intact.
mazzystr commentedon Dec 10, 2018
Even using the following command...
$ bin/openshift-install --dir /tmp/ccallegar/ create clusteryields the same error...
WianVos commentedon Dec 11, 2018
i am running into the same problem.
I tried investigating this problem in the bootstrap host.
posting the last 400 lines of the journal here, maybe it helps
Details
wking commentedon Dec 11, 2018
This means your cluster-bootstrap instance started trying to push the configured objects into the cluster, but they were already there (and cluster-bootstrap, like bootkube before it, doesn't deal with that case gracefully). The existing content is probably from some earlier
bootkube.shrun that pushed some objects but then died before all the pods it waits for came up.To help prevent similar occurrences in the future, can you look further back in the logs to see why the first
bootkube.servicethat made it as far as "Creating self-hosted assets" failed?WianVos commentedon Dec 11, 2018
i pulled the latest version of the code and the problem seems to have vanished
wking commentedon Dec 11, 2018
I doubt we fixed it, but I'm glad your cluster is working. These seem to be low-probability bugs, so any information folks can capture about initial causes when they do occur will help us fix the issues.
mazzystr commentedon Dec 11, 2018
Commit 127219f92328d1a17a42ed9f5081a18c2b6d4cc5 doesn't seem to have fixed the issue.
Miciah commentedon Jan 9, 2019
I think I've been encountering this issue too.
I put the full bootkube.sh logs on file.rdu.
Miciah commentedon Jan 9, 2019
I also see RBAC errors on masters:
I'm guessing the RBAC failures are a result of the
bootkube.shfailure.eparis commentedon Feb 19, 2019
Many of these issues have been resolved. I'm going to close this issue and request that if bugs can be found, please open a bugzilla.