Martin Sivák has submitted this change and it was merged.
Change subject: Encapsulate the storage metadata and add support for blockSD
......................................................................
Encapsulate the storage metadata and add support for blockSD
This creates an encapsulation class that is responsible for
creation and usage of storage metadata directory.
It allows to specify arbitrary number of services and then
initializes the proper files and mappings for the broker
to use them.
The example usage is:
b = FilesystemBackend("uuid-of-the-storage-domain", "nfs")
b.create({
"hosted-engine.lockspace": 1048576,
"hosted-engine.metadata": 1048576
})
b.connect()
Supported storage types are: nfs, block and glusterfs
The type serves only as a hint, the storage domain has to exist
and be already connected for the above to work. The class does
autodetection of the SD type in all cases except glusterSD.
To force a clean metadata files pass force_new=True argument
to the create call.
Change-Id: Iaced4ac08936fc9314ff821343ce33d29a5897cf
Signed-off-by: Martin Sivak <msivak(a)redhat.com>
---
M ovirt-hosted-engine-ha.spec.in
M ovirt_hosted_engine_ha/env/constants.py.in
M ovirt_hosted_engine_ha/lib/Makefile.am
A ovirt_hosted_engine_ha/lib/storage_backends.py
A ovirt_hosted_engine_ha/lib/storage_backends_test.py
5 files changed, 351 insertions(+), 1 deletion(-)
Approvals:
Martin Sivák: Verified; Looks good to me, approved
Greg Padgett: Looks good to me, but someone else must approve
--
To view, visit
http://gerrit.ovirt.org/25797
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaced4ac08936fc9314ff821343ce33d29a5897cf
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck(a)redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett(a)redhat.com>
Gerrit-Reviewer: Jiří Moskovčák <jmoskovc(a)redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server