Allow max-ready-age definition in label defaults
Since nodes for canceled nodeset requests will also result in unassigned ready nodes (not only the ones created by min-ready), we should allow configuring max-ready-age as a label default. Change-Id: Ic30b84d2f080d5d3dcfe4ecc3c35392d32b91c4e
This commit is contained in:
@@ -30,6 +30,12 @@ common_label = vs.Schema({
|
||||
'boot-timeout', default=300,
|
||||
doc="""The time (in seconds) to wait for a node to boot.""",
|
||||
): int,
|
||||
Optional(
|
||||
'max-ready-age', default=0,
|
||||
doc="""\
|
||||
The time (in seconds) an unassigned node should stay in ready state.
|
||||
"""
|
||||
): int,
|
||||
Optional(
|
||||
'snapshot-timeout', default=3600,
|
||||
doc="""The time (in seconds) to wait for a snapshot to complete."""
|
||||
@@ -75,7 +81,6 @@ base_label = vs.Schema({
|
||||
Optional('image'): Nullable(str),
|
||||
Optional('flavor'): Nullable(str),
|
||||
Optional('min-ready', default=0): int,
|
||||
Optional('max-ready-age', default=0): int,
|
||||
})
|
||||
|
||||
# Label attributes that are common to any kind of ssh-based driver.
|
||||
|
||||
Reference in New Issue
Block a user