Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
de16113a
Commit
de16113a
authored
Nov 02, 2020
by
JONGLEZ Baptiste
Browse files
Merge branch 'general_fixes' into 'master'
Fix for issues preventing cluster bootstrap See merge request
!145
parents
9167c721
c32726a1
Pipeline
#182875
passed with stages
in 7 minutes and 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
input/grid5000/disks.yaml
View file @
de16113a
...
@@ -65,3 +65,5 @@ disk_vendor_model_mapping:
...
@@ -65,3 +65,5 @@ disk_vendor_model_mapping:
Micron
:
Micron
:
-
MTFDDAK480TDN
-
MTFDDAK480TDN
-
MTFDDAK960TDN
-
MTFDDAK960TDN
Unknown
:
-
unknown
lib/refrepo/input_loader.rb
View file @
de16113a
...
@@ -183,6 +183,7 @@ end
...
@@ -183,6 +183,7 @@ end
def
add_kavlan_ipv6s
(
h
)
def
add_kavlan_ipv6s
(
h
)
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
hs
[
'clusters'
].
each_pair
do
|
_cluster_uid
,
hc
|
hs
[
'clusters'
].
each_pair
do
|
_cluster_uid
,
hc
|
next
if
!
hc
[
'kavlan'
]
# skip clusters where kavlan is globally set to false (used for initial cluster installation)
hc
[
'nodes'
].
each_pair
do
|
node_uid
,
hn
|
hc
[
'nodes'
].
each_pair
do
|
node_uid
,
hn
|
kvl_adapters
=
hn
[
'network_adapters'
].
select
{
|
_k
,
v
|
v
[
'mountable'
]
and
(
v
[
'kavlan'
]
or
not
v
.
has_key?
(
'kavlan'
))
and
v
[
'interface'
]
==
'Ethernet'
}
kvl_adapters
=
hn
[
'network_adapters'
].
select
{
|
_k
,
v
|
v
[
'mountable'
]
and
(
v
[
'kavlan'
]
or
not
v
.
has_key?
(
'kavlan'
))
and
v
[
'interface'
]
==
'Ethernet'
}
if
kvl_adapters
.
length
>
0
if
kvl_adapters
.
length
>
0
...
@@ -222,6 +223,9 @@ def add_software(h)
...
@@ -222,6 +223,9 @@ def add_software(h)
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
hs
[
'clusters'
].
each_pair
do
|
cluster_uid
,
hc
|
hs
[
'clusters'
].
each_pair
do
|
cluster_uid
,
hc
|
hc
[
'nodes'
].
each_pair
do
|
node_uid
,
hn
|
hc
[
'nodes'
].
each_pair
do
|
node_uid
,
hn
|
if
not
hn
.
key?
(
'software'
)
hn
[
'software'
]
=
{}
end
hn
[
'software'
][
'postinstall-version'
]
=
h
[
'software'
][
'postinstall-version'
]
hn
[
'software'
][
'postinstall-version'
]
=
h
[
'software'
][
'postinstall-version'
]
hn
[
'software'
][
'forced-deployment-timestamp'
]
=
h
[
'software'
][
'forced-deployment-timestamp'
]
hn
[
'software'
][
'forced-deployment-timestamp'
]
=
h
[
'software'
][
'forced-deployment-timestamp'
]
end
end
...
...
lib/refrepo/valid/input/schemas/schema-node.yaml
View file @
de16113a
...
@@ -23,11 +23,13 @@ chassis:
...
@@ -23,11 +23,13 @@ chassis:
exotic
:
optional_boolean
exotic
:
optional_boolean
gpu_devices
:
optional_hash
gpu_devices
:
optional_hash
kavlan
:
kavlan
:
<multi>
:
<optional_hash>
:
<multi>
:
ip_address
<multi>
:
<multi>
:
ip_address
kavlan6
:
kavlan6
:
<multi>
:
<optional_hash>
:
<multi>
:
ip_address
<multi>
:
<multi>
:
ip_address
main_memory
:
main_memory
:
ram_size
:
integer
ram_size
:
integer
pmem_size
:
optional_integer
pmem_size
:
optional_integer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment