From dd353aec04f11b16c625a345b34b241658a0f8df Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Fri, 30 Oct 2026 09:44:50 +0100 Subject: [PATCH] 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: (booted - ...)", although no deployment completed and the node will not network boot that profile again. Show "booted, not pending: " for that case instead. --- confluent_client/bin/nodedeploy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodedeploy b/confluent_client/bin/nodedeploy index d0061252..7b58605d 100755 --- a/confluent_client/bin/nodedeploy +++ b/confluent_client/bin/nodedeploy @@ -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'