Skip to content
Snippets Groups Projects
Commit a4911768 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

sending a command to the old server causes sh-host-key issues

parent b413327f
Branches
Tags
No related merge requests found
Pipeline #99403 passed
......@@ -88,10 +88,10 @@ full-deploy-production:
- echo "Starting the full testing deployment of airflows example."
- pip install python-openstackclient
- OLD_ID=`openstack server show $PRODUCTION_NAME -f value -c id` && server_exists=true || echo "No production server found. It might be a first time deployment"
- if [ "$server_exists" = true ] ; then
ssh -oStrictHostKeyChecking=accept-new airflow@$PRODUCTION_IP "sudo docker-compose -f /home/airflow/data-logistics-service/dockers/docker-compose.yaml --project-directory /home/airflow/eflows-airflow down"
openstack server set --name $OLD_PROD_NAME $OLD_ID;
fi
# - if [ "$server_exists" = true ] ; then
# ssh -oStrictHostKeyChecking=accept-new airflow@$PRODUCTION_IP "sudo docker-compose -f /home/airflow/data-logistics-service/dockers/docker-compose.yaml --project-directory /home/airflow/eflows-airflow down"
# openstack server set --name $OLD_PROD_NAME $OLD_ID;
# fi
- openstack server remove volume $OLD_ID $VOLUME_ID
- INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group www --security-group https $PRODUCTION_NAME`
- while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done # wait until an address is available to attach the floating ip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment