openshift / installer

Install an OpenShift 4.x cluster
https://try.openshift.com
Apache License 2.0
1.44k stars 1.38k forks source link

Install Openshift4 on Vsphere #3169

Closed MohamedGawad closed 4 years ago

MohamedGawad commented 4 years ago

Version

$ openshift-install version
4.3.1

Platform:

What happened?

can't create cluster as all of prerequisites done successfully as following:- 1- Configure DHCP service on the host machine with STATIC IP assigned based on MAC ADDRESS 2- Configure DNS service on the host machine. 3- Create Loadbalancer VM with gobetween software 4- Create webserver on the Loadbalancer machine 5- create the ignition files based on following install-config.yaml apiVersion: v1 baseDomain: sbm.com compute:

What you expected to happen?

installation completed successfully

How to reproduce it (as minimally and precisely as possible)?

configure dnsmasq service as the following: ### /etc/dnsmasq.d/common.conf

Listen on lo and br-ocp only

bind-interfaces interface=lo,ens160

DHCP

dhcp-option=option:router,192.168.100.60 dhcp-option=option:dns-server,192.168.10.60 dhcp-range=192.168.100.117,192.168.10.200,12h

forward, use original DNS server

server=192.168.100.1

server=10.0.xxx.xxx

enable-tftp tftp-root=/var/lib/tftp tftp-secure

Legacy PXE

dhcp-match=set:bios,option:client-arch,0 dhcp-boot=tag:bios,undionly.kpxe

UEFI

dhcp-match=set:efi32,option:client-arch,6 dhcp-boot=tag:efi32,ipxe.efi dhcp-match=set:efibc,option:client-arch,7 dhcp-boot=tag:efibc,ipxe.efi dhcp-match=set:efi64,option:client-arch,9 dhcp-boot=tag:efi64,ipxe.efi

iPXE - chainload to matchbox ipxe boot script

dhcp-userclass=set:ipxe,iPXE

matchbox can be shared across different cluster

### /etc/dnsmasq.d/ocp4.conf

dhcp-host=00:0c:29:07:fe:26,192.168.100.116 address=/bootstrap.ocp4.sbm.com/192.168.100.116 ptr-record=116.100.168.192.in-addr.arpa,bootstrap.ocp4.sbm.com

dhcp-host=00:0c:29:f7:0b:93,192.168.100.111 address=/master1.ocp4.sbm.com/192.168.100.111 ptr-record=111.100.168.192.in-addr.arpa,master1.ocp4.sbm.com

dhcp-host=00:0c:29:33:a9:10,192.168.100.112 address=/master2.ocp4.sbm.com/192.168.100.112 ptr-record=112.100.168.192.in-addr.arpa,master2.ocp4.sbm.com

dhcp-host=00:0c:29:b9:d3:47,192.168.100.113 address=/master3.ocp4.sbm.com/192.168.100.113 ptr-record=113.100.168.192.in-addr.arpa,master3.ocp4.sbm.com

dhcp-host=00:0c:29:e1:87:de,192.168.100.114 address=/compute1.ocp4.sbm.com/192.168.100.114 ptr-record=114.100.168.192.in-addr.arpa,compute1.ocp4.sbm.com

dhcp-host=00:0c:29:88:60:e0,192.168.100.115 address=/compute2.ocp4.sbm.com/192.168.100.115 ptr-record=115.100.168.192.in-addr.arpa,compute2.ocp4.sbm.com

dhcp-host=00:0c:29:11:a9:ca,192.168.100.110 address=/lb.ocp4.sbm.com/192.168.10.49 ptr-record=110.100.168.192.in-addr.arpa,lb.ocp4.sbm.com

address=/api.ocp4.sbm.com/192.168.100.110 address=/api-int.ocp4.sbm.com/192.168.100.110 address=/.apps.ocp4.sbm.com/192.168.100.110

address=/etcd-0.ocp4.sbm.com/192.168.100.111 srv-host=_etcd-server-ssl._tcp.ocp4.sbm.com,etcd-0.ocp4.sbm.com,2380 address=/etcd-1.ocp4.sbm.com/192.168.100.112 srv-host=_etcd-server-ssl._tcp.ocp4.sbm.com,etcd-1.ocp4.sbm.com,238 0address=/etcd-2.ocp4.sbm.com/192.168.100.113 srv-host=_etcd-server-ssl._tcp.ocp4.sbm.com,etcd-2.ocp4.sbm.com,2380

in the directory of the install-config.yaml file i did the following :-1: $ openshift-install create ignition-configs --dir . $ cp bootstrap.ign master.ign worker.ign /var/www/html/ $ mkdir /var/www/html/ignition $ sudo mkdir /var/www/html/ignition $ cp bootstrap.ign master.ign worker.ign /var/www/html/ignition/ $ sudo cp bootstrap.ign master.ign worker.ign /var/www/html/ignition/ $ sudo chmod 777 /var/www/html/ignition $ sudo chmod 777 /var/www/html/ignition/worker.ign $ sudo chmod 777 /var/www/html/ignition/bootstrap.ign $ sudo chmod 777 /var/www/html/ignition/master.ign $ systemctl restart apache2 $ openshift-install --dir=. wait-for bootstrap-complete --log-level=debug

Here is the logs : DEBUG OpenShift Installer v4.1.6-201907101224-dirty DEBUG Built from commit e8e6d8998bed2087244a14be16185235b43d6407 INFO Waiting up to 30m0s for the Kubernetes API at https://api.ocp4.sbm.com:6443... DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding DEBUG Still waiting for the Kubernetes API: Get https://api.ocp4.sbm.com:6443/version?timeout=32s: EOF DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding DEBUG Still waiting for the Kubernetes API: Get https://api.ocp4.sbm.com:6443/version?timeout=32s: EOF DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding DEBUG Still waiting for the Kubernetes API: Get https://api.ocp4.sbm.com:6443/version?timeout=32s: EOF DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding DEBUG Still waiting for the Kubernetes API: Get https://api.ocp4.sbm.com:6443/version?timeout=32s: EOF DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding DEBUG Still waiting for the Kubernetes API: Get https://api.ocp4.sbm.com:6443/version?timeout=32s: EOF

$ your-commands-here

Anything else we need to know?

i tried to ssh bootstrap vm from my host machine but i can't

References

MohamedGawad commented 4 years ago

i updated the issue with details.

also i tried to gather information but i can't as i tried the following:

$ openshift-install gather bootstrap --dir . --bootstrap 192.168.100.116 --master 192.168.100.111 INFO Use the following commands to gather logs from the cluster INFO ssh -A core@192.168.100.116 '/usr/local/bin/installer-gather.sh 192.168.100.111' INFO scp core@192.168.100.116:~/log-bundle.tar.gz .

$ ssh -A core@192.168.100.116 '/usr/local/bin/installer-gather.sh 192.168.100.111' core@192.168.100.116: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).