Change in ovirt-hosted-engine-ha[master]: Encapsulate the storage metadata and add support for blockSD

msivak at redhat.com msivak at redhat.com
Fri Mar 21 15:20:49 UTC 2014


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 at 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 at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Greg Padgett <gpadgett at redhat.com>
Gerrit-Reviewer: Jiří Moskovčák <jmoskovc 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