openqa/server: run createhdds with python3
there seems to be a bug in python2-guestfs which causes the disk image with an updates.img file to be broken (the updates image is only 4096 bytes long and incomplete). When built with Python 3 the image seems to be fine. So, run the script with python3 (as its hashbang says) and ensure necessary packages are installed.
This commit is contained in:
parent
2392acc7ae
commit
eb44a82979
1 changed files with 5 additions and 4 deletions
|
@ -55,6 +55,7 @@
|
||||||
dnf: name={{ item }} state=present enablerepo="updates-testing"
|
dnf: name={{ item }} state=present enablerepo="updates-testing"
|
||||||
with_items:
|
with_items:
|
||||||
- python2-fedfind
|
- python2-fedfind
|
||||||
|
- python3-fedfind
|
||||||
- openqa
|
- openqa
|
||||||
- openqa-httpd
|
- openqa-httpd
|
||||||
- openqa-plugin-fedmsg
|
- openqa-plugin-fedmsg
|
||||||
|
@ -75,8 +76,8 @@
|
||||||
- expect
|
- expect
|
||||||
- libguestfs-tools-c
|
- libguestfs-tools-c
|
||||||
- libguestfs-xfs
|
- libguestfs-xfs
|
||||||
- python2-pexpect
|
- python3-libguestfs
|
||||||
- python-libguestfs
|
- python3-pexpect
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
@ -101,7 +102,7 @@
|
||||||
- /var/lib/openqa/share/factory/repo
|
- /var/lib/openqa/share/factory/repo
|
||||||
|
|
||||||
- name: Check if any hard disk images need (re)building
|
- name: Check if any hard disk images need (re)building
|
||||||
command: "python /root/openqa_fedora_tools/tools/createhdds.py check"
|
command: "/root/openqa_fedora_tools/tools/createhdds.py check"
|
||||||
args:
|
args:
|
||||||
chdir: /var/lib/openqa/share/factory/hdd/
|
chdir: /var/lib/openqa/share/factory/hdd/
|
||||||
register: diskcheck
|
register: diskcheck
|
||||||
|
@ -110,7 +111,7 @@
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|
||||||
- name: Create hard disk images (this may take a long time!)
|
- name: Create hard disk images (this may take a long time!)
|
||||||
command: "python /root/openqa_fedora_tools/tools/createhdds.py all --clean"
|
command: "/root/openqa_fedora_tools/tools/createhdds.py all --clean"
|
||||||
args:
|
args:
|
||||||
chdir: /var/lib/openqa/share/factory/hdd/
|
chdir: /var/lib/openqa/share/factory/hdd/
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue