summaryrefslogtreecommitdiffstats
path: root/roles/openqa
Commit message (Collapse)AuthorAgeFilesLines
...
* openqa_server: try a new approach for checking test changesAdam Williamson2015-12-151-2/+18
| | | | | | | | | | | | | | basically, dump the config from the server before loading the templates file, dump it after, and use json_diff to compare. I wanted to make the actual template loading script from openQA do some kind of check in '--clean' mode, but given how it's designed that's not really terribly practical without doing some major re-architecting, and this seems like a relatively simple alternative. With this change, the actual "Load tests" step will never show 'changed', but the subsequent 'Check if the tests changed in previous step' step will show as changed when appropriate.
* openqa_server: use guestfs direct backend for creating disksAdam Williamson2015-12-151-7/+11
| | | | this avoids the need to start and stop libvirtd.
* Add some more always_run to tasks that register variables.Kevin Fenzi2015-12-151-0/+4
|
* Add always_run to tasks where we register things we use later.Kevin Fenzi2015-12-151-0/+4
|
* Try just checking out this git content as the right user and drop the non ↵Kevin Fenzi2015-12-151-3/+2
| | | | idempotent chown after it.
* openqa: create N-2 hard disk images tooAdam Williamson2015-12-071-0/+18
|
* openqa: always fully re-load the test templatesAdam Williamson2015-12-071-4/+6
| | | | | | | | | | | I didn't do this originally because I was trying to make it only show changed when something had really changed, but it was too conservative - it wouldn't update when a test definition changed, only when one was added. Doing it manually is a bit annoying (you have to do the sed step and the ownership change) so it's better to let you just re-run the play to update the tests, even if it does mean getting the occasional spurious changed state.
* openqa-server: need libguestfs-xfsAdam Williamson2015-12-051-0/+1
| | | | | | Turns out this was the reason why desktop HDD image generation wasn't working: we need the XFS support bits for libguestfs or else it can't resize the partitions.
* openqa-server: make openqa.ini world-readableAdam Williamson2015-12-051-1/+1
| | | | | there's really no reason for this to be restricted, it doesn't contain anything sensitive.
* patch dl.fedoraproject.org in openQA test templatesAdam Williamson2015-12-031-1/+5
| | | | | | | | | | | So apparently hosts within infra can't reach dl.fp.o. This is a problem as we have that host written in as a reliable repository URL for a couple of openQA tests. infra hosts can reach dl.fp.o by the name 'dl.phx2.fedoraproject.org', but nothing outside infra can reach that hostname. So we don't just want to change it in the openQA test git repo because we want that to work for external deployments. So, let's just sed it on the fly for the infra deployment...
* openqa: set base_url in openqa.iniAdam Williamson2015-12-012-1/+2
| | | | | | | this is needed for openID auth to work properly - otherwise ipsilon thinks the request is coming from 'https://localhost' and redirect after auth fails. openQA uses this config setting for the openID base URL if it's set.
* openqa workers: install UEFI firmware packageAdam Williamson2015-11-261-0/+1
| | | | | | | | | | | This comes from the kraxel.org repo and was added to the infra repo by nirik. Note that it is technically non-freely licensed. It contains a FAT implementation; Microsoft has granted an exemption from the FAT patent purely for the purpose of implementing a UEFI firmware, so there is a use restriction on this code. License can be found (as I write this) at: https://github.com/tianocore/edk2/blob/master/FatBinPkg/License.txt
* openqa: check out tools to a different place in dispatcherAdam Williamson2015-11-241-2/+4
| | | | | | | | | Both 'server' and 'dispatcher' roles need to check out openqa_ fedora_tools, but only 'dispatcher' needs to install it. To avoid having to register a variable in 'server' too and have the install task check if either variable |changed, just have two separate checkouts, so the dispatcher checkout will always have 'changed' when appropriate.
* openqa: we want openqa_hostname as a role *default* variableAdam Williamson2015-11-183-3/+0
| | | | | | | it seems variables in vars/main.yml are 'role variables' with a high precedence, while variables in defaults/main.yml are 'role default variables' with a low precedence. This could be made a hell of a lot clearer in the docs.
* openqa - debug openqa_hostname for workerAdam Williamson2015-11-181-0/+3
| | | | this isn't working right, why not?
* openqa: restart httpd on apache config changeAdam Williamson2015-11-171-0/+2
|
* openqa: hdd image creation fixupsAdam Williamson2015-11-171-1/+8
| | | | | image creation needs expect, and libvirtd.service to be running, and the filename it creates was wrong.
* set up for openQA deploymentAdam Williamson2015-11-1317-0/+397
This adds openQA server, worker and dispatcher roles, and applies them to the appropriate hosts. A few secret vars are required. See trac #4958 for discussion.