- VM image is optional parameter of VMCreate
authorJiří Filipovič <fila@ics.muni.cz>
Fri, 31 Aug 2012 09:27:28 +0000 (09:27 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Fri, 31 Aug 2012 09:27:28 +0000 (09:27 +0000)
- added extra event VMCreate

org.glite.lb.state-machine/src/process_event_virtual_machine.c
org.glite.lb.types/events.T

index ab41771..27beb0c 100644 (file)
@@ -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){
index b9cc256..67073e4 100644 (file)
 @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