create-vps stage should be more verbose
See https://open.greenhost.net/openappstack/openappstack/-/jobs/11420:
$ sh .gitlab/ci_scripts/create_vps.sh
if [ -d clusters/$HOSTNAME/secrets ]
then
ip_address=$(python -m openappstack ${HOSTNAME} info --ip-address)
echo "Running python script"
# Run a python script that checks if the cached machine still exists. The
# script exits with 0 (true) if the machine can be reused
if python3 $(dirname "$0")/can_reuse_machine.py $HOSTNAME $ip_address
then
exit 0
fi
fi
Running python script
Machine status is running
Comparing IP address 213.108.108.134 with IP address 213.108.105.61
I have no idea wether the droplet got created or not, and beeing reused, why there are 2 IP, which one is the right one... Especially confusing because later in the pipeline in the setup-cluster job it can't ssh into:
msg: 'Failed to connect to the host via ssh: ssh: connect to host 213.108.105.61 port 22: Operation timed out'
This is probably because I deleted the droplet during a cleanup before ran another pipeline.