hep-gc / cloud-scheduler

Automatically boot VMs for your HTC jobs
http://cloudscheduler.org
Apache License 2.0
3 stars 0 forks source link

Multiple Resource return #128

Closed mhpx closed 13 years ago

mhpx commented 13 years ago

Sometimes a VMs resources will get returned twice. 2010-08-12 14:01:31,741 - INFO - Cleanup - Returning resources used by VM 772 to Cluster vmcgs29 2010-08-12 14:01:31,741 - INFO - Cleanup - Destroyed vm 772 on vmcgs29.phys.uvic.ca 2010-08-12 14:01:31,741 - DEBUG - Cleanup - Clearing all un-needed VMs from the system 2010-08-12 14:01:31,742 - DEBUG - Cleanup - Cleanup waiting 5s... 2010-08-12 14:01:31,744 - DEBUG - Scheduler - (vm_destroy) - VM shutdown request failed, moving directly to destroy. 2010-08-12 14:01:31,744 - DEBUG - Scheduler - Waiting 8s for VM to shut down... 2010-08-12 14:01:36,739 - DEBUG - Cleanup - Syncing job queues 2010-08-12 14:01:36,739 - DEBUG - Cleanup - get_required_vmtypes - Required VM types: green

2010-08-12 14:01:42,151 - DEBUG - Scheduler - VM 772 seems to have already been destroyed. 2010-08-12 14:01:42,152 - INFO - Scheduler - Returning resources used by VM 772 to Cluster vmcgs29 2010-08-12 14:01:42,152 - ERROR - Scheduler - Attempted to remove vm from list that was already removed. 2010-08-12 14:01:42,152 - INFO - Scheduler - Destroyed vm 772 on vmcgs29.phys.uvic.ca 2010-08-12 14:01:42,152 - ERROR - Scheduler - Destroying VM failed in attempt to clear uneeded VM. Leaving VM.

mhpx commented 13 years ago

fixed, altered ordering on returning resources vs removing vm from the list to detect when that vm had already been removed and was a repeat attempt