Artem Hrechanychenko created OVIRT-2967:
-------------------------------------------
Summary: Centos8 slave for testing OST Python3 migration
Key: OVIRT-2967
URL:
https://ovirt-jira.atlassian.net/browse/OVIRT-2967
Project: oVirt - virtualization made easy
Issue Type: Task
Components: Jenkins Slaves
Reporter: Artem Hrechanychenko
Assignee: infra
As part of migration OST to python3, I want to get CI similar environment to test OST
there.
I used next commands and packages during testing on RHEL8 host machine from Beaker
{code:bash}
dnf install -y wget
wget
http://bob.eng.lab.tlv.redhat.com/builds/4.4/rhv-4.4.0-31/api/rhel_82_hos...
-O /etc/yum.repos.d/rhel_82_host_x86.repo
dnf module reset -y virt
dnf module enable -y virt:8.2
dnf install -y qemu-kvm libvirt libvirt-python3 libguestfs-tools virt-install
useradd test
usermod -aG wheel test
usermod -aG qemu test
usermod -aG libvirt test
echo "Passw0rd" | passwd --stdin test
systemctl enable --now libvirtd
virsh pool-define-as guest_images dir - - - - "/home/test"
virsh pool-build guest_images
virsh pool-start guest_images
virsh pool-autostart guest_images
dnf install -y net-tools
dnf install -y yum-utils
yum-config-manager
--add-repo=https://copr-be.cloud.fedoraproject.org/results/sbonazzo/EL8_collection/epel-8-x86_64/
echo "gpgcheck=0" >>
/etc/yum.repos.d/copr-be.cloud.fedoraproject.org_results_sbonazzo_EL8_collection_epel-8-x86_64_.repo
dnf install -y
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum install -y lago
usermod -a -G qemu,libvirt test
usermod -a -G test qemu
chmod g+x /home/test/
mkdir -p /var/lib/lago
mkdir -p /var/lib/lago/{repos,store,subnets}
chown -R test:test /var/lib/lago
echo "options kvm_intel nested=1" | sudo tee /etc/modprobe.d/kvm.conf
modprobe -r kvm_intel
modprobe kvm_intel
echo "net.ipv6.conf.all.accept_ra=2" | sudo tee -a "/etc/sysctl.conf"
sysctl -p
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y docker-ce-3:18.09.1-3.el7
systemctl enable --now docker
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --permanent --new-service="ovirtlago"
firewall-cmd --permanent --service="ovirtlago" --add-port=8585/tcp
firewall-cmd --permanent --service="ovirtlago"
--set-destination=ipv4:192.168.0.0/16
firewall-cmd --permanent --add-service="ovirtlago"
firewall-cmd --reload
systemctl restart firewalld
systemctl restart libvirtd
yum install -y mock
usermod -a -G mock test
mkdir -p ~/projects/gerrit
git clone
git://gerrit.ovirt.org/jenkins projects/gerrit/jenkins
git clone
git://gerrit.ovirt.org/ovirt-system-tests projects/gerrit/ovirt-system-tests
{code}
to get el8 mock and run basic-suite-master need to apply
https://gerrit.ovirt.org/#/c/109334/ to ovirt-system-tests
--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100130)