From a969c60465dd078a33a1590455b19a40821900c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Fri, 31 Aug 2012 09:27:28 +0000 Subject: [PATCH] - VM image is optional parameter of VMCreate - added extra event VMCreate --- org.glite.lb.state-machine/src/process_event_virtual_machine.c | 5 +++++ org.glite.lb.types/events.T | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.state-machine/src/process_event_virtual_machine.c b/org.glite.lb.state-machine/src/process_event_virtual_machine.c index ab41771..27beb0c 100644 --- a/org.glite.lb.state-machine/src/process_event_virtual_machine.c +++ b/org.glite.lb.state-machine/src/process_event_virtual_machine.c @@ -85,6 +85,11 @@ int processEvent_VirtualMachine(intJobStat *js, edg_wll_Event *e, int ev_seq, in //XXX transfer to prolog/boot state? } break; + case EDG_WLL_EVENT_VMIMAGE: + if (USABLE_DATA(res)) { + rep_cond(js->pub.vm_image, e->vMCreate.image); + } + break; case EDG_WLL_EVENT_VMRUNNING: if (USABLE(res)) { switch( e->vMRunning.vm_source){ diff --git a/org.glite.lb.types/events.T b/org.glite.lb.types/events.T index b9cc256..67073e4 100644 --- a/org.glite.lb.types/events.T +++ b/org.glite.lb.types/events.T @@ -545,17 +545,21 @@ @flesh VirtualMachine @type VMCreate create (register) virtual machine - string image machine image string require machine requirements string id machine id string name machine name string owner machine owner string hostname hostname of VM string manager VM manager + string image machine image + _optional_ @type VMHost string hostname hostname of physical machine of VM +@type VMImage + string image machine image + @type VMRunning VM is running int vm_source _code_ CM cloud manager -- 1.8.2.3