From 1b134955787aa09230ce623446e922dacb6371dc Mon Sep 17 00:00:00 2001 From: Maria Petrova <m.petrova@fz-juelich.de> Date: Thu, 10 Nov 2022 15:15:31 +0100 Subject: [PATCH] Includes TODOs: the missing steps --- .gitlab-ci.yml | 8 +++++++- cloudinit.yml | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adfee9b..3772244 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,6 +52,7 @@ create-docker-worker: - sleep 10 # ensure that next command reaches the new server, prevents host key problems - LOCAL_IP=`openstack port list --server $INSTANCE_ID --network internal -c 'Fixed IP Addresses'` - echo $LOCAL_IP + #TODO parse the LOCAL_IP and have the value as a CI/CD artifact for the next update job # do the mount /dev/vdb stuff - openstack server add volume $INSTANCE_ID $VOLUME_ID - sleep 20 # apparently it may take some time until the volume is available to the OS @@ -83,4 +84,9 @@ update-dls-testing: - web # and master <<: *ssh_setup script: - - echo "$SSH_HOST_PRIVATE_KEY_DWORKER" | ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo tee /home/airflow/testme.txt" \ No newline at end of file + - ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo touch /home/airflow/testme.txt" + #TODO + # - sed -i ".bak" "/134.94.199.45/d" known_hosts ---> with proper escaping of the dots:) + # - change the host of the airflow connection "docker_worker" to the newly retrieved LOCAL_IP + +#TODO have a fall back stage in case of failure \ No newline at end of file diff --git a/cloudinit.yml b/cloudinit.yml index a5901d2..49b7776 100644 --- a/cloudinit.yml +++ b/cloudinit.yml @@ -25,8 +25,8 @@ packages: # By default, (most) ssh host keys are printed to the console. Setting # emit_keys_to_console to false suppresses this output. -# ssh: -# emit_keys_to_console: false +ssh: + emit_keys_to_console: false users: - name: cboettcher -- GitLab