diff options
author | Adam Williamson <awilliam@redhat.com> | 2017-08-18 08:27:11 -0700 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2017-08-18 08:28:12 -0700 |
commit | cc0ae629c5c60d3c8ead581917cdcf4af6e4a96c (patch) | |
tree | a2210fcaad3a4b296ca12ecc52b343e992dcf6c3 | |
parent | 8ac25b886fe049b98a9c7caf5f0984ec77008593 (diff) | |
download | ansible-cc0ae629c5c60d3c8ead581917cdcf4af6e4a96c.tar.gz ansible-cc0ae629c5c60d3c8ead581917cdcf4af6e4a96c.tar.xz ansible-cc0ae629c5c60d3c8ead581917cdcf4af6e4a96c.zip |
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!
-rw-r--r-- | roles/openqa/worker/tasks/createhdds.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/openqa/worker/tasks/createhdds.yml b/roles/openqa/worker/tasks/createhdds.yml index bf2414070..20a637999 100644 --- a/roles/openqa/worker/tasks/createhdds.yml +++ b/roles/openqa/worker/tasks/createhdds.yml @@ -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 |