Closed jesusdevop closed 2 years ago
[root@localhost auth]# oc get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE openshift-apiserver-operator openshift-apiserver-operator-55b7764f9d-h9cfd 1/1 Running 3 96m openshift-authentication-operator authentication-operator-64b786bbf4-l6vtx 1/1 Running 3 96m openshift-cluster-machine-approver machine-approver-7598d9d5dd-p6wbr 2/2 Running 0 96m openshift-cluster-node-tuning-operator cluster-node-tuning-operator-7495ddc888-4264c 1/1 Running 0 96m openshift-cluster-node-tuning-operator tuned-kn7hl 1/1 Running 0 78m openshift-cluster-storage-operator csi-snapshot-controller-operator-74d679fb69-97rpr 1/1 Running 3 96m openshift-cluster-version cluster-version-operator-c98cd47c7-rzwst 1/1 Running 0 96m openshift-controller-manager-operator openshift-controller-manager-operator-7d995b69f8-7z6r5 1/1 Running 3 96m openshift-dns-operator dns-operator-bd5f4794-knb4p 2/2 Running 0 96m openshift-dns dns-default-mcbs7 3/3 Running 0 77m openshift-etcd-operator etcd-operator-867c8f4686-bzdj7 1/1 Running 3 96m openshift-kube-apiserver-operator kube-apiserver-operator-c697cd8ff-xr8bt 1/1 Running 3 96m openshift-kube-apiserver installer-28-localhost 0/1 Completed 0 25m openshift-kube-apiserver installer-29-localhost 0/1 Completed 0 12m openshift-kube-apiserver installer-30-localhost 0/1 Completed 0 11m openshift-kube-apiserver installer-31-localhost 0/1 Completed 0 7m13s openshift-kube-apiserver installer-32-localhost 0/1 Error 0 6m30s openshift-kube-apiserver installer-33-localhost 0/1 Completed 0 3m15s openshift-kube-apiserver kube-apiserver-localhost 3/4 CrashLoopBackOff 4 3m3s openshift-kube-apiserver revision-pruner-28-localhost 0/1 Completed 0 12m openshift-kube-apiserver revision-pruner-29-localhost 0/1 Completed 0 11m openshift-kube-apiserver revision-pruner-30-localhost 0/1 Completed 0 7m16s openshift-kube-apiserver revision-pruner-31-localhost 0/1 Completed 0 6m38s openshift-kube-apiserver revision-pruner-32-localhost 0/1 Completed 0 3m22s openshift-kube-controller-manager-operator kube-controller-manager-operator-758768b45c-bf446 1/1 Running 5 96m openshift-kube-controller-manager installer-10-localhost 0/1 Completed 0 36m openshift-kube-controller-manager installer-11-localhost 0/1 Error 0 33m openshift-kube-controller-manager installer-12-localhost 0/1 Completed 0 33m openshift-kube-controller-manager installer-2-localhost 0/1 Completed 0 78m openshift-kube-controller-manager installer-3-localhost 0/1 Completed 0 77m openshift-kube-controller-manager installer-5-localhost 0/1 Completed 0 74m openshift-kube-controller-manager installer-6-localhost 0/1 Completed 0 57m openshift-kube-controller-manager installer-7-localhost 0/1 Completed 0 53m openshift-kube-controller-manager installer-8-localhost 0/1 Completed 0 53m openshift-kube-controller-manager installer-9-localhost 0/1 Completed 0 52m openshift-kube-controller-manager kube-controller-manager-localhost 3/4 CrashLoopBackOff 5 32m openshift-kube-controller-manager revision-pruner-10-localhost 0/1 Completed 0 36m openshift-kube-controller-manager revision-pruner-11-localhost 0/1 Completed 0 33m openshift-kube-controller-manager revision-pruner-12-localhost 0/1 Completed 0 32m openshift-kube-controller-manager revision-pruner-2-localhost 0/1 Completed 0 77m openshift-kube-controller-manager revision-pruner-3-localhost 0/1 Completed 0 77m openshift-kube-controller-manager revision-pruner-5-localhost 0/1 Completed 0 74m openshift-kube-controller-manager revision-pruner-6-localhost 0/1 Completed 0 56m openshift-kube-controller-manager revision-pruner-7-localhost 0/1 Completed 0 53m openshift-kube-controller-manager revision-pruner-8-localhost 0/1 Completed 0 52m openshift-kube-controller-manager revision-pruner-9-localhost 0/1 Completed 0 51m openshift-kube-scheduler-operator openshift-kube-scheduler-operator-56c6f9ccd9-shjwz 1/1 Running 3 96m openshift-kube-scheduler installer-10-localhost 0/1 Completed 0 52m openshift-kube-scheduler installer-11-localhost 0/1 Completed 0 36m openshift-kube-scheduler installer-12-localhost 0/1 Completed 0 33m openshift-kube-scheduler installer-13-localhost 0/1 Completed 0 33m openshift-kube-scheduler installer-3-localhost 0/1 Completed 0 78m openshift-kube-scheduler installer-4-localhost 0/1 Completed 0 77m openshift-kube-scheduler installer-7-localhost 0/1 Completed 0 57m openshift-kube-scheduler installer-8-localhost 0/1 Completed 0 56m openshift-kube-scheduler installer-9-localhost 0/1 Completed 0 54m openshift-kube-scheduler openshift-kube-scheduler-localhost 3/3 Running 0 32m openshift-kube-scheduler revision-pruner-10-localhost 0/1 Completed 0 51m openshift-kube-scheduler revision-pruner-11-localhost 0/1 Completed 0 36m openshift-kube-scheduler revision-pruner-12-localhost 0/1 Completed 0 33m openshift-kube-scheduler revision-pruner-13-localhost 0/1 Completed 0 32m openshift-kube-scheduler revision-pruner-3-localhost 0/1 Completed 0 77m openshift-kube-scheduler revision-pruner-4-localhost 0/1 Completed 0 77m openshift-kube-scheduler revision-pruner-7-localhost 0/1 Completed 0 56m openshift-kube-scheduler revision-pruner-8-localhost 0/1 Completed 0 54m openshift-kube-scheduler revision-pruner-9-localhost 0/1 Completed 0 53m openshift-kube-storage-version-migrator-operator kube-storage-version-migrator-operator-8584d55cd4-xg4rr 1/1 Running 3 96m openshift-kube-storage-version-migrator migrator-5f79fdddf8-97bzq 1/1 Running 0 78m openshift-machine-config-operator etcd-quorum-guard-78b54d64c4-5qn7v 0/1 Running 0 77m openshift-machine-config-operator etcd-quorum-guard-78b54d64c4-8qwr6 0/1 Pending 0 77m openshift-machine-config-operator etcd-quorum-guard-78b54d64c4-nlds2 0/1 Pending 0 77m openshift-machine-config-operator machine-config-controller-dc8d9476d-g84hb 1/1 Running 2 78m openshift-machine-config-operator machine-config-daemon-cbrvb 2/2 Running 0 78m openshift-machine-config-operator machine-config-operator-5bfc4cd5dd-bhgn8 1/1 Running 0 96m openshift-machine-config-operator machine-config-server-728fw 1/1 Running 0 78m openshift-multus multus-8csn6 1/1 Running 0 81m openshift-multus multus-admission-controller-4977t 2/2 Running 0 79m openshift-network-operator network-operator-775c7975dc-29z5z 1/1 Running 0 96m openshift-operator-lifecycle-manager catalog-operator-64ff465fcf-tx6js 1/1 Running 4 96m openshift-operator-lifecycle-manager olm-operator-755479cbf5-k8fxr 1/1 Running 4 96m openshift-operator-lifecycle-manager packageserver-774db76dfb-f8gzv 1/1 Running 11 75m openshift-operator-lifecycle-manager packageserver-774db76dfb-f8nf7 1/1 Running 10 75m openshift-sdn ovs-gbl9m 1/1 Running 0 81m openshift-sdn sdn-controller-tfmdt 1/1 Running 4 81m openshift-sdn sdn-fllxn 1/1 Running 0 81m openshift-service-ca-operator service-ca-operator-59d5dd84f5-lpqvt 1/1 Running 3 96m openshift-service-ca service-ca-69d9df78f9-vpqht 1/1 R
openshift-kube-apiserver installer-32-localhost 0/1 Error 0 6m30s openshift-kube-controller-manager installer-11-localhost 0/1 Error 0 33m
Does the script work on Rhel distributions?
I wanted to say if you are sure that the last changes you have made in the code have not affected the installation in Rhel.
I did test it on rhel 8.x. I will give it another test run and share it with you.
I have tried both installs of dnsmasq built into NetworkManager or standalone, and I always get the same error. Please can help. Thanks.
I tried it on a fresh install of rhel-8.4. Following are the details:
I selected the "Virutalization Host" as the base environment during the installation. See screenshot.
The physical host that I am installing rhel on is a "HP ProLiant DL380p Gen8" server. 2x Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz and 128 GB of memory.
Once RHEL was installed on the host (h2.kxr.me), see the test run below:
root ~ ssh h2.kxr.me
The authenticity of host 'h2.kxr.me (192.168.20.60)' can't be established.
ECDSA key fingerprint is SHA256:CYKrzxKMBbfIAd26hX0AHrzLIvqjyDV/KkNC8G64Kcc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'h2.kxr.me,192.168.20.60' (ECDSA) to the list of known hosts.
Activate the web console with: systemctl enable --now cockpit.socket
This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register
[root@h2 ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: xxxxx
Password:
The system has been registered with ID: xxxxxx
The registered system name is: h2.kxr.me
[root@h2 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search aeh.kxr.me kxr.me
nameserver 192.168.20.1
[root@h2 ~]# echo -e "[main]\ndns=dnsmasq" > /etc/NetworkManager/conf.d/nm-dns.conf
[root@h2 ~]# systemctl restart NetworkManager
[root@h2 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search aeh.kxr.me kxr.me
nameserver 127.0.0.1
options edns0 trust-ad
[root@h2 ~]# yum -y install git
Updating Subscription Management repositories.
Last metadata expiration check: 0:03:49 ago on Tue 19 Oct 2021 11:30:01 PM +04.
Dependencies resolved.
============================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================
Installing:
git x86_64 2.27.0-1.el8 rhel-8-for-x86_64-appstream-rpms 164 k
Installing dependencies:
git-core x86_64 2.27.0-1.el8 rhel-8-for-x86_64-appstream-rpms 5.7 M
git-core-doc noarch 2.27.0-1.el8 rhel-8-for-x86_64-appstream-rpms 2.5 M
perl-Carp noarch 1.42-396.el8 rhel-8-for-x86_64-baseos-rpms 30 k
perl-Data-Dumper x86_64 2.167-399.el8 rhel-8-for-x86_64-baseos-rpms 58 k
perl-Digest noarch 1.17-395.el8 rhel-8-for-x86_64-appstream-rpms 27 k
perl-Digest-MD5 x86_64 2.55-396.el8 rhel-8-for-x86_64-appstream-rpms 37 k
perl-Encode x86_64 4:2.97-3.el8 rhel-8-for-x86_64-baseos-rpms 1.5 M
perl-Errno x86_64 1.28-419.el8_4.1 rhel-8-for-x86_64-baseos-rpms 76 k
perl-Error noarch 1:0.17025-2.el8 rhel-8-for-x86_64-appstream-rpms 46 k
perl-Exporter noarch 5.72-396.el8 rhel-8-for-x86_64-baseos-rpms 34 k
perl-File-Path noarch 2.15-2.el8 rhel-8-for-x86_64-baseos-rpms 38 k
perl-File-Temp noarch 0.230.600-1.el8 rhel-8-for-x86_64-baseos-rpms 63 k
perl-Getopt-Long noarch 1:2.50-4.el8 rhel-8-for-x86_64-baseos-rpms 63 k
perl-Git noarch 2.27.0-1.el8 rhel-8-for-x86_64-appstream-rpms 78 k
perl-HTTP-Tiny noarch 0.074-1.el8 rhel-8-for-x86_64-baseos-rpms 58 k
perl-IO x86_64 1.38-419.el8_4.1 rhel-8-for-x86_64-baseos-rpms 142 k
perl-MIME-Base64 x86_64 3.15-396.el8 rhel-8-for-x86_64-baseos-rpms 31 k
perl-Net-SSLeay x86_64 1.88-1.module+el8.3.0+6446+594cad75 rhel-8-for-x86_64-appstream-rpms 379 k
perl-PathTools x86_64 3.74-1.el8 rhel-8-for-x86_64-baseos-rpms 90 k
perl-Pod-Escapes noarch 1:1.07-395.el8 rhel-8-for-x86_64-baseos-rpms 20 k
perl-Pod-Perldoc noarch 3.28-396.el8 rhel-8-for-x86_64-baseos-rpms 88 k
perl-Pod-Simple noarch 1:3.35-395.el8 rhel-8-for-x86_64-baseos-rpms 213 k
perl-Pod-Usage noarch 4:1.69-395.el8 rhel-8-for-x86_64-baseos-rpms 34 k
perl-Scalar-List-Utils x86_64 3:1.49-2.el8 rhel-8-for-x86_64-baseos-rpms 68 k
perl-Socket x86_64 4:2.027-3.el8 rhel-8-for-x86_64-baseos-rpms 59 k
perl-Storable x86_64 1:3.11-3.el8 rhel-8-for-x86_64-baseos-rpms 98 k
perl-Term-ANSIColor noarch 4.06-396.el8 rhel-8-for-x86_64-baseos-rpms 46 k
perl-Term-Cap noarch 1.17-395.el8 rhel-8-for-x86_64-baseos-rpms 23 k
perl-TermReadKey x86_64 2.37-7.el8 rhel-8-for-x86_64-appstream-rpms 40 k
perl-Text-ParseWords noarch 3.30-395.el8 rhel-8-for-x86_64-baseos-rpms 18 k
perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 rhel-8-for-x86_64-baseos-rpms 24 k
perl-Time-Local noarch 1:1.280-1.el8 rhel-8-for-x86_64-baseos-rpms 34 k
perl-URI noarch 1.73-3.el8 rhel-8-for-x86_64-appstream-rpms 116 k
perl-Unicode-Normalize x86_64 1.25-396.el8 rhel-8-for-x86_64-baseos-rpms 82 k
perl-constant noarch 1.33-396.el8 rhel-8-for-x86_64-baseos-rpms 25 k
perl-interpreter x86_64 4:5.26.3-419.el8_4.1 rhel-8-for-x86_64-baseos-rpms 6.3 M
perl-libnet noarch 3.11-3.el8 rhel-8-for-x86_64-appstream-rpms 121 k
perl-libs x86_64 4:5.26.3-419.el8_4.1 rhel-8-for-x86_64-baseos-rpms 1.6 M
perl-macros x86_64 4:5.26.3-419.el8_4.1 rhel-8-for-x86_64-baseos-rpms 72 k
perl-parent noarch 1:0.237-1.el8 rhel-8-for-x86_64-baseos-rpms 20 k
perl-podlators noarch 4.11-1.el8 rhel-8-for-x86_64-baseos-rpms 118 k
perl-threads x86_64 1:2.21-2.el8 rhel-8-for-x86_64-baseos-rpms 61 k
perl-threads-shared x86_64 1.58-2.el8 rhel-8-for-x86_64-baseos-rpms 48 k
Installing weak dependencies:
perl-IO-Socket-IP noarch 0.39-5.el8 rhel-8-for-x86_64-appstream-rpms 47 k
perl-IO-Socket-SSL noarch 2.066-4.module+el8.3.0+6446+594cad75 rhel-8-for-x86_64-appstream-rpms 298 k
perl-Mozilla-CA noarch 20160104-7.module+el8.3.0+6498+9eecfe51 rhel-8-for-x86_64-appstream-rpms 15 k
Enabling module streams:
perl 5.26
perl-IO-Socket-SSL 2.066
perl-libwww-perl 6.34
Transaction Summary
============================================================================================================================================================================
Install 47 Packages
Total download size: 21 M
Installed size: 80 M
Downloading Packages:
(1/47): perl-Data-Dumper-2.167-399.el8.x86_64.rpm 50 kB/s | 58 kB 00:01
(2/47): perl-PathTools-3.74-1.el8.x86_64.rpm 77 kB/s | 90 kB 00:01
(3/47): perl-Scalar-List-Utils-1.49-2.el8.x86_64.rpm 40 kB/s | 68 kB 00:01
(4/47): perl-threads-shared-1.58-2.el8.x86_64.rpm 83 kB/s | 48 kB 00:00
(5/47): perl-MIME-Base64-3.15-396.el8.x86_64.rpm 81 kB/s | 31 kB 00:00
(6/47): perl-Unicode-Normalize-1.25-396.el8.x86_64.rpm 168 kB/s | 82 kB 00:00
(7/47): perl-Encode-2.97-3.el8.x86_64.rpm 1.4 MB/s | 1.5 MB 00:01
(8/47): perl-threads-2.21-2.el8.x86_64.rpm 137 kB/s | 61 kB 00:00
(9/47): perl-Term-ANSIColor-4.06-396.el8.noarch.rpm 146 kB/s | 46 kB 00:00
(10/47): perl-Pod-Simple-3.35-395.el8.noarch.rpm 399 kB/s | 213 kB 00:00
(11/47): perl-Pod-Escapes-1.07-395.el8.noarch.rpm 66 kB/s | 20 kB 00:00
(12/47): perl-HTTP-Tiny-0.074-1.el8.noarch.rpm 149 kB/s | 58 kB 00:00
(13/47): perl-Pod-Perldoc-3.28-396.el8.noarch.rpm 218 kB/s | 88 kB 00:00
(14/47): perl-File-Path-2.15-2.el8.noarch.rpm 106 kB/s | 38 kB 00:00
(15/47): perl-parent-0.237-1.el8.noarch.rpm 48 kB/s | 20 kB 00:00
(16/47): perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch.rpm 73 kB/s | 24 kB 00:00
(17/47): perl-Getopt-Long-2.50-4.el8.noarch.rpm 202 kB/s | 63 kB 00:00
(18/47): perl-Time-Local-1.280-1.el8.noarch.rpm 96 kB/s | 34 kB 00:00
(19/47): perl-Carp-1.42-396.el8.noarch.rpm 95 kB/s | 30 kB 00:00
(20/47): perl-podlators-4.11-1.el8.noarch.rpm 209 kB/s | 118 kB 00:00
(21/47): perl-Exporter-5.72-396.el8.noarch.rpm 105 kB/s | 34 kB 00:00
(22/47): perl-Storable-3.11-3.el8.x86_64.rpm 313 kB/s | 98 kB 00:00
(23/47): perl-Text-ParseWords-3.30-395.el8.noarch.rpm 54 kB/s | 18 kB 00:00
(24/47): perl-File-Temp-0.230.600-1.el8.noarch.rpm 191 kB/s | 63 kB 00:00
(25/47): perl-constant-1.33-396.el8.noarch.rpm 85 kB/s | 25 kB 00:00
(26/47): perl-Term-Cap-1.17-395.el8.noarch.rpm 68 kB/s | 23 kB 00:00
(27/47): perl-Pod-Usage-1.69-395.el8.noarch.rpm 106 kB/s | 34 kB 00:00
(28/47): perl-Socket-2.027-3.el8.x86_64.rpm 192 kB/s | 59 kB 00:00
(29/47): perl-IO-1.38-419.el8_4.1.x86_64.rpm 335 kB/s | 142 kB 00:00
(30/47): perl-Errno-1.28-419.el8_4.1.x86_64.rpm 245 kB/s | 76 kB 00:00
(31/47): perl-macros-5.26.3-419.el8_4.1.x86_64.rpm 216 kB/s | 72 kB 00:00
(32/47): perl-IO-Socket-IP-0.39-5.el8.noarch.rpm 133 kB/s | 47 kB 00:00
(33/47): perl-libnet-3.11-3.el8.noarch.rpm 328 kB/s | 121 kB 00:00
(34/47): perl-libs-5.26.3-419.el8_4.1.x86_64.rpm 1.5 MB/s | 1.6 MB 00:01
(35/47): perl-Error-0.17025-2.el8.noarch.rpm 135 kB/s | 46 kB 00:00
(36/47): perl-TermReadKey-2.37-7.el8.x86_64.rpm 100 kB/s | 40 kB 00:00
(37/47): perl-Digest-1.17-395.el8.noarch.rpm 55 kB/s | 27 kB 00:00
(38/47): perl-Digest-MD5-2.55-396.el8.x86_64.rpm 119 kB/s | 37 kB 00:00
(39/47): perl-URI-1.73-3.el8.noarch.rpm 136 kB/s | 116 kB 00:00
(40/47): perl-interpreter-5.26.3-419.el8_4.1.x86_64.rpm 2.6 MB/s | 6.3 MB 00:02
(41/47): perl-IO-Socket-SSL-2.066-4.module+el8.3.0+6446+594cad75.noarch.rpm 462 kB/s | 298 kB 00:00
(42/47): perl-Mozilla-CA-20160104-7.module+el8.3.0+6498+9eecfe51.noarch.rpm 48 kB/s | 15 kB 00:00
(43/47): perl-Git-2.27.0-1.el8.noarch.rpm 206 kB/s | 78 kB 00:00
(44/47): perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+594cad75.x86_64.rpm 525 kB/s | 379 kB 00:00
(45/47): git-2.27.0-1.el8.x86_64.rpm 217 kB/s | 164 kB 00:00
(46/47): git-core-2.27.0-1.el8.x86_64.rpm 2.7 MB/s | 5.7 MB 00:02
(47/47): git-core-doc-2.27.0-1.el8.noarch.rpm 1.6 MB/s | 2.5 MB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 21 MB 00:09
warning: /var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-51b3b78d5698246b/packages/perl-Scalar-List-Utils-1.49-2.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 289 kB/s | 5.0 kB 00:00
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>"
Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Key imported successfully
Importing GPG key 0xD4082792:
Userid : "Red Hat, Inc. (auxiliary key) <security@redhat.com>"
Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-Digest-1.17-395.el8.noarch 1/47
Installing : perl-Digest-MD5-2.55-396.el8.x86_64 2/47
Installing : perl-Data-Dumper-2.167-399.el8.x86_64 3/47
Installing : perl-libnet-3.11-3.el8.noarch 4/47
Installing : perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+594cad75.x86_64 5/47
Installing : perl-URI-1.73-3.el8.noarch 6/47
Installing : perl-Pod-Escapes-1:1.07-395.el8.noarch 7/47
Installing : perl-Time-Local-1:1.280-1.el8.noarch 8/47
Installing : perl-IO-Socket-IP-0.39-5.el8.noarch 9/47
Installing : perl-Mozilla-CA-20160104-7.module+el8.3.0+6498+9eecfe51.noarch 10/47
Installing : perl-IO-Socket-SSL-2.066-4.module+el8.3.0+6446+594cad75.noarch 11/47
Installing : perl-Term-ANSIColor-4.06-396.el8.noarch 12/47
Installing : perl-Term-Cap-1.17-395.el8.noarch 13/47
Installing : perl-File-Temp-0.230.600-1.el8.noarch 14/47
Installing : perl-Pod-Simple-1:3.35-395.el8.noarch 15/47
Installing : perl-HTTP-Tiny-0.074-1.el8.noarch 16/47
Installing : perl-podlators-4.11-1.el8.noarch 17/47
Installing : perl-Pod-Perldoc-3.28-396.el8.noarch 18/47
Installing : perl-Text-ParseWords-3.30-395.el8.noarch 19/47
Installing : perl-Pod-Usage-4:1.69-395.el8.noarch 20/47
Installing : perl-MIME-Base64-3.15-396.el8.x86_64 21/47
Installing : perl-Storable-1:3.11-3.el8.x86_64 22/47
Installing : perl-Getopt-Long-1:2.50-4.el8.noarch 23/47
Installing : perl-Socket-4:2.027-3.el8.x86_64 24/47
Installing : perl-Errno-1.28-419.el8_4.1.x86_64 25/47
Installing : perl-Encode-4:2.97-3.el8.x86_64 26/47
Installing : perl-parent-1:0.237-1.el8.noarch 27/47
Installing : perl-Carp-1.42-396.el8.noarch 28/47
Installing : perl-Exporter-5.72-396.el8.noarch 29/47
Installing : perl-libs-4:5.26.3-419.el8_4.1.x86_64 30/47
Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 31/47
Installing : perl-macros-4:5.26.3-419.el8_4.1.x86_64 32/47
Installing : perl-Unicode-Normalize-1.25-396.el8.x86_64 33/47
Installing : perl-threads-shared-1.58-2.el8.x86_64 34/47
Installing : perl-threads-1:2.21-2.el8.x86_64 35/47
Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 36/47
Installing : perl-constant-1.33-396.el8.noarch 37/47
Installing : perl-PathTools-3.74-1.el8.x86_64 38/47
Installing : perl-File-Path-2.15-2.el8.noarch 39/47
Installing : perl-IO-1.38-419.el8_4.1.x86_64 40/47
Installing : perl-interpreter-4:5.26.3-419.el8_4.1.x86_64 41/47
Installing : git-core-2.27.0-1.el8.x86_64 42/47
Installing : git-core-doc-2.27.0-1.el8.noarch 43/47
Installing : perl-Error-1:0.17025-2.el8.noarch 44/47
Installing : perl-TermReadKey-2.37-7.el8.x86_64 45/47
Installing : perl-Git-2.27.0-1.el8.noarch 46/47
Installing : git-2.27.0-1.el8.x86_64 47/47
Running scriptlet: git-2.27.0-1.el8.x86_64 47/47
Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 1/47
Verifying : perl-PathTools-3.74-1.el8.x86_64 2/47
Verifying : perl-Data-Dumper-2.167-399.el8.x86_64 3/47
Verifying : perl-threads-shared-1.58-2.el8.x86_64 4/47
Verifying : perl-Encode-4:2.97-3.el8.x86_64 5/47
Verifying : perl-Unicode-Normalize-1.25-396.el8.x86_64 6/47
Verifying : perl-MIME-Base64-3.15-396.el8.x86_64 7/47
Verifying : perl-threads-1:2.21-2.el8.x86_64 8/47
Verifying : perl-Pod-Simple-1:3.35-395.el8.noarch 9/47
Verifying : perl-Term-ANSIColor-4.06-396.el8.noarch 10/47
Verifying : perl-HTTP-Tiny-0.074-1.el8.noarch 11/47
Verifying : perl-Pod-Escapes-1:1.07-395.el8.noarch 12/47
Verifying : perl-Pod-Perldoc-3.28-396.el8.noarch 13/47
Verifying : perl-File-Path-2.15-2.el8.noarch 14/47
Verifying : perl-parent-1:0.237-1.el8.noarch 15/47
Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 16/47
Verifying : perl-Getopt-Long-1:2.50-4.el8.noarch 17/47
Verifying : perl-podlators-4.11-1.el8.noarch 18/47
Verifying : perl-Time-Local-1:1.280-1.el8.noarch 19/47
Verifying : perl-Carp-1.42-396.el8.noarch 20/47
Verifying : perl-Exporter-5.72-396.el8.noarch 21/47
Verifying : perl-Storable-1:3.11-3.el8.x86_64 22/47
Verifying : perl-Text-ParseWords-3.30-395.el8.noarch 23/47
Verifying : perl-File-Temp-0.230.600-1.el8.noarch 24/47
Verifying : perl-constant-1.33-396.el8.noarch 25/47
Verifying : perl-Term-Cap-1.17-395.el8.noarch 26/47
Verifying : perl-Pod-Usage-4:1.69-395.el8.noarch 27/47
Verifying : perl-Socket-4:2.027-3.el8.x86_64 28/47
Verifying : perl-IO-1.38-419.el8_4.1.x86_64 29/47
Verifying : perl-macros-4:5.26.3-419.el8_4.1.x86_64 30/47
Verifying : perl-Errno-1.28-419.el8_4.1.x86_64 31/47
Verifying : perl-interpreter-4:5.26.3-419.el8_4.1.x86_64 32/47
Verifying : perl-libs-4:5.26.3-419.el8_4.1.x86_64 33/47
Verifying : perl-IO-Socket-IP-0.39-5.el8.noarch 34/47
Verifying : perl-libnet-3.11-3.el8.noarch 35/47
Verifying : perl-Error-1:0.17025-2.el8.noarch 36/47
Verifying : perl-Digest-1.17-395.el8.noarch 37/47
Verifying : perl-TermReadKey-2.37-7.el8.x86_64 38/47
Verifying : perl-URI-1.73-3.el8.noarch 39/47
Verifying : perl-Digest-MD5-2.55-396.el8.x86_64 40/47
Verifying : perl-IO-Socket-SSL-2.066-4.module+el8.3.0+6446+594cad75.noarch 41/47
Verifying : perl-Mozilla-CA-20160104-7.module+el8.3.0+6498+9eecfe51.noarch 42/47
Verifying : perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+594cad75.x86_64 43/47
Verifying : git-core-2.27.0-1.el8.x86_64 44/47
Verifying : perl-Git-2.27.0-1.el8.noarch 45/47
Verifying : git-2.27.0-1.el8.x86_64 46/47
Verifying : git-core-doc-2.27.0-1.el8.noarch 47/47
Installed products updated.
Installed:
git-2.27.0-1.el8.x86_64 git-core-2.27.0-1.el8.x86_64
git-core-doc-2.27.0-1.el8.noarch perl-Carp-1.42-396.el8.noarch
perl-Data-Dumper-2.167-399.el8.x86_64 perl-Digest-1.17-395.el8.noarch
perl-Digest-MD5-2.55-396.el8.x86_64 perl-Encode-4:2.97-3.el8.x86_64
perl-Errno-1.28-419.el8_4.1.x86_64 perl-Error-1:0.17025-2.el8.noarch
perl-Exporter-5.72-396.el8.noarch perl-File-Path-2.15-2.el8.noarch
perl-File-Temp-0.230.600-1.el8.noarch perl-Getopt-Long-1:2.50-4.el8.noarch
perl-Git-2.27.0-1.el8.noarch perl-HTTP-Tiny-0.074-1.el8.noarch
perl-IO-1.38-419.el8_4.1.x86_64 perl-IO-Socket-IP-0.39-5.el8.noarch
perl-IO-Socket-SSL-2.066-4.module+el8.3.0+6446+594cad75.noarch perl-MIME-Base64-3.15-396.el8.x86_64
perl-Mozilla-CA-20160104-7.module+el8.3.0+6498+9eecfe51.noarch perl-Net-SSLeay-1.88-1.module+el8.3.0+6446+594cad75.x86_64
perl-PathTools-3.74-1.el8.x86_64 perl-Pod-Escapes-1:1.07-395.el8.noarch
perl-Pod-Perldoc-3.28-396.el8.noarch perl-Pod-Simple-1:3.35-395.el8.noarch
perl-Pod-Usage-4:1.69-395.el8.noarch perl-Scalar-List-Utils-3:1.49-2.el8.x86_64
perl-Socket-4:2.027-3.el8.x86_64 perl-Storable-1:3.11-3.el8.x86_64
perl-Term-ANSIColor-4.06-396.el8.noarch perl-Term-Cap-1.17-395.el8.noarch
perl-TermReadKey-2.37-7.el8.x86_64 perl-Text-ParseWords-3.30-395.el8.noarch
perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch perl-Time-Local-1:1.280-1.el8.noarch
perl-URI-1.73-3.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64
perl-constant-1.33-396.el8.noarch perl-interpreter-4:5.26.3-419.el8_4.1.x86_64
perl-libnet-3.11-3.el8.noarch perl-libs-4:5.26.3-419.el8_4.1.x86_64
perl-macros-4:5.26.3-419.el8_4.1.x86_64 perl-parent-1:0.237-1.el8.noarch
perl-podlators-4.11-1.el8.noarch perl-threads-1:2.21-2.el8.x86_64
perl-threads-shared-1.58-2.el8.x86_64
Complete!
[root@h2 ~]#
[root@h2 ~]# git clone https://github.com/kxr/ocp4_setup_upi_kvm
Cloning into 'ocp4_setup_upi_kvm'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 277 (delta 76), reused 58 (delta 29), pack-reused 148
Receiving objects: 100% (277/277), 111.57 KiB | 3.28 MiB/s, done.
Resolving deltas: 100% (135/135), done.
[root@h2 ~]# cd ocp4_setup_upi_kvm/
[root@h2 ocp4_setup_upi_kvm]# ls
ocp4_setup_upi_kvm.sh README.md
[root@h2 ocp4_setup_upi_kvm]# vim /root/pull-secret
[root@h2 ocp4_setup_upi_kvm]# ./ocp4_setup_upi_kvm.sh --cluster-name jesusdevop
####################################
### DEPENDENCIES & SANITY CHECKS ###
####################################
====> Checking if we have all the dependencies:
[ERROR] executable virt-install not found
[root@h2 ocp4_setup_upi_kvm]# yum install /usr/bin/virt-install
Updating Subscription Management repositories.
Last metadata expiration check: 0:08:45 ago on Tue 19 Oct 2021 11:30:01 PM +04.
Dependencies resolved.
============================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================
Installing:
virt-install noarch 2.2.1-4.el8 rhel-8-for-x86_64-appstream-rpms 100 k
Installing dependencies:
libosinfo x86_64 1.9.0-1.el8 rhel-8-for-x86_64-appstream-rpms 301 k
osinfo-db noarch 20210215-1.el8 rhel-8-for-x86_64-appstream-rpms 236 k
osinfo-db-tools x86_64 1.9.0-1.el8 rhel-8-for-x86_64-appstream-rpms 68 k
python3-argcomplete noarch 1.9.3-6.el8 rhel-8-for-x86_64-appstream-rpms 60 k
python3-libvirt x86_64 6.0.0-1.module+el8.3.0+6423+e4cb6418 rhel-8-for-x86_64-appstream-rpms 305 k
virt-manager-common noarch 2.2.1-4.el8 rhel-8-for-x86_64-appstream-rpms 890 k
Transaction Summary
============================================================================================================================================================================
Install 7 Packages
Total download size: 1.9 M
Installed size: 9.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): python3-argcomplete-1.9.3-6.el8.noarch.rpm 51 kB/s | 60 kB 00:01
(2/7): osinfo-db-tools-1.9.0-1.el8.x86_64.rpm 57 kB/s | 68 kB 00:01
(3/7): python3-libvirt-6.0.0-1.module+el8.3.0+6423+e4cb6418.x86_64.rpm 205 kB/s | 305 kB 00:01
(4/7): osinfo-db-20210215-1.el8.noarch.rpm 353 kB/s | 236 kB 00:00
(5/7): libosinfo-1.9.0-1.el8.x86_64.rpm 411 kB/s | 301 kB 00:00
(6/7): virt-manager-common-2.2.1-4.el8.noarch.rpm 1.4 MB/s | 890 kB 00:00
(7/7): virt-install-2.2.1-4.el8.noarch.rpm 284 kB/s | 100 kB 00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 883 kB/s | 1.9 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : osinfo-db-20210215-1.el8.noarch 1/7
Installing : osinfo-db-tools-1.9.0-1.el8.x86_64 2/7
Installing : libosinfo-1.9.0-1.el8.x86_64 3/7
Installing : python3-libvirt-6.0.0-1.module+el8.3.0+6423+e4cb6418.x86_64 4/7
Installing : python3-argcomplete-1.9.3-6.el8.noarch 5/7
Installing : virt-manager-common-2.2.1-4.el8.noarch 6/7
Installing : virt-install-2.2.1-4.el8.noarch 7/7
Running scriptlet: virt-install-2.2.1-4.el8.noarch 7/7
Verifying : python3-argcomplete-1.9.3-6.el8.noarch 1/7
Verifying : python3-libvirt-6.0.0-1.module+el8.3.0+6423+e4cb6418.x86_64 2/7
Verifying : osinfo-db-tools-1.9.0-1.el8.x86_64 3/7
Verifying : libosinfo-1.9.0-1.el8.x86_64 4/7
Verifying : osinfo-db-20210215-1.el8.noarch 5/7
Verifying : virt-manager-common-2.2.1-4.el8.noarch 6/7
Verifying : virt-install-2.2.1-4.el8.noarch 7/7
Installed products updated.
Installed:
libosinfo-1.9.0-1.el8.x86_64 osinfo-db-20210215-1.el8.noarch osinfo-db-tools-1.9.0-1.el8.x86_64 python3-argcomplete-1.9.3-6.el8.noarch
python3-libvirt-6.0.0-1.module+el8.3.0+6423+e4cb6418.x86_64 virt-install-2.2.1-4.el8.noarch virt-manager-common-2.2.1-4.el8.noarch
Complete!
[root@h2 ocp4_setup_upi_kvm]# ./ocp4_setup_upi_kvm.sh --cluster-name jesusdevop
####################################
### DEPENDENCIES & SANITY CHECKS ###
####################################
====> Checking if we have all the dependencies:
[ERROR] executable virt-customize not found
[root@h2 ocp4_setup_upi_kvm]# yum install /usr/bin/virt-customize
Updating Subscription Management repositories.
Last metadata expiration check: 0:09:12 ago on Tue 19 Oct 2021 11:30:01 PM +04.
Dependencies resolved.
============================================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================================
Installing:
libguestfs-tools-c x86_64 1:1.40.2-27.module+el8.4.0+9282+0bdec052 rhel-8-for-x86_64-appstream-rpms 5.6 M
Installing dependencies:
hexedit x86_64 1.2.13-12.el8 rhel-8-for-x86_64-appstream-rpms 46 k
Installing weak dependencies:
libguestfs-xfs x86_64 1:1.40.2-27.module+el8.4.0+9282+0bdec052 rhel-8-for-x86_64-appstream-rpms 10 k
Transaction Summary
============================================================================================================================================================================
Install 3 Packages
Total download size: 5.7 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): libguestfs-xfs-1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64.rpm 10 kB/s | 10 kB 00:00
(2/3): hexedit-1.2.13-12.el8.x86_64.rpm 42 kB/s | 46 kB 00:01
(3/3): libguestfs-tools-c-1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64.rpm 1.9 MB/s | 5.6 MB 00:02
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.9 MB/s | 5.7 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libguestfs-xfs-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 1/3
Installing : hexedit-1.2.13-12.el8.x86_64 2/3
Installing : libguestfs-tools-c-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 3/3
Running scriptlet: libguestfs-tools-c-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 3/3
Verifying : hexedit-1.2.13-12.el8.x86_64 1/3
Verifying : libguestfs-xfs-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 2/3
Verifying : libguestfs-tools-c-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 3/3
Installed products updated.
Installed:
hexedit-1.2.13-12.el8.x86_64 libguestfs-tools-c-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 libguestfs-xfs-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64
Complete!
[root@h2 ocp4_setup_upi_kvm]# ./ocp4_setup_upi_kvm.sh --cluster-name jesusdevop
####################################
### DEPENDENCIES & SANITY CHECKS ###
####################################
====> Checking if we have all the dependencies: ok
====> Checking if the script/working directory already exists: ok
====> Checking for pull-secret (/root/pull-secret): ok
====> Checking if libvirt is running or enabled: ok
====> Checking if we have any existing leftover VMs: ok
====> Checking if DNS service (dnsmasq or NetworkManager) is active: NetworkManager
====> Checking if dnsmasq is enabled in NetworkManager: ok
====> Testing dnsmasq reload (systemctl reload NetworkManager): ok
====> Testing libvirtd restart (systemctl restart libvirtd): ok
====> Checking for any leftover dnsmasq config: ok
====> Checking for any leftover hosts file: ok
====> Checking for any leftover/conflicting dns records: ok
#######################
### LIBVIRT NETWORK ###
#######################
====> Checking libvirt network: using default
##################
#### DNS CHECK ###
##################
====> Checking if first entry in /etc/resolv.conf is pointing locally: ok
====> Creating a test host file for dnsmasq /etc/hosts.dnstest: ok
====> Creating a test dnsmasq config file /etc/NetworkManager/dnsmasq.d/dnstest.conf: ok
====> Reloading libvirt and dnsmasq: .. ok
====> Testing forward dns via @127.0.0.1: ok
====> Testing reverse dns via @127.0.0.1: ok
====> Testing wildcard record via @127.0.0.1: ok
====> Testing forward dns via @192.168.122.1: ok
====> Testing reverse dns via @192.168.122.1: ok
====> Testing wildcard record via @192.168.122.1: ok
====> Testing forward dns via : ok
====> Testing reverse dns via : ok
====> Testing wildcard record via : ok
====> All DNS tests passed. Cleaning up: ... ok
##########################################
### OPENSHIFT/RHCOS VERSION/URL CHECK ###
##########################################
====> Looking up OCP4 client for release stable: openshift-client-linux-4.9.0.tar.gz
====> Checking if Client URL is downloadable: ok
====> Looking up OCP4 installer for release stable: openshift-install-linux-4.9.0.tar.gz
====> Checking if Installer URL is downloadable: ok
====> Looking up RHCOS kernel for release 4.9/latest: rhcos-4.9.0-x86_64-live-kernel-x86_64
====> Checking if Kernel URL is downloadable: ok
====> Looking up RHCOS initramfs for release 4.9/latest: rhcos-4.9.0-x86_64-live-initramfs.x86_64.img
====> Checking if Initramfs URL is downloadable: ok
====> Looking up RHCOS image for release 4.9/latest: rhcos-4.9.0-x86_64-live-rootfs.x86_64.img
====> Checking if Image URL is downloadable: ok
====> Checking if Centos cloud image URL is downloadable: ok
Red Hat OpenShift Version = 4.9.0
Red Hat CoreOS Version = 4.9.0
Press [Enter] to continue, [Ctrl]+C to abort:
#####################################################
### DOWNLOAD AND PREPARE OPENSHIFT 4 INSTALLATION ###
#####################################################
====> Creating and using directory /root/ocp4_cluster_jesusdevop: ok
====> Creating a hosts file for this cluster (/etc/hosts.jesusdevop): ok
====> Creating a dnsmasq conf for this cluster (/etc/NetworkManager/dnsmasq.d/jesusdevop.conf): ok
====> SSH key to be injected in all VMs: generated new ssh key
====> Downloading OCP Client:
--2021-10-19 23:40:09-- https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux-4.9.0.tar.gz
Resolving mirror.openshift.com (mirror.openshift.com)... 54.173.18.88, 54.172.163.83
Connecting to mirror.openshift.com (mirror.openshift.com)|54.173.18.88|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49412492 (47M) [application/x-gzip]
Saving to: ‘/root/ocp4_downloads/openshift-client-linux-4.9.0.tar.gz.part’
/root/ocp4_downloads/openshift-client-linu 100%[========================================================================================>] 47.12M 2.08MB/s in 91s
2021-10-19 23:41:41 (532 KB/s) - ‘/root/ocp4_downloads/openshift-client-linux-4.9.0.tar.gz.part’ saved [49412492/49412492]
====> Downloading OCP Installer:
--2021-10-19 23:41:41-- https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-install-linux-4.9.0.tar.gz
Resolving mirror.openshift.com (mirror.openshift.com)... 54.172.163.83, 54.173.18.88
Connecting to mirror.openshift.com (mirror.openshift.com)|54.172.163.83|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104224842 (99M) [application/x-gzip]
Saving to: ‘/root/ocp4_downloads/openshift-install-linux-4.9.0.tar.gz.part’
/root/ocp4_downloads/openshift-install-lin 100%[========================================================================================>] 99.40M 5.00MB/s in 29s
2021-10-19 23:42:11 (3.39 MB/s) - ‘/root/ocp4_downloads/openshift-install-linux-4.9.0.tar.gz.part’ saved [104224842/104224842]
====> Downloading RHCOS Image:
--2021-10-19 23:42:15-- https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-4.9.0-x86_64-live-rootfs.x86_64.img
Resolving mirror.openshift.com (mirror.openshift.com)... 54.173.18.88, 54.172.163.83
Connecting to mirror.openshift.com (mirror.openshift.com)|54.173.18.88|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 926554624 (884M) [application/octet-stream]
Saving to: ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-rootfs.x86_64.img.part’
/root/ocp4_downloads/rhcos-4.9.0-x86_64-li 100%[========================================================================================>] 883.63M 6.55MB/s in 3m 22s
2021-10-19 23:45:37 (4.38 MB/s) - ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-rootfs.x86_64.img.part’ saved [926554624/926554624]
====> Downloading RHCOS Kernel:
--2021-10-19 23:45:37-- https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-4.9.0-x86_64-live-kernel-x86_64
Resolving mirror.openshift.com (mirror.openshift.com)... 54.172.163.83, 54.172.173.155
Connecting to mirror.openshift.com (mirror.openshift.com)|54.172.163.83|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10030448 (9.6M) [text/plain]
Saving to: ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-kernel-x86_64.part’
/root/ocp4_downloads/rhcos-4.9.0-x86_64-li 100%[========================================================================================>] 9.57M 296KB/s in 33s
2021-10-19 23:46:12 (297 KB/s) - ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-kernel-x86_64.part’ saved [10030448/10030448]
====> Downloading RHCOS Initramfs:
--2021-10-19 23:46:12-- https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.9/latest/rhcos-4.9.0-x86_64-live-initramfs.x86_64.img
Resolving mirror.openshift.com (mirror.openshift.com)... 54.172.173.155, 54.172.163.83
Connecting to mirror.openshift.com (mirror.openshift.com)|54.172.173.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 87854752 (84M) [application/octet-stream]
Saving to: ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-initramfs.x86_64.img.part’
/root/ocp4_downloads/rhcos-4.9.0-x86_64-li 100%[========================================================================================>] 83.78M 4.67MB/s in 23s
2021-10-19 23:46:36 (3.67 MB/s) - ‘/root/ocp4_downloads/rhcos-4.9.0-x86_64-live-initramfs.x86_64.img.part’ saved [87854752/87854752]
====> Creating ignition configs:
INFO Consuming Install Config from target directory
WARNING Making control-plane schedulable by setting MastersSchedulable to true for Scheduler cluster settings
INFO Ignition-Configs created in: install_dir and install_dir/auth
#################################
### CREATING LOAD BALANCER VM ###
#################################
====> Downloading Centos 7 cloud image:
--2021-10-19 23:46:44-- https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
Resolving cloud.centos.org (cloud.centos.org)... 18.188.140.33
Connecting to cloud.centos.org (cloud.centos.org)|18.188.140.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 858783744 (819M) [application/octet-stream]
Saving to: ‘/root/ocp4_downloads/CentOS-7-x86_64-GenericCloud.qcow2.part’
/root/ocp4_downloads/CentOS-7-x86_64-Gener 100%[========================================================================================>] 819.00M 3.64MB/s in 4m 12s
2021-10-19 23:50:57 (3.25 MB/s) - ‘/root/ocp4_downloads/CentOS-7-x86_64-GenericCloud.qcow2.part’ saved [858783744/858783744]
====> Copying Image for Loadbalancer VM: ok
====> Setting up Loadbalancer VM:
[ 0.0] Examining the guest ...
[ 24.8] Setting a random seed
[ 24.8] Uninstalling packages: cloud-init
[ 26.4] SSH key inject: root
[ 27.8] Installing packages: haproxy
[ 43.1] Installing packages: bind-utils
[ 47.4] Copying: install_dir/bootstrap.ign to /opt/
[ 47.5] Copying: install_dir/master.ign to /opt/
[ 47.5] Copying: install_dir/worker.ign to /opt/
[ 47.5] Copying: /root/ocp4_downloads/rhcos-4.9.0-x86_64-live-rootfs.x86_64.img to /opt/
[ 53.4] Copying: tmpws.service to /etc/systemd/system/
[ 53.4] Copying: haproxy.cfg to /etc/haproxy/
[ 53.4] Running: systemctl daemon-reload
[ 53.4] Running: systemctl enable tmpws.service
[ 53.5] SELinux relabelling
[ 63.7] Finishing off
====> Creating Loadbalancer VM:
** (process:35621): WARNING **: 23:52:02.955: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Starting Loadbalancer VM ok
====> Waiting for Loadbalancer VM to obtain IP address: 192.168.122.217
====> Adding DHCP reservation for LB IP/MAC: ok
====> Adding LB hosts entry in /etc/hosts.jesusdevop: ok
====> Waiting for SSH access on LB VM: ok
############################################
#### CREATE BOOTSTRAPING RHCOS/OCP NODES ###
############################################
====> Creating Boostrap VM:
** (process:35765): WARNING **: 23:52:21.876: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Creating Master-1 VM:
** (process:35829): WARNING **: 23:52:23.746: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Creating Master-2 VM:
** (process:35878): WARNING **: 23:52:25.582: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Creating Master-3 VM:
** (process:35927): WARNING **: 23:52:27.408: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Creating Worker-1 VM:
** (process:35978): WARNING **: 23:52:29.377: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Creating Worker-2 VM:
** (process:36025): WARNING **: 23:52:31.306: Entity http://pcisig.com/pci/1B36/0100 referenced but not defined
ok
====> Waiting for RHCOS Installation to finish:
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-bootstrap jesusdevop-master-1 jesusdevop-master-2 jesusdevop-master-3 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-master-1 jesusdevop-master-2 jesusdevop-worker-1 jesusdevop-worker-2
--> VMs with pending installation: jesusdevop-master-1 jesusdevop-worker-1 jesusdevop-worker-2
====> Marking jesusdevop.local as local in dnsmasq: ok
====> Starting Bootstrap VM: ok
====> Starting Master-1 VM: ok
====> Starting Master-2 VM: ok
====> Starting Master-3 VM: ok
====> Starting Worker-1 VMs: ok
====> Starting Worker-2 VMs: ok
====> Waiting for Bootstrap to obtain IP address: 192.168.122.187
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
====> Waiting for Master-1 to obtain IP address: 192.168.122.243
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
==> Adding SRV record in dnsmasq: ok
====> Waiting for Master-2 to obtain IP address: 192.168.122.220
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
==> Adding SRV record in dnsmasq: ok
====> Waiting for Master-3 to obtain IP address: 192.168.122.113
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
==> Adding SRV record in dnsmasq: ok
====> Waiting for Worker-1 to obtain IP address: 192.168.122.46
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
====> Waiting for Worker-2 to obtain IP address: 192.168.122.68
==> Adding DHCP reservation: ok
==> Adding hosts entry in /etc/hosts.jesusdevop: ok
====> Adding wild-card (*.apps) dns record in dnsmasq: ok
====> Resstarting libvirt and dnsmasq: ok
====> Configuring haproxy in LB VM: ..... ok
====> Waiting for SSH access on Boostrap VM: ok
###############################
#### OPENSHIFT BOOTSTRAPING ###
###############################
====> Waiting for Boostraping to finish:
(Monitoring activity on bootstrap.jesusdevop.local)
--> Image Downloaded: quay.io/openshift-release-dev/ocp-release-4f82895cef59
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-9dc2a95d5c00
--> Phase Completed: cvo-bootstrap
--> Phase Completed: openshift-manifests
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-af4cb084a328
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-f62eb8b90ea4
--> Phase Completed: config-bootstrap
--> Phase Completed: etcd-bootstrap
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-8c9990c52937
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-394842e69fb3
--> Phase Completed: kube-apiserver-bootstrap
--> Container: etcd 0 Running
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-3e2e5fa50a1f
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-f57238cc2527
--> Phase Completed: kube-controller-manager-bootstrap
--> Phase Completed: kube-scheduler-bootstrap
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-56e563163cbd
--> Phase Completed: ingress-operator-bootstrap
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-b946948a7bfa
--> Phase Completed: mco-bootstrap
--> Container: machine-config-server 0 Running
--> Container: machine-config-controller 0 Exited
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-e4009ba30831
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-5b4d293c9dab
--> Phase Completed: cco-bootstrap
--> Container: cloud-credential-operator 0 Running
--> Container: cluster-version-operator 0 Running
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-7cf45603c35f
--> Container: cluster-policy-controller 0 Exited
--> Image Downloaded: quay.io/openshift-release-dev/ocp-v4.0-art-dev-28e9d0b97834
--> Container: cluster-policy-controller 1 Running
--> Container: kube-controller-manager 0 Running
--> Container: kube-scheduler 0 Running
--> Container: kube-apiserver-insecure-readyz 0 Running
--> Container: kube-apiserver 0 Running
--> Container: setup 0 Exited
==> Kubernetes API is Up
--> (bootkube.service is active, Kube API is Up)
--> (bootkube.service is active, Kube API is Up)
--> Node master-1.jesusdevop.local NotReady
--> Node master-2.jesusdevop.local NotReady
--> Node master-3.jesusdevop.local NotReady
--> (bootkube.service is active, Kube API is Up)
--> Node master-1.jesusdevop.local Ready
--> Node master-3.jesusdevop.local Ready
--> Node master-2.jesusdevop.local Ready
--> (bootkube.service is active, Kube API is Up)
--> Container: kube-scheduler 1 Running
--> Container: kube-scheduler 0 Exited
--> Container: cluster-version-operator 1 Running
--> Container: cluster-policy-controller 2 Running
--> Container: cloud-credential-operator 1 Running
--> Container: kube-scheduler 2 Running
--> Container: kube-controller-manager 1 Running
--> Container: kube-scheduler 1 Exited
--> Container: cluster-policy-controller 1 Exited
--> Container: kube-controller-manager 0 Exited
--> Container: kube-apiserver-insecure-readyz 0 Exited
--> Container: cluster-version-operator 0 Exited
--> Container: cloud-credential-operator 0 Exited
--> Container: kube-apiserver-insecure-readyz 1 Running
--> Container: kube-apiserver 1 Running
--> Container: setup 1 Exited
--> Container: kube-scheduler 2 Exited
--> Container: kube-apiserver 0 Exited
--> Container: kube-scheduler 3 Running
--> Phase Completed: cb-bootstrap
--> Phase Completed: cvo-overrides
--> Container: etcd 1 Exited
--> Container: kube-scheduler 3 Exited
--> Container: kube-apiserver-insecure-readyz 1 Exited
--> Container: cluster-version-operator 1 Exited
--> Container: cluster-policy-controller 2 Exited
--> Container: cloud-credential-operator 1 Exited
--> Container: kube-controller-manager 1 Exited
--> Container: machine-config-server 0 Exited
INFO Waiting up to 20m0s for the Kubernetes API at https://api.jesusdevop.local:6443...
INFO API v1.22.0-rc.0+894a78b up
INFO Waiting up to 30m0s for bootstrapping to complete...
INFO It is now safe to remove the bootstrap resources
INFO Time elapsed: 0s
====> Removing Boostrap VM: ok
====> Removing Bootstrap from haproxy: ok
#################################
#### OPENSHIFT CLUSTERVERSION ###
#################################
====> Waiting for clusterversion:
--> Patching ingress controller to run router pods on master nodes: ingresscontroller.operator.openshift.io/default patched
--> Patching image registry to use EmptyDir: config.imageregistry.operator.openshift.io/cluster patched
--> Working towards 4.9.0: 713 of 735 done (97% complete)
--> Unable to apply 4.9.0: some cluster operators have not yet rolled out
--> Working towards 4.9.0: 729 of 735 done (99% complete)
--> Unable to apply 4.9.0: the cluster operator authentication has not yet ...
--> Waiting for all nodes to ready. 3/5 are ready.
--> Approving CSR: certificatesigningrequest.certificates.k8s.io/csr-hp25t approved
--> Approving CSR: certificatesigningrequest.certificates.k8s.io/csr-tqtss approved
--> Approving CSR: certificatesigningrequest.certificates.k8s.io/csr-vf5j7 approved
--> Approving CSR: certificatesigningrequest.certificates.k8s.io/csr-5swpm approved
######################################################
#### OPENSHIFT 4 INSTALLATION FINISHED SUCCESSFULLY###
######################################################
time taken = 62 minutes
INFO Waiting up to 40m0s for the cluster at https://api.jesusdevop.local:6443 to initialize...
INFO Waiting up to 10m0s for the openshift-console route to be created...
INFO Install complete!
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/root/ocp4_cluster_jesusdevop/install_dir/auth/kubeconfig'
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.jesusdevop.local
INFO Login to the console with user: "kubeadmin", and password: "Fpzzk-uQi2Q-GYqxS-iZvpP"
INFO Time elapsed: 0s
[root@h2 ocp4_setup_upi_kvm]# cp /root/ocp4_cluster_jesusdevop/oc /usr/bin/
[root@h2 ocp4_setup_upi_kvm]# cp /root/ocp4_cluster_jesusdevop/install_dir/auth/kubeconfig /tmp/
[root@h2 ocp4_setup_upi_kvm]# export KUBECONFIG=/tmp/kubeconfig
[root@h2 ocp4_setup_upi_kvm]# oc get nodes
NAME STATUS ROLES AGE VERSION
master-1.jesusdevop.local Ready master,worker 33m v1.22.0-rc.0+894a78b
master-2.jesusdevop.local Ready master,worker 33m v1.22.0-rc.0+894a78b
master-3.jesusdevop.local Ready master,worker 33m v1.22.0-rc.0+894a78b
worker-1.jesusdevop.local Ready worker 3m12s v1.22.0-rc.0+894a78b
worker-2.jesusdevop.local Ready worker 2m46s v1.22.0-rc.0+894a78b
[root@h2 ocp4_setup_upi_kvm]# oc get co
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE MESSAGE
authentication 4.9.0 True False False 5m50s
baremetal 4.9.0 True False False 21m
cloud-controller-manager 4.9.0 True False False 32m
cloud-credential 4.9.0 True False False 39m
cluster-autoscaler 4.9.0 True False False 23m
config-operator 4.9.0 True False False 28m
console 4.9.0 True False False 11m
csi-snapshot-controller 4.9.0 True False False 26m
dns 4.9.0 True True False 22m DNS "default" reports Progressing=True: "Have 4 available DNS pods, want 5."
etcd 4.9.0 True False False 25m
image-registry 4.9.0 True False False 14m
ingress 4.9.0 True False False 14m
insights 4.9.0 True False False 21m
kube-apiserver 4.9.0 True False False 19m
kube-controller-manager 4.9.0 True False False 18m
kube-scheduler 4.9.0 True False False 18m
kube-storage-version-migrator 4.9.0 True False False 27m
machine-api 4.9.0 True False False 19m
machine-approver 4.9.0 True False False 24m
machine-config 4.9.0 True False False 22m
marketplace 4.9.0 True False False 23m
monitoring 4.9.0 True False False 11m
network 4.9.0 True True False 20m DaemonSet "openshift-multus/multus-additional-cni-plugins" is not available (awaiting 2 nodes)...
node-tuning 4.9.0 True False False 22m
openshift-apiserver 4.9.0 True False False 16m
openshift-controller-manager 4.9.0 True False False 22m
openshift-samples 4.9.0 True False False 15m
operator-lifecycle-manager 4.9.0 True False False 25m
operator-lifecycle-manager-catalog 4.9.0 True False False 25m
operator-lifecycle-manager-packageserver 4.9.0 True False False 16m
service-ca 4.9.0 True False False 28m
storage 4.9.0 True False False 28m
[root@h2 ocp4_setup_upi_kvm]# oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.9.0 True False 5m56s Cluster version is 4.9.0
[root@h2 ocp4_setup_upi_kvm]#
I'm impressed. I am going to check the firewall rules and my vpn, since I connect remotely to my lab. The only difference in the installation steps is that I install it on the physical machine. It is evident that the error is related to my network.
Heartfelt thanks for your help and your script. You must be very proud of your work and contribution. Congratulations. He has a new follower in Madrid.
Good Morning, I am trying the script again and continue with the error. I have followed the README of dns configuration. Can you help me please
[root@localhost ~]# sudo dnf install qemu-kvm qemu-img bridge-utils libvirt libvirt-client virt-install libguestfs-tools-c Updating Subscription Management repositories. Last metadata expiration check: 3:17:43 ago on Mon 18 Oct 2021 05:12:26 AM CEST. Package qemu-kvm-15:4.2.0-48.module+el8.4.0+11909+3300d70f.3.x86_64 is already installed. Package qemu-img-15:4.2.0-48.module+el8.4.0+11909+3300d70f.3.x86_64 is already installed. Package bridge-utils-1.7.1-2.el8.x86_64 is already installed. Package libvirt-6.0.0-35.1.module+el8.4.0+11273+64eb94ef.x86_64 is already installed. Package libvirt-client-6.0.0-35.1.module+el8.4.0+11273+64eb94ef.x86_64 is already installed. Package virt-install-2.2.1-4.el8.noarch is already installed. Package libguestfs-tools-c-1:1.40.2-27.module+el8.4.0+9282+0bdec052.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [root@localhost ~]# nmcli con show NAME UUID TYPE DEVICE eno1 b63287ec-b1c1-4166-9a91-339e38973e5a ethernet eno1 virbr0 fbb7c85a-ac12-4b72-aa5c-f695d7986374 bridge virbr0 eno2 6d81026c-cbab-48a8-9112-13104053c58c ethernet -- eno3 7a93de1c-8929-4b70-bf29-b944b09e6f1d ethernet -- eno4 ba017829-7567-4285-bca7-7d87d2202855 ethernet -- eno5 dea0695b-cbd2-4555-917c-1c5acff5ac6c ethernet -- eno6 f3101a3c-414c-4757-8b9c-ffd5ed03d2a6 ethernet -- eno7 78f44cc6-d897-4658-89c4-b9eb2a1591e1 ethernet -- eno8 d500200d-e427-4dad-b24f-970f55fc3e72 ethernet -- [root@localhost ~]# echo -e "[main]\ndns=dnsmasq" > /etc/NetworkManager/conf.d/nm-dns.conf [root@localhost ~]# systemctl restart NetworkManager [root@localhost ~]# cat /etc/resolv.conf
Generated by NetworkManager nameserver 127.0.0.1 options edns0 trust-ad [root@localhost ~]# cat /etc/systemd/resolved.conf
This file is part of systemd. systemd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Entries in this file show the compile time defaults. You can change settings by editing this file. Defaults can be restored by simply deleting this file. See resolved.conf(5) for details [Resolve]
DNS=
FallbackDNS=
Domains=
LLMNR=yes
MulticastDNS=yes
DNSSEC=allow-downgrade
DNSOverTLS=no
Cache=yes
DNSStubListener=udp
DNS=127.0.0.1 Domains="~."
[root@localhost ~]# cd ocp4_setup_upi_kvm/ [root@localhost ocp4_setup_upi_kvm]# ./ocp4_setup_upi_kvm.sh --cluster-name ocp4 --ocp-version 4.5.latest --pull-secret /home/pull-secret --vm-dir /var/lib/libvirt/images/