openqa: hdd image creation fixups

image creation needs expect, and libvirtd.service to be running,
and the filename it creates was wrong.
This commit is contained in:
Adam Williamson 2015-11-17 14:16:25 -08:00
parent fd83ce8b16
commit edd06bae79

View file

@ -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: