mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-27 23:57:02 +08:00
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:
@@ -55,6 +55,7 @@
|
||||
dnf: name={{ item }} state=present enablerepo="updates-testing"
|
||||
with_items:
|
||||
- python2-fedfind
|
||||
- python3-fedfind
|
||||
- openqa
|
||||
- openqa-httpd
|
||||
- openqa-plugin-fedmsg
|
||||
@@ -75,8 +76,8 @@
|
||||
- expect
|
||||
- libguestfs-tools-c
|
||||
- libguestfs-xfs
|
||||
- python2-pexpect
|
||||
- python-libguestfs
|
||||
- python3-libguestfs
|
||||
- python3-pexpect
|
||||
tags:
|
||||
- packages
|
||||
|
||||
@@ -101,7 +102,7 @@
|
||||
- /var/lib/openqa/share/factory/repo
|
||||
|
||||
- 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:
|
||||
chdir: /var/lib/openqa/share/factory/hdd/
|
||||
register: diskcheck
|
||||
@@ -110,7 +111,7 @@
|
||||
always_run: true
|
||||
|
||||
- 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:
|
||||
chdir: /var/lib/openqa/share/factory/hdd/
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user