openQA - Accès à la production Rocky
Exigences du système¶
Pour accéder au système openQA de Rocky Production et réaliser les exemples ci-dessous, vous aurez besoin d'un accès à un système fournissant le client openQA. En règle générale, il s'agira d'un système/conteneur basé sur Fedora (mais cela pourrait être Rocky 9.6) avec le paquet openqa-client et ses (~239) dépendances installés.
Vous pouvez aussi installer le serveur openQA sur votre propre machine locale. Cf. : Manual Install
Exigences en matière d'accès¶
API GET access¶
Le système openQA Rocky Linux permet un accès public sans restriction via son interface web ou en utilisant le openqa-client pour les opérations GET sur l'API.
API POST access¶
Pour utiliser le client openQA afin d'interagir avec le système openQA Rocky Linux pour les opérations POST, les éléments suivants sont requis :
- un compte en règle dans le système Rocky Linux Account Services,
- autorisation d'accès à l'API
POSTde la part de l'équipe de test Rocky Linux, et - une clé API openQA générée sur le système openQA Rocky Linux.
Configuration de votre client OpenQA¶
Selon la commande help du client openqa, vous pouvez configurer votre client pour utiliser votre clé API de plusieurs manières.
L'exemple suivant montre comment configurer votre client selon la méthode la plus courante. Il est possible de configurer plusieurs clés API client OpenQA de cette manière.
$ mkdir -p ~/.config/openqa
$ vim ~/.config/openqa/client.conf
$ cat ~/.config/openqa/client.conf
[localhost]
key = your_localhost_api_key
secret = your_localhost_api_secret
[openqa.rockylinux.org]
key = your_api_key
secret = your_api_secret
Test de votre installation client OpenQA¶
$ openqa-cli api --host https://openqa.rockylinux.org --pretty jobs/overview
devrait fournir une liste des jobs actuels, puis sélectionnez un numéro de tâche et affichez les informations relatives à cette tâche spécifique, par exemple :
$ openqa-cli api --host https://openqa.rockylinux.org --pretty jobs/1
{
"job" : {
"assets" : {
"iso" : [
"Rocky-8.6-x86_64-boot.iso"
]
},
"assigned_worker_id" : 2,
"blocked_by_id" : null,
"children" : {
"Chained" : [],
"Directly chained" : [],
"Parallel" : []
},
"clone_id" : null,
"group" : "Rocky",
"group_id" : 2,
"has_parents" : 0,
"id" : 1,
"name" : "rocky-8.6-boot-iso-x86_64-Build-8.6-boot-iso--20221110.223812.0-install_default@64bit",
"parents" : {
"Chained" : [],
"Directly chained" : [],
"Parallel" : []
},
"parents_ok" : 1,
"priority" : 10,
"result" : "failed",
"settings" : {
"ARCH" : "x86_64",
"ARCH_BASE_MACHINE" : "64bit",
"BACKEND" : "qemu",
"BUILD" : "-8.6-boot-iso--20221110.223812.0",
"DESKTOP" : "gnome",
"DISTRI" : "rocky",
"FLAVOR" : "boot-iso",
"GRUB" : "ip=dhcp",
"HDDSIZEGB" : "15",
"ISO" : "Rocky-8.6-x86_64-boot.iso",
"MACHINE" : "64bit",
"NAME" : "00000001-rocky-8.6-boot-iso-x86_64-Build-8.6-boot-iso--20221110.223812.0-install_default@64bit",
"PACKAGE_SET" : "default",
"PART_TABLE_TYPE" : "mbr",
"POSTINSTALL" : "_collect_data",
"QEMUCPU" : "Nehalem",
"QEMUCPUS" : "2",
"QEMURAM" : "3072",
"QEMUVGA" : "virtio",
"QEMU_VIRTIO_RNG" : "1",
"TEST" : "install_default",
"TEST_SUITE_NAME" : "install_default",
"TEST_TARGET" : "ISO",
"VERSION" : "8.6",
"WORKER_CLASS" : "qemu_x86_64"
},
"state" : "done",
"t_finished" : "2022-11-10T22:44:19",
"t_started" : "2022-11-10T22:38:12",
"test" : "install_default"
}
}
Références¶
Additional Information
If you have questions with respect to this content or to report concerns regarding the use or misuse content please do not hesitate to contact us at info@rockylinux.org.
Rocky Linux and the Rocky Enterprise Software Foundation (RESF) does not make any express or implied warranties, including but not limited to the warranties of non-infringement of any third party intellectual property rights. RESF does not warrant that any pending trademark applications for trademarks of RESF will result in any granted trademark protection. RESF shall not be liable for any claims relating to user's activities falling within the scope of the permission and user hereby agrees to indemnify, defend and hold RESF and its contributors harmless against any such claim.
This content is licensed under under Attribution-Share Alike 4.0 International license unless otherwise noted.
Author: Trevor Cooper