Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AIG-public
Cobalt
Commits
60c6cc9f
Commit
60c6cc9f
authored
Jun 20, 2017
by
Paul Rich
Browse files
Merge branch 'develop'
parents
8d8aa6ac
c89bddf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Components/system/CraySystem.py
View file @
60c6cc9f
...
...
@@ -230,12 +230,16 @@ class CraySystem(BaseSystem):
node
.
managed
=
True
nodes
[
node
.
node_id
]
=
node
for
node_id
,
nodespec
in
system
.
iteritems
():
nodes
[
node_id
].
attributes
.
update
(
nodespec
[
'attrs'
])
# Should this be a different status?
nodes
[
node_id
].
role
=
nodespec
[
'role'
].
upper
()
if
nodes
[
node_id
].
role
.
upper
()
not
in
[
'BATCH'
]:
nodes
[
node_id
].
status
=
'down'
nodes
[
node_id
].
status
=
nodespec
[
'state'
]
try
:
nodes
[
node_id
].
attributes
.
update
(
nodespec
[
'attrs'
])
except
KeyError
:
continue
#ignore the partial node information, this node is disabled. This is a 6.0UP03/UP04 bug
else
:
# Should this be a different status?
nodes
[
node_id
].
role
=
nodespec
[
'role'
].
upper
()
if
nodes
[
node_id
].
role
.
upper
()
not
in
[
'BATCH'
]:
nodes
[
node_id
].
status
=
'down'
nodes
[
node_id
].
status
=
nodespec
[
'state'
]
self
.
nodes
=
nodes
def
_assemble_reservations
(
self
,
reservations
,
reserved_nodes
):
...
...
@@ -464,7 +468,7 @@ class CraySystem(BaseSystem):
# Apparently, we CAN add nodes on the fly. The node would
# have been disabled. We need to add a new node and update
# it's state.
_logger
.
warning
(
'Unknown node %s found. Starting reconstruction.'
,
inven_node
[
'node_id'
])
#
_logger.warning('Unknown node %s found. Starting reconstruction.', inven_node['node_id'])
try
:
if
recon_inventory
is
None
:
recon_inventory
=
ALPSBridge
.
fetch_inventory
()
...
...
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