As of 10/1 a new blueprint has been deployed to ROLE, these hotfixes are no longer necessary for the DO180 classroom environment.
These hotfixes address two distinct issues reported with student labs not working in DO180 Classrooms deployed after 2019-09-11. The following set of instructions should be run either by the students as instructed, or alternatively scripted by the instructor to lay down the steps. Issues should be reported through normal Red Hat training support channels.
O180-OCP4.0 - Hot Fix Docker Registry Cert Manual fix instructions:
Essentially you are copying the docker registry certificate from the Services machine and placing it on workstation, master0, worker0, and worker1 and then trusting it again. You then must restart the cluster machines (master0, worker0, worker1) to get the cluster to recognize the new cert.
Login to workstation as student then run:
sudo -i scp root@services:/etc/pki/ca-trust/source/anchors/example.com.crt /etc/pki/ca-trust/source/anchors
It's okay to overwrite the existing one - now trust it
Repeat this process on master0, worker0, and worker1
sudo ssh core@master0 sudo -i scp root@services:/etc/pki/ca-trust/source/anchors/example.com.crt /etc/pki/ca-trust/source/anchors update-ca-trust extract
Repeat for worker0 and worker1
Restart the three VMs master0, worker0, and worker1
Once they are rebooted it can take up to 5-10 minutes for the cluster to allow you to log in.
To Test the fix on Workstation: sudo podman pull registry.lab.example.com/httpd:2.4
You should get no CA errors and the image should be visible via
sudo podman images
To test the fix in the OCP Cluster: Login to the cluster using the kubeadmin credentials (see course for details) oc new-project test oc new-app registry.lab.example.com/httpd:2.4 --insecure-registry
Observe the output of the following command: oc get events
O180-OCP4.0 - Hot Fix Web Console Access and Route Creation Manual Fix instructions: Problem accessing the OCP web console and other OCP routes: From workstation: ssh root@lb vi /etc/haproxy/haproxy.cfg Make the bottom of the file look like this (you're changing the ports on http and https): Save the file and restart haproxy: systemctl restart haproxy Test the console with curl or Firefox Use kubeadmin to login - password is on workstation /home/student/auth/kubeadmin-password