From edd06bae790103a5d00aa703d74420aecdc964cd Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 17 Nov 2015 14:16:25 -0800 Subject: [PATCH] openqa: hdd image creation fixups image creation needs expect, and libvirtd.service to be running, and the filename it creates was wrong. --- roles/openqa/server/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 4096d3158f..df4f4818d9 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -55,6 +55,7 @@ - nfs-utils - perl(Class::DBI::Pg) - perl(DateTime::Format::Pg) + - expect - libguestfs-tools-c tags: - packages @@ -79,15 +80,21 @@ - /var/lib/openqa/share/factory/hdd - /var/lib/openqa/share/factory/repo +- name: Start libvirt service + service: name=libvirtd state=started + # NOTE: this is very hacky, but we can't do much better with the current # disk creation script, I will try and make it better. We'll have to bump # this hardcoded release number every so often. - name: Create hard disk images (this may take a long time!) command: "/root/openqa_fedora_tools/tools/createhdds.sh 23" args: - creates: /var/lib/openqa/share/factory/hdd/disk_full.img + creates: /var/lib/openqa/share/factory/hdd/disk_full_mbr.img chdir: /var/lib/openqa/share/factory/hdd/ +- name: Stop libvirt service + service: name=libvirtd state=stopped + - name: Create exports file copy: src=exports dest=/etc/exports.d/openqa.exports owner=root group=root mode=0644 tags: