Commit b8c9b426 by Karsa Zoltán István

celery hotplug mem and vcpu set

parent 494675f9
......@@ -550,6 +550,21 @@ def migrate(name, host, live=False):
bandwidth=0)
# return _parse_info(domain.info())
@celery.task
@req_connection
@wrap_libvirtError
def hotplug_memset(name, memory):
"""Hotplug (live) memory set to max mem limit"""
domain = lookupByName(name)
domain.setMemory(memory)
@celery.task
@req_connection
@wrap_libvirtError
def hotplug_vcpuset(name, vcpu):
"""Hotplug (live) vcpu set to max vcpu limit"""
domain = lookupByName(name)
domain.setVcpus(vcpu)
@celery.task
@req_connection
......
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 sign in to comment