diff --git a/lib/hypervisor/hv_chroot.py b/lib/hypervisor/hv_chroot.py index 8b6ae8a617ab34496f0bcf297afb0e9458a0d06b..3830f5f6b2af6937521dfcacdb0f4bcb26c06202 100644 --- a/lib/hypervisor/hv_chroot.py +++ b/lib/hypervisor/hv_chroot.py @@ -233,6 +233,18 @@ class ChrootManager(hv_base.BaseHypervisor): raise HypervisorError("The chroot manager doesn't implement the" " reboot functionality") + def BalloonInstanceMemory(self, instance, mem): + """Balloon an instance memory to a certain value. + + @type instance: L{objects.Instance} + @param instance: instance to be accepted + @type mem: int + @param mem: actual memory size to use for instance runtime + + """ + # Currently chroots don't have memory limits + pass + def GetNodeInfo(self): """Return information about the node. diff --git a/lib/hypervisor/hv_lxc.py b/lib/hypervisor/hv_lxc.py index ce9e55a43d64b9eeefc070fbb63a5f96e295090c..70e73846270f65bc351cd7baa0f40d0cd48f541b 100644 --- a/lib/hypervisor/hv_lxc.py +++ b/lib/hypervisor/hv_lxc.py @@ -361,6 +361,18 @@ class LXCHypervisor(hv_base.BaseHypervisor): raise HypervisorError("The LXC hypervisor doesn't implement the" " reboot functionality") + def BalloonInstanceMemory(self, instance, mem): + """Balloon an instance memory to a certain value. + + @type instance: L{objects.Instance} + @param instance: instance to be accepted + @type mem: int + @param mem: actual memory size to use for instance runtime + + """ + # Currently lxc instances don't have memory limits + pass + def GetNodeInfo(self): """Return information about the node.