Greg Padgett has submitted this change and it was merged.
Change subject: agent: store metadata on storage domain, sync with sanlock
......................................................................
agent: store metadata on storage domain, sync with sanlock
Instead of requiring an additional shared storage location to hold the
agent metadata, store it on the storage domain holding the engine vm.
Sanlock is used to assist in coordination of the storage and guarantee
host_id uniqueness amongst hosts.
A new directory named 'ha_agent' will be created on the storage domain
by the ha setup package. Two files reside within, one for the lockspace
(named 'hosted-engine.lockspace') and one for the metadata (similarly
named 'hosted-engine.metadata').
The metadata file is shared by all hosts participating in the engine
high availability cluster. Each host is assigned a 4KiB chunk according
to its host id, with a corresponding offset of host_id*4KiB. The
initial 4KiB of the file are reserved for shared state such as a global
engine ha maintenance bit.
Change-Id: I9f09e736f6556c0bf9a435d3a88035d9dbd53883
Signed-off-by: Greg Padgett <gpadgett(a)redhat.com>
---
M ovirt-hosted-engine-ha.spec.in
M ovirt_hosted_engine_ha/agent/brokerlink.py
M ovirt_hosted_engine_ha/agent/config.py
M ovirt_hosted_engine_ha/agent/constants.py.in
M ovirt_hosted_engine_ha/agent/hosted_engine.py
M ovirt_hosted_engine_ha/broker/constants.py.in
M ovirt_hosted_engine_ha/broker/storage_broker.py
7 files changed, 171 insertions(+), 81 deletions(-)
Approvals:
Sandro Bonazzola: Looks good to me, but someone else must approve
Greg Padgett: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/17609
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9f09e736f6556c0bf9a435d3a88035d9dbd53883
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadgett(a)redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett(a)redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim(a)redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>