local test config (MXS-1863)

[MXS-2030] test MDBCI setup with latest Ubuntu, CentOS, Mint, Debian, SUSE Created: 2018-08-29  Updated: 2019-01-22  Resolved: 2019-01-22

Status: Closed
Project: MariaDB MaxScale
Component/s: test
Affects Version/s: None
Fix Version/s: 2.3.3

Type: Sub-Task Priority: Major
Reporter: Timofey Turenko Assignee: Timofey Turenko
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-65, MXS-SPRINT-66, MXS-SPRINT-67, MXS-SPRINT-68, MXS-SPRINT-73

 Description   

MDBCI and libvirt setup to be tested against major distributions, all findings to be added to documentation



 Comments   
Comment by Timofey Turenko [ 2018-09-12 ]

notes for CentOS7 installation:

entOS7

sudo yum install git
sudo yum update -y nss curl libcurl
git clone https://github.com/mariadb-corporation/mdbci.git
sudo yum groupinstall "Virtualization Tools" -y
sudo yum install libvirt libvirt-devel
sudo usermod -a -G libvirt ec2-user

put following:
polkit.addRule(function(action, subject) { if (action.id == "org.libvirt.unix.manage" && subject.user == "ec2-user")

{ return polkit.Result.YES; polkit.log("action=" + action); polkit.log("subject=" + subject); }

});
into /etc/polkit-1/rules.d/50-org.libvirt.unix.manage.rules

sudo yum install ruby
sudo gem install bundle
sudo bundle install --without development
sudo /usr/local/bin/bundle install --without development

curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install "ruby-2.5"

gem install json-schema
gem install xdg
gem install ipaddress
gem install net-ssh
gem install net-scp
gem install nokogiri
gem install workers
sudo yum install git build-essential wget -y
sudo yum install python python-pip
sudo pip install --upgrade awscli

cd ~/mdbci
./scripts/setup_aws.sh

cd
wget https://releases.hashicorp.com/vagrant/2.1.4/vagrant_2.1.4_x86_64.rpm
sudo yum install vagrant_2.1.4_x86_64.rpm

git clone https://github.com/vagrant-libvirt/vagrant-libvirt.git
cd vagrant-libvirt
rake build
vagrant plugin install pkg/vagrant-libvirt*.gem
vagrant plugin install vagrant-aws vagrant-mutate vagrant-omnibus

Comment by Timofey Turenko [ 2018-09-12 ]

preparing for building tests in CentOS:

sudo yum install cmake mariadb-test php
sudo yum install jansson-devel // not in the cmake list

sudo yum -y install centos-release-scl || \
sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl

sudo yum -y install devtoolset-7-gcc-c++
source /opt/rh/devtoolset-7/enable

  1. Enable it by default
    echo "source /opt/rh/devtoolset-7/enable" >> ~/.bashrc
Comment by Timofey Turenko [ 2018-12-27 ]

Ubuntu Bionic, mdbci setup-dependencies command failed:

INFO: Invoking command: sudo virsh pool-info default
error: failed to get pool 'default'
error: Storage pool not found: no storage pool with matching name 'default'

bug reported to FRUCT

Comment by Timofey Turenko [ 2019-01-11 ]

Debian Stretch - works!
Ubuntu Bionic - works!

Comment by Timofey Turenko [ 2019-01-22 ]

Centos/RHEL/Fedora - works

Suse/Gentoo - not supported

Amazon Linux - EPEL repos is needed

Comment by Timofey Turenko [ 2019-01-22 ]

https://github.com/mariadb-corporation/mdbci#mdbci-installation

Comment by Timofey Turenko [ 2019-01-22 ]

Mint 18/19 works

Generated at Thu Feb 08 04:11:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.