Commit fc1b0151 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Make the dispatcher refresh on tag updates

Make a dummy ModifyInstance call when changing instance 
tags in order to force process_net_status to be called on
the dispatcher.
parent 3ce4cdd8
......@@ -165,7 +165,7 @@ def create_instance(vm, flavor, image, password):
disk_template='plain',
disks=[{"size": 4000}], #FIXME: Always ask for a 4GB disk for now
nics=[nic],
os='image+default',
os=settings.GANETI_OS_PROVIDER,
ip_check=False,
name_check=False,
# Do not specific a node explicitly, have
......@@ -291,3 +291,7 @@ def set_firewall_profile(vm, profile):
rapi.DeleteInstanceTags(vm.backend_id, [t], dry_run=settings.TEST)
rapi.AddInstanceTags(vm.backend_id, [tag], dry_run=settings.TEST)
# XXX NOP ModifyInstance call to force process_net_status to run
# on the dispatcher
rapi.ModifyInstance(vm.backend_id, os_name=settings.GANETI_OS_PROVIDER)
......@@ -48,3 +48,5 @@ GANETI_CLUSTER_INFO = (GANETI_MASTER_IP, 5080, "synnefo", "ocean!")
# of Synnefo VMs at the Ganeti backend.
# The dash must always appear in the name!
BACKEND_PREFIX_ID = "snf-"
GANETI_OS_PROVIDER = "image+default"
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