Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DLS Docker Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DLS Docker Worker
Commits
1b134955
Commit
1b134955
authored
2 years ago
by
Maria Petrova-El Sayed
Browse files
Options
Downloads
Patches
Plain Diff
Includes TODOs: the missing steps
parent
678156bb
No related branches found
No related tags found
No related merge requests found
Pipeline
#117929
passed
2 years ago
Stage: install
Stage: test-deployment
Stage: update
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-1
7 additions, 1 deletion
.gitlab-ci.yml
cloudinit.yml
+2
-2
2 additions, 2 deletions
cloudinit.yml
with
9 additions
and
3 deletions
.gitlab-ci.yml
+
7
−
1
View file @
1b134955
...
@@ -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
This diff is collapsed.
Click to expand it.
cloudinit.yml
+
2
−
2
View file @
1b134955
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment