2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-21 18:02:27 +00:00

Do not report a cleared diskless profile as completed

A booted diskless node keeps its profile in deployment.pendingprofile
and records it in deployment.profile with state "booted". After
nodedeploy -c clears the pending profile, nodedeploy printed
"completed: <profile> (booted - ...)", although no deployment completed
and the node will not network boot that profile again.

Show "booted, not pending: <profile>" for that case instead.
This commit is contained in:
Markus Hilger
2026-10-30 09:44:50 +01:00
parent 0c57184ef1
commit dd353aec04
+5 -1
View File
@@ -187,7 +187,11 @@ def main(args):
profile = 'staged: {}'.format(profile)
else:
profile = databynode[node].get('deployment.profile', '')
if profile:
if profile and databynode[node].get('deployment.state', '') == 'booted':
# a diskless node runs this profile until its next
# reboot, but it is not pending anymore
profile = 'booted, not pending: {}'.format(profile)
elif profile:
profile = 'completed: {}'.format(profile)
elif args.clear:
profile = 'No profile applied, any pending profile has been cleared'