
Martin Sivák has submitted this change and it was merged. Change subject: Add metadata cleanup functionality ...................................................................... Add metadata cleanup functionality This patch adds a new command line arguments to the agent service. --host-id, --clean and --force-clean The agent connects to vdsm, broker and storage as usual, cleans its metadata block using 0x0 bytes and quits. If the metadata block contains dirty status (crc does not match or stopped is not True) the agent reports an error and quits. The force-clean option overrides this. The host-id option can be used to clean metadata of other agent from another hosted engine enabled host (the operation requires running broker and proper storage configuration). This change also releases sanlock when the agent stops. Change-Id: I4e0979bdfc45e7e07c9970994d98dfa1c9c94be0 Signed-off-by: Martin Sivak <msivak@redhat.com> --- M ovirt_hosted_engine_ha/agent/agent.py M ovirt_hosted_engine_ha/agent/hosted_engine.py M ovirt_hosted_engine_ha/lib/metadata.py 3 files changed, 93 insertions(+), 14 deletions(-) Approvals: Sandro Bonazzola: Looks good to me, but someone else must approve Martin Sivák: Verified; Looks good to me, approved -- To view, visit https://gerrit.ovirt.org/38289 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4e0979bdfc45e7e07c9970994d98dfa1c9c94be0 Gerrit-PatchSet: 6 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: master Gerrit-Owner: Martin Sivák <msivak@redhat.com> Gerrit-Reviewer: Martin Sivák <msivak@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbonazzo@redhat.com> Gerrit-Reviewer: automation@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server