Install jq binary
zypper install -f jqInstall terraform from the page: https://www.terraform.io/downloads.html
Version 0.12+ required
For example, if you are on SUSE based distro you could do next:
zypper install terraformGet the source code and change directory into its root.
git clone https://github.com/SUSE/teuthology-deploy
cd teuthology-deploySetup virtual environment with python dependencies:
virtualenv v
. v/bin/activate
pip install --upgrade pip
pip install ansible==2.8.4 python-openstackclientClone ceph-cm-ansible of required fork and branch
git clone https://github.com/SUSE/ceph-cm-ansible -b suse(Note: At moment of writing the SUSE ceph-cm-ansible is required to be used in order to setup teuthology on openSUSE based distro since his corresponding patches in 'suse' branch. The 'master' branch is supposed to be equivalent to the upstream one.)
The user should have access to /usr/sbin/dnssec-keygen in order to make keys for nameserver, for example it can be found in system package 'bind-utils' in openSUSE distros.
sudo zypper in bind-utilsCopy stub yaml files to configs
cp teuthology-vars.yml.orig teuthology-vars.yml
cp conf/teuthology.cfg.orig conf/teuthology.cfg
cp libcloud/ovh.cfg.orig libcloud/ovh.cfgand modify correspondingly openstack credentials for libcloud and tweak teuthology config.
(As an option you can use --conf argument to point to presaved teuthology.cfg explicitly.)
Your system should have 'cloud' based access to your openstack and
must have corresponding config to the once in 'terraform' directory.
So, add ovh, sbg, nbg, etc. data to ~/.config/openstack/clouds.yaml.
Deploy cluster with named and nsupdate_web setup on teuthology server in ovh.
OS_CLOUD=ovh ./deploy-teuthology --rebuild --nsTo have more than one cluster per region or project, specify unique name for the cluster:
OS_CLOUD=ovh ./deploy-teuthology --rebuild --ns --name $USERIf you need more workers and target machines, use corresponding arguments:
OS_CLOUD=ovh ./deploy-teuthology --rebuild --ns --workers 8 --targets 50Cleanup cluster:
OS_CLOUD=ovh ./deploy-teuthology --cleanupCopy conf/teuthology.cfg.orig to something distrinct, for example, conf/foo.cfg.
Copy teuthology-vars.yml.orig to something specific, like teuthology-foo.yml.
And use TEUTH_CONF and TEUTH_VARS correspondingly:
export TEUTH_CONF=conf/foo.cfg
export TEUTH_VARS=teuthology-foo.yml
./deploy-teuthology --cloud ovh --ns --rebuildNOTE: Due to HMAC-MD5 being depricated on Tumbleweed dnssec key generation was temporarily moved from
deploy-teuthology.shtoteuthology_nameserveransible role anddnssec_keygentask