Change in vdsm[master]: hooks: Remove dead code from before_vm_migrate_destination

mbetak at redhat.com mbetak at redhat.com
Tue Feb 2 16:12:34 UTC 2016


Martin Betak has uploaded a new change for review.

Change subject: hooks: Remove dead code from before_vm_migrate_destination
......................................................................

hooks: Remove dead code from before_vm_migrate_destination

Change-Id: Ibc853b33ee7470581c1dae4ad408639909ea0cd9
Signed-off-by: Martin Betak <mbetak at redhat.com>
---
M vdsm_hooks/hugepages/before_vm_migrate_destination.py
1 file changed, 0 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/98/52998/1

diff --git a/vdsm_hooks/hugepages/before_vm_migrate_destination.py b/vdsm_hooks/hugepages/before_vm_migrate_destination.py
index af1c4af..bdcd8d9 100755
--- a/vdsm_hooks/hugepages/before_vm_migrate_destination.py
+++ b/vdsm_hooks/hugepages/before_vm_migrate_destination.py
@@ -52,11 +52,3 @@
         sys.stderr.write('hugepages before_vm_migraton_destination: '
                          '[unexpected error]: %s\n' % traceback.format_exc())
         sys.exit(2)
-
-        # Add system hugepages
-        allocatedPages = addSysHugepages(pages)
-        if allocatedPages != pages:
-            freeSysHugepages(allocatedPages)
-            sys.stderr.write('hugepages before_vm_migraton_destination: cannot'
-                             ' allocate enough pages\n')
-            sys.exit(2)


-- 
To view, visit https://gerrit.ovirt.org/52998
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc853b33ee7470581c1dae4ad408639909ea0cd9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <mbetak at redhat.com>


More information about the vdsm-patches mailing list