Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
maestro
maestro-core
Commits
7862c678
Commit
7862c678
authored
4 years ago
by
Utz-Uwe Haus
Browse files
Options
Downloads
Patches
Plain Diff
adapt MIO config creation to sage mero config query tool hctl
parent
d8e37a7b
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!3
Jsc ci update
,
!2
update JSC-CI branch to devel
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/Makefile.am
+1
-1
1 addition, 1 deletion
tests/Makefile.am
tests/generate-mio-config.sh
+11
-2
11 additions, 2 deletions
tests/generate-mio-config.sh
with
12 additions
and
3 deletions
tests/Makefile.am
+
1
−
1
View file @
7862c678
...
...
@@ -196,7 +196,7 @@ mio-config-PM1.yaml: generate-mio-config.sh
./generate-mio-config.sh 102
&&
mv
mio-config.yaml
$@
mio-config-PM2.yaml
:
generate-mio-config.sh
./generate-mio-config.sh 103
&&
mv
mio-config.yaml
$@
mio-config-PM
2
.yaml
:
generate-mio-config.sh
mio-config-PM
3
.yaml
:
generate-mio-config.sh
./generate-mio-config.sh 104
&&
mv
mio-config.yaml
$@
mio-config-C1.yaml
:
generate-mio-config.sh
./generate-mio-config.sh 105
&&
mv
mio-config.yaml
$@
...
...
This diff is collapsed.
Click to expand it.
tests/generate-mio-config.sh
+
11
−
2
View file @
7862c678
...
...
@@ -8,9 +8,18 @@ if test $# -ne 1; then
exit
1
fi
HOSTNAME
=
`
hostname
`
if
test
-f
/etc/mero/conf.xc
;
then
# fetch from file (mainly for single-host installation)
MERO_HA_IP
=
`
grep
'M0_CST_HA'
/etc/mero/conf.xc |sed
-s
's/^.*@M0_CST_HA.* "\([^"]*\)".*$/\1/'
`
CLOVIS_IP
=
`
grep
'M0_CST_CONFD'
/etc/mero/conf.xc |sed
-s
's/^.*@M0_CST_CONFD.* "\([^"]*\)".*$/\1/'
|sed
-s
"s/
\(
.*
\)
:1
$/
\1
:
$1
/"
`
HOSTNAME
=
`
hostname
`
else
# find the full address of the CST_HA service on the host we're running on
MERO_HA_IP
=
`
hctl mero status |
grep
-2
CST_HA|grep
-2
"
$HOSTNAME
"
|head
-2
|tail
-1
|sed
-e
's/^.*\[[^]]\+] [^ ]\+:[^ ]\+ \+\([^ ]\+\).*$/\1/'
`
# find the part of the local clovis service address that we stick our mero-id onto
CLOVIS_IP
=
`
hctl mero status |
grep
-A10
"
$HOSTNAME
"
|grep
-A1
CST_RMS|grep
-v
CST_RMS|head
-1
|sed
-e
's/^.*\[[^]]\+] [^ ]\+:[^ ]\+ \+\([^ ]\+\).*$/\1/'
|
sed
-e
's/\(.*\):[0-9]\+ $/\1:$1/'
`
endif
cat
>
mio-config.yaml
<<
EOF
# auto-generated MIO config file for
$HOSTNAME
...
...
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