Change in ovirt-hosted-engine-ha[master]: Add metadata cleanup functionality

msivak at redhat.com msivak at redhat.com
Tue Mar 10 12:49:40 UTC 2015


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 at 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 at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list