Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

support OEL7.4 for scylla artifact tests

Amos Kong edited this page Sep 28, 2017 · 7 revisions

Get ISO

axel http://mirrors.kernel.org/oracle/OL7/u4/x86_64/OracleLinux-R7-U4-Server-x86_64-dvd.iso

install oel7.4 vm

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'

VM setup

  1. network init
# virsh console oel7.4
# ip link
# dhclient ens2
# yum install net-tools
# vim /etc/sysconfig/network-scripts/ifcfg-ens2
...
ONBOOT=yes

  1. epel setup
# sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  1. 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
  1. install avocado requestments
pip install -r https://raw.githubusercontent.com/avocado-framework/avocado/36lts/requirements.txt
  1. install avocado
yum install python-pip
pip install avocado-framework==36.4
  1. update timezone (Israel)

  2. disable Selinux in /etc/selinux/config

  3. 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>
  1. 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

Add new Jenkins jobs for oel7.4

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

more

fix urllib3 conflict

pip uninstalled urllib3
yum install python-urllib3