installer: Cluster deployment does not finish on vsphere
Version
../openshift-installer/openshift-install v4.1.1-201906040019-dirty
built from commit fb776038a1d90b2b83839ab5deb8579287972e11
release image quay.io/openshift-release-dev/ocp-release@sha256:9c5f0df8b192a0d7b46cd5f6a4da2289c155fd5302dec7954f8f06c878160b8b
Platform (aws|libvirt|openstack):
Platform is vsphere
[root@console ~]# govc about Name: VMware vCenter Server Vendor: VMware, Inc. Version: 6.7.0 Build: 13007421 OS type: linux-x64 API type: VirtualCenter API version: 6.7.2 Product ID: vpx UUID: 1d884c6e-a1ac-4daf-9e25-b197e7f6bd91
VMs have a hw version of 15.
What happened?
The cluster does not finish deployment.
[root@console]# oc --config=/root/sgl-1/auth/kubeconfig get clusterversion -oyaml apiVersion: v1 items:
- apiVersion: config.openshift.io/v1
kind: ClusterVersion
metadata:
creationTimestamp: “2019-06-21T10:11:17Z”
generation: 1
name: version
resourceVersion: “180651”
selfLink: /apis/config.openshift.io/v1/clusterversions/version
uid: e8d08059-940c-11e9-91f9-005056acf7ce
spec:
channel: stable-4.1
clusterID: 8ff0010a-1f47-4f05-a555-3e7ef1321d70
upstream: https://api.openshift.com/api/upgrades_info/v1/graph
status:
availableUpdates: null
conditions:
- lastTransitionTime: “2019-06-21T10:11:47Z” status: “False” type: Available
- lastTransitionTime: “2019-06-21T10:55:41Z” status: “False” type: Failing
- lastTransitionTime: “2019-06-21T10:11:47Z” message: ‘Working towards 4.1.2: 80% complete’ status: “True” type: Progressing
- lastTransitionTime: “2019-06-21T10:11:47Z” status: “True” type: RetrievedUpdates desired: force: false image: quay.io/openshift-release-dev/ocp-release@sha256:9c5f0df8b192a0d7b46cd5f6a4da2289c155fd5302dec7954f8f06c878160b8b version: 4.1.2 history:
- completionTime: null image: quay.io/openshift-release-dev/ocp-release@sha256:9c5f0df8b192a0d7b46cd5f6a4da2289c155fd5302dec7954f8f06c878160b8b startedTime: “2019-06-21T10:11:47Z” state: Partial verified: false version: 4.1.2 observedGeneration: 1 versionHash: CGRQCirWw8Y= kind: List metadata: resourceVersion: “” selfLink: “”
[root@console sgl-1]# oc --config=/root/sgl-1/auth/kubeconfig get clusterversion version -o=jsonpath=‘{range .status.conditions[*]}{.type}{" “}{.status}{” “}{.message}{”\n"}{end}’ Available False Failing False Progressing True Working towards 4.1.2: 73% complete RetrievedUpdates True
[root@console sgl-1]# oc --config=/root/sgl-1/auth/kubeconfig get clusteroperator NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE cloud-credential 4.1.2 True False False 102m cluster-autoscaler 4.1.2 True False False 102m dns 4.1.2 True False False 11m kube-apiserver 4.1.2 False True False 101m kube-controller-manager 4.1.2 False True False 102m kube-scheduler 4.1.2 False True False 101m machine-api 4.1.2 True False False 102m machine-config 4.1.2 False True False 102m network 4.1.2 True False False 102m openshift-apiserver 4.1.2 Unknown Unknown False 102m openshift-controller-manager False True False 101m operator-lifecycle-manager 4.1.2 True False False 98m operator-lifecycle-manager-catalog 4.1.2 True False False 98m service-ca True True False 101m
The master-nodes reboot pretty often for reasons unknown to me. The have the required resources regarding memory and cpu according to the docs. Those VMs are the only ones on the vsphere cluster. Basically each vm runs on its own ESX host.
What you expected to happen?
I expect the openshift cluster setup to succeed.
Anything else we need to know?
The vcenter is flagging the VMs “red” because of their memory consumption. Is more memory (than 16 GB) needed on the master nodes?
As you see I could not execute the above commands fast enough before the master nodes rebooted themselves. That’s why once we see “'Working towards 4.1.2: 80% complete” and the second time “Progressing True Working towards 4.1.2: 73% complete”. I guess we do not reach 100%. Question is why (and what progress is indicated here)?
I’m available for installation debugging on vsphere as this is a non-production cluster.
Thanx for your help.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 38 (13 by maintainers)
You need to set the storage backend for the image registry in order for the installation to complete. The image-registry operator will not become available until the storage backend has been configured.
For the production use case, you need to provision your own storage because the vSphere cloud provider does not support ReadWriteMany access for its storage.
If this is for non-production purposes, you can set the storage backend to emptyDir.
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}}}}'