Commit 2e2fb795 authored by Guido Trotter's avatar Guido Trotter
Browse files

No-op memory ballooning in chroot and lxc



Currently they have no memory limits set.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent cfb5f9da
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment