system-config/launch
Clark Boylan 5e43926b5e Fix min swap value in make_swap.sh
We just discovered that a number of new servers have rather small swap
sizes. It appears this snuck in via change 782898 which tries to bound
the max swap size to 8GB. Unfortunately the input to parted expects MB
so we make a swap size of 8MB instead of 8GB.

Bump the min value to 8192 to fix this.

Change-Id: I76b5b7dd8ac76c2ecbab9064bcdf956394b3a770
2021-05-14 14:09:11 -07:00
..
dns.py Add OE mirror to inventory 2020-08-06 09:42:39 +10:00
launch-node.py Handle focal's insistence we don't use root in launch-node.py 2021-04-21 16:51:46 -07:00
make_swap.sh Fix min swap value in make_swap.sh 2021-05-14 14:09:11 -07:00
mount_volume.sh launch: move old scripts out of top-level 2020-09-03 09:55:42 +10:00
README.rst Make small tweaks to launch node README 2020-02-12 08:42:32 -06:00
sshclient.py Change launch scripts to python3 shebangs 2020-06-08 16:05:11 -07:00
sshfp.py Fix sshfp record printing 2021-03-05 12:18:13 -08:00
utils.py Change launch scripts to python3 shebangs 2020-06-08 16:05:11 -07:00

Create Server

The commands in this section should be run as root.

To launch a node in the OpenStack CI account (production servers):

export OS_CLOUD=openstackci-rax
export OS_REGION_NAME=DFW
export FLAVOR="8 GB Performance"
export FQDN=servername01.opendev.org
cd /opt/system-config/launch/
./launch-node.py $FQDN --flavor "$FLAVOR" \
  --cloud=$OS_CLOUD --region=$OS_REGION_NAME

Manually add the hostname to DNS (the launch script does not do so automatically, but it prints the commands to run). Note that for *.opendev.org hosts you'll only be able to add the reverse dns records via the printed commands. Forward A and AAAA records should be added to opendev/zone-opendev.org/zones/opendev.org/zone.db.

We need to add the host to our static inventory file so that the ansible runs see the new host. The launch script prints out the appropriate lines to add to opendev/system-config:inventory/openstack.yaml.

In order for Ansible to work, you also need to accept the root SSH key for the new server. Once the new DNS entries have propagated, as root on bridge.openstack.org:

ssh root@$FQDN

Verify the fingerprint of the new server and type "yes" to accept. Then you can log out.

Add DNS Records

The launch-node script will print the commands needed to be run to configure DNS for a newly launched server. To see the commands for an existing server, run:

./dns.py $FQDN