In this course, the main computer system that is used for hands-on learning activities is workstation.
The systems called bastion and classroom must always be running for proper use of the lab environment.
These three systems are in the lab.example.com DNS domain.
A Red Hat OpenShift Container Platform (RHOCP) 4.12 single-node (SNO) bare metal UPI installation is used in this classroom.
Infrastructure systems for the RHOCP cluster are in the ocp4.example.com DNS domain.
All student computer systems have a standard user account, student, which has the student password.
The root password on all student systems is redhat.
Table 1. Classroom Machines
| Machine name | IP addresses | Role |
|---|---|---|
| bastion.lab.example.com | 172.25.250.254 | Router that links VMs to central servers |
| classroom.example.com | 172.25.254.254 | Server that hosts the required classroom materials |
| idm.ocp4.example.com | 192.168.50.100 | Identity management server for user federation |
| master01.ocp4.example.com | 192.168.50.10 | An RHOCP single-node (SNO) cluster |
| registry.ocp4.example.com | 192.168.50.50 | Registry server to provide a private container images registry to the OpenShift cluster |
| utility.lab.example.com | 172.25.250.253 | Server that provides supporting services that the RHOCP cluster requires, including DHCP, NFS, and routing to the cluster network |
| sso.lab.example.com | 192.168.50.40 | Server that hosts a PostgreSQL database, and the RH-SSO zip installation |
| workstation.lab.example.com | 172.25.250.9 | Graphical workstation that students use |
The primary function of bastion is to act as a router between the network that connects the student machines and the classroom network.
If bastion is down, then other student machines do not function properly, or might even hang during boot.
The utility system acts as a router between the network that connects the RHOCP cluster machines and the student network.
If utility is down, then the RHOCP cluster does not function properly, or might even hang during boot.
Several systems in the classroom provide supporting services.
The classroom server hosts software and lab materials for the hands-on activities.
The registry server is a private Red Hat Quay container registry that hosts the container images for the hands-on activities.
Information about how to use these servers is provided in the instructions for those activities.
The master01 system serves as the control plane and compute node for the RHOCP cluster.
The cluster uses the registry system as its own private container image registry.
The idm system provides LDAP services to the RHOCP cluster for authentication and authorization support.
The sso system provides a PostgreSQL relational database, and the Java runtime, to execute the RH-SSO instance in the exercises that use ZIP installation.
Students use the workstation machine to access a dedicated RHOCP cluster, for which they have cluster administrator privileges.
Table 2. RHOCP Access Methods
| Access method | Endpoint |
|---|---|
| Web console | https://console-openshift-console.apps.ocp4.example.com |
| API | https://api.ocp4.example.com:6443 |
The RHOCP cluster has a standard user account, developer, which has the developer password.
The administrative account, admin, has the redhat password.
You are assigned remote computers in a Red Hat Online Learning (ROLE) classroom. Self-paced courses are accessed through a web application that is hosted at . Log in to this site with your Red Hat Customer Portal user credentials.
The virtual machines in your classroom environment are controlled through web page interface controls. The state of each classroom virtual machine is displayed on the tab.
Table 3. Machine States
| Virtual machine state | Description |
|---|---|
| building | The virtual machine is being created. |
| active | The virtual machine is running and available. If it just started, it still might be starting services. |
| stopped | The virtual machine is shut down. On starting, the virtual machine boots into the same state it was in before shutdown. The disk state is preserved. |
Table 4. Classroom Actions
| Button or action | Description |
|---|---|
| Create the ROLE classroom. Creates and starts all the virtual machines that are needed for this classroom. | |
| The ROLE classroom virtual machines are being created. Creation can take several minutes to complete. | |
| Delete the ROLE classroom. Destroys all virtual machines in the classroom. All saved work on those systems' disks is lost. | |
| Start all virtual machines in the classroom. | |
| All virtual machines in the classroom are starting. | |
| Stop all virtual machines in the classroom. |
Table 5. Machine Actions
| Button or action | Description |
|---|---|
Connect to the system console of the virtual machine in a new browser tab.
You can log in directly to the virtual machine and run commands, when required.
Normally, log in to the workstation virtual machine only, and from there, use ssh to connect to the other virtual machines. | |
| → | Start (power on) the virtual machine. |
| → | Gracefully shut down the virtual machine, preserving disk contents. |
| → | Forcefully shut down the virtual machine, while still preserving disk contents. This action is equivalent to removing the power from a physical machine. |
| → | Forcefully shut down the virtual machine and reset associated storage to its initial state. All saved work on that system's disks is lost. |
At the start of an exercise, if instructed to reset a single virtual machine node, click → for only that specific virtual machine.
At the start of an exercise, if instructed to reset all virtual machines, click → on every virtual machine in the list.
If you want to return the classroom environment to its original state at the start of the course, then click to remove the entire classroom environment. After the lab is deleted, then click to provision a new set of classroom systems.
The operation cannot be undone. All completed work in the classroom environment is lost.
The Red Hat Online Learning enrollment entitles you to a set allotment of computer time. To help to conserve your allotted time, the ROLE classroom uses timers, which shut down or delete the classroom environment when the appropriate timer expires.
To adjust the timers, locate the two buttons at the bottom of the course management page. Click the auto-stop button to add another hour to the auto-stop timer. Click the auto-destroy button to add another day to the auto-destroy timer. Auto-stop has a maximum of 11 hours, and auto-destroy has a maximum of 14 days. Be careful to keep the timers set while you are working, so that your environment is not unexpectedly shut down. Be careful not to set the timers unnecessarily high, which could waste your subscription time allotment.