This was causing a bad race condition, where we could unlock a node, then unlock
it again via the nuke process after a different job had locked it.
Fixes: https://tracker.ceph.com/issues/64193
Signed-off-by: Zack Cerza <zack@redhat.com>
machine, job_info['owner'],
job_info['archive_path']
)
- if job_status != 'pass' and job_config.get('nuke-on-error', False):
- log.info('Nuking machines...')
- fake_ctx = create_fake_context(job_config)
- nuke.nuke(fake_ctx, True)
def run_with_watchdog(process, job_config):