Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pyautoplot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan David Mol
pyautoplot
Commits
be016557
Commit
be016557
authored
4 years ago
by
Jan David Mol
Browse files
Options
Downloads
Plain Diff
Merge branch 'replace-head01-head' into 'master'
Replace head01 head See merge request
!1
parents
6a86ce53
0a409958
No related branches found
No related tags found
1 merge request
!1
Replace head01 head
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/launch-msplots.sh
+22
-22
22 additions, 22 deletions
scripts/launch-msplots.sh
with
22 additions
and
22 deletions
scripts/launch-msplots.sh
+
22
−
22
View file @
be016557
...
...
@@ -94,11 +94,11 @@ function create_html_remotely_fn() {
CREATE_HTML
=
create_html
command
=
"
$CREATE_HTML
$GLOBAL_ARGS
"
ssh
$REMOTE_HOST
"echo
\"
$GLOBAL_ARGS
\"
| tee -a
$LOG
"
ssh
$REMOTE_HOST
"echo
\"
Creating HTML using
$CREATE_HTML
\"
| tee -a
$LOG
"
ssh
$REMOTE_HOST
"echo
\"
$command
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
$GLOBAL_ARGS
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
Creating HTML using
$CREATE_HTML
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
$command
\"
| tee -a
$LOG
"
# Submit slurm jobs that start docker containers at cpuxx nodes...
ssh
-n
-tt
-x
lofarsys@head
01
.cep4.control.lofar
\
ssh
-n
-tt
-x
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
\
docker-run-slurm.sh
--rm
-u
`
id
-u
`
\
-e
USER
=
$USER
-e
HOME
=
$HOME
\
-v
/data:/data
\
...
...
@@ -107,12 +107,12 @@ function create_html_remotely_fn() {
"
$command
"
SSH_EXITCODE
=
$?
if
test
"
$SSH_EXITCODE
"
==
"0"
;
then
ssh
$REMOTE_HOST
"echo
\"
HTML Created successfully
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
HTML Created successfully
\"
| tee -a
$LOG
"
else
ssh
$REMOTE_HOST
"echo
\"
Problem creating HTML overview for
$GLOBAL_ARGS
.
\"
| tee -a
$LOG
"
ssh
$REMOTE_HOST
"echo
\"
Exit status:
$exit_status
\"
| tee -a
$LOG
"
ssh
$REMOTE_HOST
"echo
\"
$result
\"
| tee -a
$LOG
"
ssh
$REMOTE_HOST
"echo
\"
Cannot start create_html: no HTML generated
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
Problem creating HTML overview for
$GLOBAL_ARGS
.
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
Exit status:
$exit_status
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
$result
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
$REMOTE_HOST
"echo
\"
Cannot start create_html: no HTML generated
\"
| tee -a
$LOG
"
fi
}
...
...
@@ -148,14 +148,14 @@ function exit_timeout() {
function
sigterm_handler
()
{
for
sas_id
in
$GLOBAL_ARGS
;
do
ssh
-n
-tt
-x
lofarsys@head
01
.cep4.control.lofar
"bash -ilc
\"
use Lofar; use Pyautoplot; report_global_status
${
sas_id
}
\"
"
ssh
-n
-tt
-x
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"bash -ilc
\"
use Lofar; use Pyautoplot; report_global_status
${
sas_id
}
\"
"
done
for
sas_id
in
$GLOBAL_ARGS
;
do
ssh
-n
-x
lofarsys@lcuhead
"/home/fallows/inspect_bsts_msplots.bash
$sas_id
"
done
create_html_remotely_fn lofarsys@head
01
.cep4.control.lofar
create_html_remotely_fn lofarsys@head.cep4.control.lofar
DATE_DONE
=
`
date
`
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
Done at
$DATE_DONE
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
Done at
$DATE_DONE
\"
| tee -a
$LOG
"
exit
}
...
...
@@ -205,15 +205,15 @@ case `hostname_fqdn` in
*
cep4
*
)
DATE
=
`
date
`
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"\"
| tee -a
$LOG
"
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
=======================
\"
| tee -a
$LOG
"
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
Date:
$DATE
\"
|tee -a
$LOG
"
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
$0
$@
\"
| tee -a
$LOG
"
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
On machine
$HOSTNAME
\"
| tee -a
$LOG
"
ssh lofarsys@head
01
.cep4.control.lofar
"echo
\"
Using pyautoplot:
$PYAUTOPLOT_TAG
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
=======================
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
Date:
$DATE
\"
|tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
$0
$@
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
On machine
$HOSTNAME
\"
| tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"echo
\"
Using pyautoplot:
$PYAUTOPLOT_TAG
\"
| tee -a
$LOG
"
for
sas_id
in
$@
;
do
ssh lofarsys@head
01
.cep4.control.lofar
"mkdir -v
$INSPECT_ROOT
/
$sas_id
$INSPECT_ROOT
/HTML/
$sas_id
2>&1 | tee -a
$LOG
"
ssh
-o
StrictHostKeyChecking
=
no
lofarsys@head.cep4.control.lofar
"mkdir -v
$INSPECT_ROOT
/
$sas_id
$INSPECT_ROOT
/HTML/
$sas_id
2>&1 | tee -a
$LOG
"
done
sleep
45
# to make sure writing of metadata in MSses has a reasonable chance to finish before plots are created.
...
...
@@ -233,7 +233,7 @@ case `hostname_fqdn` in
-v
$HOME
/.ssh:
$HOME
/.ssh:ro
\
--net
=
host
\
pyautoplot:
$PYAUTOPLOT_TAG
\
'/bin/bash -c \\"msplots --prefix=/dev/shm/ --output='
$sas_id
' --memory=1.0 '
$product
' ; rsync -a /dev/shm/'
$sas_id
'/ lofarsys@head
01
.cep4.control.lofar:'
$INSPECT_ROOT
'/'
$sas_id
'/\\"'
&
'/bin/bash -c \\"msplots --prefix=/dev/shm/ --output='
$sas_id
' --memory=1.0 '
$product
' ; rsync -a /dev/shm/'
$sas_id
'/ lofarsys@head.cep4.control.lofar:'
$INSPECT_ROOT
'/'
$sas_id
'/\\"'
&
SSH_PIDS
=
"
$SSH_PIDS
$!
"
done
...
...
@@ -252,7 +252,7 @@ case `hostname_fqdn` in
-v
$HOME
/.ssh:
$HOME
/.ssh:ro
\
--net
=
host
\
pyautoplot:
$PYAUTOPLOT_TAG
\
'/bin/bash -c \\"report_global_status '
$sas_id
'; rsync -a /dev/shm/'
$sas_id
'/ lofarsys@head
01
.cep4.control.lofar:'
$INSPECT_ROOT
'/'
$sas_id
'/\\"'
&
'/bin/bash -c \\"report_global_status '
$sas_id
'; rsync -a /dev/shm/'
$sas_id
'/ lofarsys@head.cep4.control.lofar:'
$INSPECT_ROOT
'/'
$sas_id
'/\\"'
&
SSH_PIDS
=
"
$SSH_PIDS
$!
"
done
...
...
@@ -263,7 +263,7 @@ case `hostname_fqdn` in
ssh
-n
-x
lofarsys@lcuhead
"/home/fallows/inspect_bsts_msplots.bash
$sas_id
"
done
create_html_remotely_fn lofarsys@head
01
.cep4.control.lofar
create_html_remotely_fn lofarsys@head.cep4.control.lofar
;;
...
...
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