Bookmark this page

Orientation to the Classroom Environment

Figure 0.1: Classroom environment

In this course, the main computer system used for hands-on learning activities is workstation. The system called bastion must always be running. These two systems are in the lab.example.com DNS domain.

All student computer systems have a standard user account, student, which has the password student. The root password on all student systems is redhat.

Table 1. Classroom Machines

Machine nameIP addressesRole
workstation.lab.example.com172.25.250.9Graphical workstation used by students
bastion.lab.example.com172.25.250.254Router linking student's VMs to classroom servers
classroom.lab.example.com172.25.252.254Server hosting the classroom materials required by the course
utility.lab.example.com172.25.250.253Server providing supporting services required by the RHOCP cluster including DHCP and NFS and routing to the RHOCP servers.
master01.ocp4.example.com192.168.50.10An OpenShift control plane and compute node.
master02.ocp4.example.com192.168.50.11An OpenShift control plane and compute node.
master03.ocp4.example.com192.168.50.12An OpenShift control plane and compute node.

The bastion system acts as a router between the network that connects the student machines and the classroom network. If bastion is down, other student machines may not function properly or may even hang during boot.

The utility system acts as a router between the network that connects the OpenShift cluster machines and the student network. If utility is down, the OpenShift cluster will not function properly or may even hang during boot.

Several systems in the classroom provide supporting services. Two servers, content.example.com and materials.example.com, are sources for software and lab materials used in hands-on activities. Information on how to use these servers is provided in the instructions for those activities.

Students use the workstation machine to access a dedicated OpenShift cluster, for which they have cluster administrator privileges.

Controlling Your Systems

You are assigned a remote computer in a Red Hat Online Learning classroom, which is accessed through a web application hosted at http:///. Students should log in to this site using their Red Hat Customer Portal user credentials.

Controlling the Virtual Machines

The virtual machines in your classroom environment are controlled through a web page. The state of each virtual machine in the classroom is displayed on the page under the Lab Environment tab.

Table 2. Machine States

Virtual Machine StateDescription
activeThe virtual machine is running and available (or, when booting, soon will be).
stoppedThe virtual machine is completely shut down.
buildingThe initial creation of the virtual machine is being performed.

Depending on the state of a machine, a selection of the following actions is available.

Table 3. Classroom/Machine Actions

Button or ActionDescription
CREATE Create the ROL classroom. Creates all of the virtual machines needed for the classroom and starts them. Can take several minutes to complete.
DELETE Delete the ROL classroom. Destroys all virtual machines in the classroom. Caution: Any work generated on the disks is lost.
START Start all virtual machines in the classroom.
STOP Stop all virtual machines in the classroom.
OPEN CONSOLE Open a new tab in the browser and connect to the console of the virtual machine. Students can log in directly to the virtual machine and run commands. In most cases, you should log in to the workstation virtual machine and use ssh to connect to the other virtual machines.
ACTIONStart Start (power on) the virtual machine.
ACTIONShutdown Gracefully shut down the virtual machine, preserving the contents of its disk.
ACTIONPower Off Forcefully shut down the virtual machine, preserving the contents of its disk. This is equivalent to removing the power from a physical machine.
ACTIONReset Forcefully shut down the virtual machine and reset the disk to its initial state. Caution: Any work generated on the disk is lost.

At the start of an exercise, if instructed to reset a single virtual machine node, click ACTIONReset for only the specific virtual machine.

At the start of an exercise, if instructed to reset all virtual machines, click ACTIONReset

If you want to return the classroom environment to its original state at the start of the course, you can click DELETE to remove the entire classroom environment. After the lab has been deleted, you can click CREATE to provision a new set of classroom systems.

Warning

The DELETE operation cannot be undone. Any work you have completed in the classroom environment up to that point will be lost.

The Autostop Timer

The Red Hat Online Learning enrollment entitles students to a certain amount of computer time. To help conserve allotted computer time, the ROL classroom has an associated countdown timer, which shuts down the classroom environment when the timer expires.

To adjust the timer, click + to add one hour to the timer. Note that there is a maximum time of twelve hours.

Troubleshooting Lab Environment

Deleting 3scale resources does not work

Red Hat 3scale API Management is an eventually consistent distributed system. Deleting resources is a non-prioritized operation that takes time.

If you need to delete and recreate resources, for example by using the lab finish and consequently lab start commands, then you might encounter failures, such as:

Could not finish configuring product: Response(422 Unprocessable Entity): b'{"errors": {"System Name": ["has already been taken"]}}

To work around the issue, wait after removing a resource. Removing a resource might take 10 minutes or longer.

Controlling Your Systems

You are assigned remote computers in a Red Hat Online Learning classroom. They are accessed through a web application hosted at . You should log in to this site using your Red Hat Customer Portal user credentials.

Controlling the Virtual Machines

The virtual machines in your classroom environment are controlled through a web page. The state of each virtual machine in the classroom is displayed on the page under the Online Lab tab.

Table 4. Machine States

Virtual Machine State Description
STARTING The virtual machine is in the process of booting.
STARTED The virtual machine is running and available (or, when booting, soon will be).
STOPPING The virtual machine is in the process of shutting down.
STOPPED The virtual machine is completely shut down. Upon starting, the virtual machine boots into the same state as when it was shut down (the disk will have been preserved).
PUBLISHING The initial creation of the virtual machine is being performed.
WAITING_TO_START The virtual machine is waiting for other virtual machines to start.

Depending on the state of a machine, a selection of the following actions is available.

Table 5. Classroom/Machine Actions

Button or Action Description
PROVISION LAB Create the ROL classroom. Creates all of the virtual machines needed for the classroom and starts them. Can take several minutes to complete.
DELETE LAB Delete the ROL classroom. Destroys all virtual machines in the classroom. Caution: Any work generated on the disks is lost.
START LAB Start all virtual machines in the classroom.
SHUTDOWN LAB Stop all virtual machines in the classroom.
OPEN CONSOLE Open a new tab in the browser and connect to the console of the virtual machine. You can log in directly to the virtual machine and run commands. In most cases, you should log in to the workstation virtual machine and use ssh to connect to the other virtual machines.
ACTIONStart Start (power on) the virtual machine.
ACTIONShutdown Gracefully shut down the virtual machine, preserving the contents of its disk.
ACTIONPower Off Forcefully shut down the virtual machine, preserving the contents of its disk. This is equivalent to removing the power from a physical machine.
ACTIONReset Forcefully shut down the virtual machine and reset the disk to its initial state. Caution: Any work generated on the disk is lost.

At the start of an exercise, if instructed to reset a single virtual machine node, click ACTIONReset for only the specific virtual machine.

At the start of an exercise, if instructed to reset all virtual machines, click ACTIONReset

If you want to return the classroom environment to its original state at the start of the course, you can click DELETE LAB to remove the entire classroom environment. After the lab has been deleted, you can click PROVISION LAB to provision a new set of classroom systems.

Warning

The DELETE LAB operation cannot be undone. Any work you have completed in the classroom environment up to that point will be lost.

The Autostop Timer

The Red Hat Online Learning enrollment entitles you to a certain amount of computer time. To help conserve allotted computer time, the ROL classroom has an associated countdown timer, which shuts down the classroom environment when the timer expires.

To adjust the timer, click MODIFY to display the New Autostop Time dialog box. Set the number of hours until the classroom should automatically stop. Note that there is a maximum time of ten hours. Click ADJUST TIME to apply this change to the timer settings.

Revision: do240-2.11-40390f6