Este conteúdo não está disponível no idioma selecionado.
Chapter 7. Configuring the systems and running tests using RHCert CLI Tool
To proceed with the Cloud Instance Type certification process, configure the systems to run the certification tests.
7.1. For RHEL hardware certification Copiar o linkLink copiado para a área de transferência!
To complete the RHEL hardware certification process by using CLI, you must prepare the host under test (HUT) and test server, run the tests, and retrieve the test results.
7.1.1. Using the test plan to prepare the host under test for testing Copiar o linkLink copiado para a área de transferência!
Running the provision command performs a number of operations, such as setting up passwordless SSH communication with the test server, installing the required packages on your system based on the certification type, and creating a final test plan to run, which is a list of common tests taken from both the test plan provided by Red Hat and tests generated on discovering the system requirements.
For instance, required hardware or software packages will be installed if the test plan is designed for certifying a hardware or a software product.
Prerequisites
- You have the hostname or the IP address of the test server.
Procedure
Run the provision command in either way. The test plan will automatically get downloaded to your system.
If you have already downloaded the test plan:
# rhcert-provision <path_to_test_plan_document>Replace <path_to_test_plan_document> with the test plan file saved on your system.
Follow the on-screen instructions.
If you have not downloaded the test plan:
# rhcert-provisionFollow the on-screen instructions and enter your Certification ID when prompted.
- When prompted, provide the hostname or the IP address of the test server to set up passwordless SSH. You are prompted only the first time you add a new system.
7.1.2. Using the test plan to prepare the test server for testing Copiar o linkLink copiado para a área de transferência!
Running the Provision command enables and starts the rhcertd service, which configures services specified in the test suite on the test server, such as iperf for network testing, and an nfs mount point used in kdump testing.
Prerequisites
- You have the hostname or IP address of the host under test.
Procedure
Run the provision command by defining the role, “test server”, to the system you are adding.
This is required only for provisioning the test server.
# rhcert-provision --role test-server <path_to_test_plan_document>Replace <path_to_test_plan_document> with the test plan file saved on your system.
7.1.3. Running the certification tests using CLI Copiar o linkLink copiado para a área de transferência!
Procedure
Run the following command:
# rhcert-runWhen prompted, choose whether to run each test by typing
yesorno.You can also run particular tests from the list by typing
select.
After a test reboot, rhcert is running in the background to verify the image. Use tail -f /var/log/rhcert/RedHatCertDaemon.log to see the current progress and status of the verification.
7.1.4. Submitting the test results file Copiar o linkLink copiado para a área de transferência!
Procedure
Log in to authenticate your device.
NoteLogging in is mandatory to submit the test results file.
# rhcert-cli login- Open the generated URL in a new browser window or tab.
- Enter the login and password and click Log in.
Click Grant access.
Device log in successful message displays.
-
Return to the terminal and enter
yesto the Please confirm once you grant access prompt.
Submit the result file.
# rhcert-submitWhen prompted, enter your Certification ID.
7.2. For RHEL AI hardware certification Copiar o linkLink copiado para a área de transferência!
To proceed with the RHEL AI hardware certification testing process, configure the systems to run the certification tests.
Prerequisites
- You have the hostname or IP address of the host under test.
- You have RHEL AI 3 installed on the system under test (SUT).
You have either of the following:
- Access to registry.redhat.io., or
- A valid Hugging Face access token
Procedure
Open a terminal on your server host and log in to registry.redhat.io.
podman login registry.redhat.ioStart the Podman service.
systemctl start podman systemctl enable podman.socket --nowCreate the results directories.
mkdir -p /tmp/results /var/log/rhcert /run/rhcert/RHAIIS_CACHE/etc/containersPull the redhat-certification-system-ai container image.
podman pull registry.redhat.io/rhcertification/redhat-certification-system-ai:latestThe latest and earlier versions are available in the Red Hat Container Catalog.
Create a Podman pod.
podman pod create rhcert-podStart the container inside the pod.
podman container runlabel run registry.redhat.io/rhcertification/redhat-certification-system-ai:latestStart the test suite inside the container.
podman exec -it rhcert /bin/bash -c /usr/local/bin/rhcert-rhaiis-test.shAlternatively, if you want to run RHAIIS by pulling the model from registry.redhat.io or using a local model, use:
podman exec -it rhcert /bin/bash -c "/usr/local/bin/rhcert-rhaiis-test.sh local-model"Using this option removes the need for a Hugging Face access token and instead uses the Red Hat catalog
NoteWhen prompted for the password for
root@host.containers.internal, enter the host’s root SSH password.- After the test run completes, the terminal displays the path to the results file. Submit this file to the certification case.
To stop the pod, run:
podman pod rm -f rhcert-pod
Verification
You get a confirmation message about the results file submission. The results file is submitted for the Red Hat certification team’s review.