From 89698a91ca5b6c52d980f48f88777cc6721331fb Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Mon, 3 Oct 2022 15:56:18 +0100 Subject: [PATCH 1/2] added notes --- .../environments/ci-multinode/README.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 etc/kayobe/environments/ci-multinode/README.md diff --git a/etc/kayobe/environments/ci-multinode/README.md b/etc/kayobe/environments/ci-multinode/README.md new file mode 100644 index 000000000..668e8895d --- /dev/null +++ b/etc/kayobe/environments/ci-multinode/README.md @@ -0,0 +1,52 @@ +# Multinode Test Environment + +## Set up hosts +1. Create four baremetal instances with a centos 8 stream LVM image, and a +Centos 8 stream vm +2. SSH into each baremetal and run `sudo chown -R centos:.` in the home directory, + then add the lines + >`10.0.0.34 pelican pelican.service.compute.sms-lab.cloud` + >`10.205.3.187 pulp-server pulp-server.internal.sms-cloud` + + to /etc/hosts (if you're waiting on them starting up, you can progress until + `kayobe overcloud host configure` without this step) + +## Basic Kayobe Setup +1. SSH into the VM +1. `sudo dnf install -y python3-virtualenv` +1. `mkdir src` and `cd src` +1. Clone https://github.com/stackhpc/stackhpc-kayobe-config.git, then checkout + commit f31df6256f1b1fea99c84547d44f06c4cb74b161 +1. `cd ..` and `mkdir venvs` +1. `virtualenv venvs/kayobe` and source `venvs/kayobe/bin/activate` +1. `pip install -U pip` +1. `pip install ./src/kayobe` +1. Acquire the Ansible Vault password for this repository, and store a copy at +``~/vault-pw`` +1. `export KAYOBE_VAULT_PASSWORD=$(cat ~/vault-pw)` + +## Config changes +1. In etc/kayobe/ansible/requirements.yml remove version from vxlan +4. In etc/kayobe/ansible/configure-vxlan.yml, change the group of +vxlan_interfaces so that the last octet is different e.g. 224.0.0.15 +5. Also under vxlan_interfaces, add vni:x where x is between 500 and 1000 +5. Also under vxlan_interfaces, check vxlan_dstport is not 4789 (this causes +conflicts, change to 4790) +6. In /etc/kayobe/environments/ci-multinode/tf-networks.yml, + edit admin_ips so that the compute and controller IPs line up with the + instances that were created earlier, remove the other IPs for seed and + cephOSD +7. In /etc/kayobe/environments/ci-multinode/network-allocation.yml, remove all +the entries and just assign `aio_ips:` an empty set `[]` +8. In etc/kayobe/environments/ci-multinode/inventory/hosts, remove the seed +9. run stackhpc-kayobe-config/etc/kayobe/ansible/growroot.yml (if this fails, +manually increase the partition size on each host) + +## Final steps +1. `source kayobe-env --environment ci-aio` +10. Run `kayobe overcloud host configure` +11. Run `kayobe overcloud service deploy` + +TODO: +- openstack will use the port that as been reserved for vslan so 4790 was chosen because it's one away +-m From 6cb330c1a4db06e55974b22c0a7e9467372a1ce9 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Mon, 3 Oct 2022 16:00:36 +0100 Subject: [PATCH 2/2] removed TODO --- etc/kayobe/environments/ci-multinode/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/etc/kayobe/environments/ci-multinode/README.md b/etc/kayobe/environments/ci-multinode/README.md index 668e8895d..c2511150c 100644 --- a/etc/kayobe/environments/ci-multinode/README.md +++ b/etc/kayobe/environments/ci-multinode/README.md @@ -46,7 +46,3 @@ manually increase the partition size on each host) 1. `source kayobe-env --environment ci-aio` 10. Run `kayobe overcloud host configure` 11. Run `kayobe overcloud service deploy` - -TODO: -- openstack will use the port that as been reserved for vslan so 4790 was chosen because it's one away --m