[PATCH v4 1/3] Parallels: remove disk serial number check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OpenStack needs disk serial number setup because
nova boot --block-device-mapping command generates that param in
libvirt xml. I took QEMU libvirt driver behavior as a base.
QEMU driver skips inability to set serial and continues work.
So Parallels driver will ignore this param too and let domain
boot.
---
 src/parallels/parallels_sdk.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c
index c36b772..fa5c44d 100644
--- a/src/parallels/parallels_sdk.c
+++ b/src/parallels/parallels_sdk.c
@@ -2358,10 +2358,8 @@ static int prlsdkCheckDiskUnsupportedParams(virDomainDiskDefPtr disk)
     }
 
     if (disk->serial) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("Setting disk serial number is not "
+        VIR_INFO("%s", _("Setting disk serial number is not "
                          "supported by parallels driver."));
-        return -1;
     }
 
     if (disk->wwn) {
-- 
1.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]