Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
ac971600
Commit
ac971600
authored
13 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
BGQ - handle when we are trying to boot a block when it is already trying
to boot. This should happen very rarely.
parent
08d64603
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/select/bluegene/bl_bgq/bridge_helper.cc
+38
-2
38 additions, 2 deletions
src/plugins/select/bluegene/bl_bgq/bridge_helper.cc
with
38 additions
and
2 deletions
src/plugins/select/bluegene/bl_bgq/bridge_helper.cc
+
38
−
2
View file @
ac971600
...
...
@@ -227,10 +227,46 @@ extern int bridge_handle_runtime_errors(const char *function,
switch
(
err
)
{
case
bgsched
::
RuntimeErrors
::
BlockBootError
:
error
(
"%s: Error booting block %s."
,
function
,
bg_record
->
bg_block_id
);
{
BlockFilter
filter
;
Block
::
Ptrs
vec
;
rc
=
BG_ERROR_BOOT_ERROR
;
if
((
bg_record
->
magic
!=
BLOCK_MAGIC
)
||
!
bg_record
->
bg_block_id
)
{
error
(
"%s: bad block given to booting."
,
function
);
break
;
}
filter
.
setName
(
string
(
bg_record
->
bg_block_id
));
vec
=
bridge_get_blocks
(
filter
);
if
(
vec
.
empty
())
{
debug
(
"%s: block %s not found, removing "
"from slurm"
,
function
,
bg_record
->
bg_block_id
);
break
;
}
const
Block
::
Ptr
&
block_ptr
=
*
(
vec
.
begin
());
uint16_t
state
=
bridge_translate_status
(
block_ptr
->
getStatus
().
toValue
());
if
(
state
==
BG_BLOCK_FREE
)
{
error
(
"%s: Block %s was free but we got an error "
"while trying to boot it. (system=%s) (us=%s)"
,
function
,
bg_record
->
bg_block_id
,
bg_block_state_string
(
state
),
bg_block_state_string
(
bg_record
->
state
));
}
else
{
debug
(
"%s: tring to boot a block %s that wasn't "
"free (system=%s) (us=%s), no real error."
,
function
,
bg_record
->
bg_block_id
,
bg_block_state_string
(
state
),
bg_block_state_string
(
bg_record
->
state
));
rc
=
SLURM_SUCCESS
;
}
break
;
}
case
bgsched
::
RuntimeErrors
::
BlockFreeError
:
/* not a real error */
rc
=
BG_ERROR_INVALID_STATE
;
...
...
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