From eb0a3adafca3f2741d0dc71c5cbb9fe3956f7d7d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 28 Jun 2021 01:20:55 +0300 Subject: [PATCH] Patch libvirt schema, add an example to test libvirt --- cinder-driver/libvirt-5.0-vitastor.diff | 50 ++++++++++++++++++++++- cinder-driver/libvirt-7.0-vitastor.diff | 54 +++++++++++++++++++++++++ cinder-driver/libvirt-7.5-vitastor.diff | 54 +++++++++++++++++++++++++ cinder-driver/libvirt-example.xml | 32 +++++++++++++++ 4 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 cinder-driver/libvirt-example.xml diff --git a/cinder-driver/libvirt-5.0-vitastor.diff b/cinder-driver/libvirt-5.0-vitastor.diff index af30809c..5f9475f6 100644 --- a/cinder-driver/libvirt-5.0-vitastor.diff +++ b/cinder-driver/libvirt-5.0-vitastor.diff @@ -1,9 +1,57 @@ -commit 367f518e76c36e1d815b41f5a0f623b71877e13c +commit 74b70c3e9482850c0f141f52ef2510466d68050b Author: Vitaliy Filippov Date: Sun Jun 27 12:52:40 2021 +0300 Add Vitastor support +diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng +index aa50eac..082b4f8 100644 +--- a/docs/schemas/domaincommon.rng ++++ b/docs/schemas/domaincommon.rng +@@ -1728,6 +1728,35 @@ + + + ++ ++ ++ ++ ++ vitastor ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1851,6 +1880,7 @@ + + + ++ + + + diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-storage.h index 4bf2b5f..dbc011b 100644 --- a/include/libvirt/libvirt-storage.h diff --git a/cinder-driver/libvirt-7.0-vitastor.diff b/cinder-driver/libvirt-7.0-vitastor.diff index 282fb5fa..53e89673 100644 --- a/cinder-driver/libvirt-7.0-vitastor.diff +++ b/cinder-driver/libvirt-7.0-vitastor.diff @@ -1,3 +1,57 @@ +commit 46c76fe10d9e327fcefbf22b3173095626bee083 +Author: Vitaliy Filippov +Date: Mon Jun 28 01:18:41 2021 +0300 + + Add Vitastor support + +diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng +index 7dc419b..875433b 100644 +--- a/docs/schemas/domaincommon.rng ++++ b/docs/schemas/domaincommon.rng +@@ -1827,6 +1827,35 @@ + + + ++ ++ ++ ++ ++ vitastor ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -2083,6 +2112,7 @@ + + + ++ + + + diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-storage.h index 089e1e0..d7e7ef4 100644 --- a/include/libvirt/libvirt-storage.h diff --git a/cinder-driver/libvirt-7.5-vitastor.diff b/cinder-driver/libvirt-7.5-vitastor.diff index eab7d06c..fb50dca6 100644 --- a/cinder-driver/libvirt-7.5-vitastor.diff +++ b/cinder-driver/libvirt-7.5-vitastor.diff @@ -1,3 +1,57 @@ +commit 804f2fb24aedd32e238f84a7865e8a454e012e9c +Author: Vitaliy Filippov +Date: Mon Jun 28 01:20:19 2021 +0300 + + Add Vitastor support + +diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng +index 5ea14b6..a9df168 100644 +--- a/docs/schemas/domaincommon.rng ++++ b/docs/schemas/domaincommon.rng +@@ -1859,6 +1859,35 @@ + + + ++ ++ ++ ++ ++ vitastor ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -2115,6 +2144,7 @@ + + + ++ + + + diff --git a/include/libvirt/libvirt-storage.h b/include/libvirt/libvirt-storage.h index 089e1e0..d7e7ef4 100644 --- a/include/libvirt/libvirt-storage.h diff --git a/cinder-driver/libvirt-example.xml b/cinder-driver/libvirt-example.xml new file mode 100644 index 00000000..0b288ab2 --- /dev/null +++ b/cinder-driver/libvirt-example.xml @@ -0,0 +1,32 @@ + + + debian9 + 96f277fb-fd9c-49da-bf21-a5cfd54eb162 + 524288 + 524288 + 1 + + hvm + + + + /usr/bin/qemu-system-x86_64 + + + + + + + + + + + + + + + + + + +