This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
support OEL7.4 for scylla artifact tests
Amos Kong edited this page Sep 28, 2017
·
7 revisions
axel http://mirrors.kernel.org/oracle/OL7/u4/x86_64/OracleLinux-R7-U4-Server-x86_64-dvd.iso
1. create disks for vm
# sudo qemu-img create -f qcow2 /home/images/oel74.qcow2 20G
# sudo qemu-img create -f qcow2 /home/images/oel74.disk2.qcow2 15G
2. manually install
# virt-install \
--name oel7.4 \
--ram 4096 \
--disk path=/home/images/oel74.qcow2,size=8 \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=virbr0 \
--graphics none \
--console pty,target_type=serial \
--location '/home/images/OracleLinux-R7-U4-Server-x86_64-dvd.iso' \
--extra-args 'console=ttyS0,115200n8 serial'
- network init
# virsh console oel7.4
# ip link
# dhclient ens2
# yum install net-tools
# vim /etc/sysconfig/network-scripts/ifcfg-ens2
...
ONBOOT=yes
- epel setup
# sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- install basic package
# yum install net-tools git vim python-pip w3m curl pkg-config libvirt-devel libxml-devel gcc python-devel
# yum install java-1.8.0-openjdk-headless
- install avocado requestments
pip install -r https://raw.githubusercontent.com/avocado-framework/avocado/36lts/requirements.txt
- install avocado
yum install python-pip
pip install avocado-framework==36.4
-
update timezone (Israel)
-
disable Selinux in /etc/selinux/config
-
setup second disk
Existing xml of root disk:
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/images/oel74.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
Add following config for second disk:
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/images/oel74.disk2.qcow2'/>
<target dev='hdb' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
- create snapshot, Jenkins job will recover vm to the clean point at the beginning of real tests.
virsh snapshot-create-as --domain oel7.4 --name oel7.4-orig
copy job/scylla-t-rhel7.3-deb-test -> job/scylla-t-oel7.4-deb-test
copy job/scylla-2.0-rhel7.3-deb-test -> job/scylla-2.0-oel7.4-deb-test
update the trigger configs
- https://github.com/scylladb/scylla/issues/2850
- problem: fail to install python-urllib3 by yum, it's conflicted with existing urllib3 that's installed by pip
- fix by:
pip uninstalled urllib3
yum install python-urllib3