ouyang guohua has uploaded a new change for review.

Change subject: core: validation: Add host support version for "oVirt Node 
Hypervisor"
......................................................................

core: validation: Add host support version for "oVirt Node Hypervisor"

Change-Id: I5e9a264857d4296b3387ea63d3d53dac090ae53c
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=995994
Signed-off-by: ouyang guohua <[email protected]>
---
M src/plugins/ovirt-host-deploy/vdsm/software.py
1 file changed, 12 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/47/17947/1

diff --git a/src/plugins/ovirt-host-deploy/vdsm/software.py 
b/src/plugins/ovirt-host-deploy/vdsm/software.py
index 2f0ec80..08062f5 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/software.py
+++ b/src/plugins/ovirt-host-deploy/vdsm/software.py
@@ -42,7 +42,7 @@
         stage=plugin.Stages.STAGE_VALIDATION,
     )
     def _validation(self):
-        dist, ver = platform.linux_distribution(full_distribution_name=0)[:2]
+        dist, ver = platform.linux_distribution(full_distribution_name=1)[:2]
         if dist in ('redhat', 'centos'):
             if LooseVersion(ver) < LooseVersion('6.2'):
                 raise RuntimeError(
@@ -65,6 +65,17 @@
                         version=ver,
                     )
                 )
+        elif dist == 'oVirt Node Hypervisor':
+            if LooseVersion(ver) < LooseVersion('2.5.0'):
+                raise RuntimeError(
+                    _(
+                        'Distribution {distribution} version {version} '
+                        'is not supported'
+                    ).format(
+                        distribution=dist,
+                        version=ver,
+                    )
+                )
         else:
             raise RuntimeError(
                 _('Distribution {distribution} is not supported').format(


-- 
To view, visit http://gerrit.ovirt.org/17947
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e9a264857d4296b3387ea63d3d53dac090ae53c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: ouyang guohua <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to