Chapter 5. Setting up the test environment The first step towards certifying your product is setting up the environment where you can run the tests. The test environment consists of three systems: Test host : A workstation, referred to as the test host, is used as a medium for accessing the Controller and Compute nodes. The tests are only initiated on this system but are run on the two nodes. Controller : The tests designed for the specific plugin undergoing certification are run on the Controller node. Compute : Remaining certification-related tests are run on the Compute node. In multi-host, information is provided to the Compute node for test execution. 5.1. Setting up the test host The test host is used only to initiate a test run on the Controller and Compute node, display the progress of the tests, and present the final result file after gathering results from both nodes. Prerequisites You have installed RHEL 8 or 9 on the system. You have enabled access to the Controller and Compute nodes from the test host. You have installed Cockpit on the system. Procedure Use your RHN credentials to register your system using Red Hat Subscription Management: Display the list of available subscriptions for your system: Search for the subscription that provides the Red Hat Certification (for RHEL Server) repository and make a note of the subscription and its Pool ID. Attach the subscription to your system: Replace the pool_ID with the Pool ID of the subscription. Note You don't have to attach the subscription to your system, if you enable the option Simple content access for Red Hat Subscription Management . For more details, see How do I enable Simple Content Access for Red Hat Subscription Management? Subscribe to the Red Hat Certification channel: On RHEL 8: Replace HOSTTYPE with the system architecture. To find out the system architecture, run Example: On RHEL 9: Replace HOSTTYPE with the system architecture. To find out the system architecture, run Example: Install the certification and Cockpit RPMs. Only on RHEL 9 Generate a new SSH key pair on the test host, if it is not already present. View and copy the public key to enter it later during the set up of Controller and Compute node to allow secure and passwordless communication between the test host and each node. Replace <user> with your user name. Example: # cat /root/.ssh/id_rsa.pub 5.2. Setting up the Controller and Compute nodes Separate tests are run on the two nodes based on the defined role of each node in the test plan. Note Repeat the following process for setting up each node. Prerequisites You have installed RHOSP on the system based on the supported RHEL version, as applicable. The corresponding supported versions are as follows: RHOSP version Supported RHEL version 17.0 9.0 17.1 9.2 You have installed and enabled Cockpit on both nodes. Note You have installed the plugin that needs certification. This is applicable only to the Controller node. Procedure Use your RHN credentials to register your system using Red Hat Subscription Management: Display the list of available subscriptions for your system: Search for the subscription that provides the Red Hat Certification (for RHEL Server) repository and make a note of the subscription and its Pool ID. Attach the subscription to your system: Replace the pool_ID with the Pool ID of the subscription. Subscribe to the Red Hat Certification channel: On RHEL 8: Replace HOSTTYPE with the system architecture. To find out the system architecture, run Example: On RHEL 9: Replace HOSTTYPE with the system architecture. To find out the system architecture, run Example: Install the certification RPM. Install OpenStack test suite package: Open the authorized keys file in the Controller and Compute node and paste the public key of the test host that you copied earlier, and then save the file. This will allow secure and passwordless communication between the test host and each node. Replace <user> with your user name. Example: Additional resources Setting up passwordless SSH

Commands:
subscription-manager register
subscription-manager list --available*
subscription-manager attach --pool= <pool_ID >
subscription-manager repos --enable=cert-1-for-rhel-8- <HOSTTYPE> -rpms
uname -m
subscription-manager repos --enable=cert-1-for-rhel-8-x86_64-rpms
subscription-manager repos --enable=cert-1-for-rhel-9- <HOSTTYPE> -rpms
uname -m
subscription-manager repos --enable=cert-1-for-rhel-9-x86_64-rpms
yum install redhat-certification-cockpit
yum install redhat-certification
ssh-keygen
cat /<user>/.ssh/id_rsa.pub
subscription-manager register
subscription-manager list --available*
subscription-manager attach --pool= <pool_ID >
subscription-manager repos --enable=cert-1-for-rhel-8- <HOSTTYPE> -rpms
uname -m
subscription-manager repos --enable=cert-1-for-rhel-8-x86_64-rpms
subscription-manager repos --enable=cert-1-for-rhel-9- <HOSTTYPE> -rpms
uname -m
subscription-manager repos --enable=cert-1-for-rhel-9-x86_64-rpms
yum install redhat-certification
yum install redhat-certification-openstack
vi /<user>/.ssh/authorized_keys
vi /root/.ssh/authorized_keys