Skip to content
Snippets Groups Projects
Commit 1b134955 authored by Maria Petrova-El Sayed's avatar Maria Petrova-El Sayed
Browse files

Includes TODOs: the missing steps

parent 678156bb
No related branches found
No related tags found
No related merge requests found
Pipeline #117929 passed
...@@ -52,6 +52,7 @@ create-docker-worker: ...@@ -52,6 +52,7 @@ create-docker-worker:
- sleep 10 # ensure that next command reaches the new server, prevents host key problems - 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'` - LOCAL_IP=`openstack port list --server $INSTANCE_ID --network internal -c 'Fixed IP Addresses'`
- echo $LOCAL_IP - 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 # do the mount /dev/vdb stuff
- openstack server add volume $INSTANCE_ID $VOLUME_ID - openstack server add volume $INSTANCE_ID $VOLUME_ID
- sleep 20 # apparently it may take some time until the volume is available to the OS - sleep 20 # apparently it may take some time until the volume is available to the OS
...@@ -83,4 +84,9 @@ update-dls-testing: ...@@ -83,4 +84,9 @@ update-dls-testing:
- web # and master - web # and master
<<: *ssh_setup <<: *ssh_setup
script: script:
- echo "$SSH_HOST_PRIVATE_KEY_DWORKER" | ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo tee /home/airflow/testme.txt" - ssh -oStrictHostKeyChecking=accept-new airflow@$DLS_PRODUCTION_IP "sudo touch /home/airflow/testme.txt"
\ No newline at end of file #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
...@@ -25,8 +25,8 @@ packages: ...@@ -25,8 +25,8 @@ packages:
# By default, (most) ssh host keys are printed to the console. Setting # By default, (most) ssh host keys are printed to the console. Setting
# emit_keys_to_console to false suppresses this output. # emit_keys_to_console to false suppresses this output.
# ssh: ssh:
# emit_keys_to_console: false emit_keys_to_console: false
users: users:
- name: cboettcher - name: cboettcher
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment