From Mageia wiki
Revision as of 16:01, 9 May 2019 by Psyca (talk | contribs) (remove ( to fix link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--doktor5000 22:33, 19 December 2015 (UTC)

I've used the instructions at: https://github.com/os-autoinst/openQA/blob/master/docs/Installing.asciidoc

For a new installation of openqa on cauldron, I used the following commands to get a basic config.
You need the openqa package installed, it should require apache webserver via the httpd package
and also all it's other dependencies (various perl modules and os-autoinst)

If you don't use sudo, then simply omit it from the commands and run them as root:

install the necessary httpd modules:

 sudo urpmi apache-mod_proxy apache-mod_proxy_html

move away default httpd vhosts configuration

 sudo mv /etc/httpd/conf/sites.d/00_default_vhosts.conf /root

create a new webserver configuration from the template, put the hostname in place

 sudo cp /etc/httpd/conf.d/openqa.conf.template /etc/httpd/conf/sites.d/openqa.conf
 sudo sed -i "s|.*#ServerName your.server.name|    ServerName $(hostname -s)|" /etc/httpd/conf/sites.d/openqa.conf

adapt as necessary

 sudo vi /etc/httpd/conf/sites.d/openqa.conf

use only http for testing purposes, avoids configuring an https certificate

 echo -e "[openid]\nhttpsonly = 0" | sudo tee -a /etc/openqa/openqa.ini

use fake authentication for development/testing purposes

 sudo sed -i 's:^# method = Fake|OpenID|iChain:method = Fake:g' /etc/openqa/openqa.ini

use default API keys for testing purposes to start worker instances

 echo -e "key = 0123456789ABCDEF\nsecret = 0123456789ABCDEF" | sudo tee -a /etc/openqa/client.conf


start the openQA web UI, check the status and logs

 sudo systemctl start openqa-webui; sudo systemctl status openqa-webui -a

reload webserver, check the status and logs

 sudo systemctl reload httpd.service; sudo systemctl status httpd.service

OpenQA should then be listening at: http://localhost:80/

start some other openqa-worker instances, check the status and logs for any errors

 sudo systemctl start openqa-worker@1; sudo systemctl status openqa-worker@1
 sudo systemctl start openqa-worker@2; sudo systemctl status openqa-worker@2

--doktor5000 22:33, 19 December 2015 (UTC)


Please note qemu-kvm dependency issue on User Page ---User:vzawalin1 09:10 21 December 2015 (EASST]

qemu-kvm is a required binary, in Mageia that is contained in qemu package, see my mail - adjusted dependency in the packages --doktor5000 23:33, 20 December 2015 (UTC)

updated and fixed all of the commands based on further tests in clean openqa install in mga6, checked against Vlad's instructions from "openqa_installation_Manual_Mageia_6.odt" --doktor5000 11:18, 9 May 2016 (UTC)