openqa/worker: more packages for createhdds, set SMT setting

One of the IBM guys helpfully pointed out we need to set this
SMT thing to 'off' for VMs to run properly. I've no idea why,
but this is how we do it!
This commit is contained in:
Adam Williamson 2017-08-18 08:27:11 -07:00
parent 8ac25b886f
commit cc0ae629c5

View file

@ -4,16 +4,36 @@
- name: Install required packages
dnf: name={{ item }} state=present
with_items:
- libvirt-daemon-kvm
- libvirt-python3
- python3-libguestfs
- python3-fedfind
- qemu-kvm
- virt-install
tags:
- packages
- name: Install PowerPC-specific packages
dnf: name=powerpc-utils state=present
when: ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le'
tags:
- packages
- name: Allow libvirt to read/write to NFS
seboolean: name=virt_use_nfs state=yes persistent=yes
- name: Check if SMT setting needs changing
command: "ppc64_cpu --smt"
register: smtcheck
failed_when: "1 != 1"
changed_when: "1 != 1"
check_mode: no
when: ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le'
- name: Change SMT setting if necessary
command: "ppc64_cpu --smt=off"
when: "smtcheck is defined and smtcheck.stdout.find('is off') == -1"
- name: Check out createhdds
git:
repo: https://pagure.io/fedora-qa/createhdds.git