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:
Simon Westphahl
2025-09-15 09:42:40 +02:00
parent 86544d55b1
commit 74f622f8e7
3 changed files with 11 additions and 1 deletions

View File

@@ -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.