fp7-ofelia / ocf

OFELIA Control Framework (OCF) is a set of software tools for testbed management.
http://fp7-ofelia.github.com/ocf/
Other
18 stars 14 forks source link

check_vms_status per slice returns the whole list of VMs #175

Closed CarolinaFernandez closed 11 years ago

CarolinaFernandez commented 11 years ago

VT plug-in returns every possible VM when the status for a slice is checked. This should return only the list of VMs within that slices; for both exactitude and performance.

CarolinaFernandez commented 11 years ago

A filter was missing on the VT plug-in, namely:

-                for vm in server.as_leaf_class().vms.all():
+                for vm in server.as_leaf_class().vms.all().filter(sliceId = slice.uuid):

Fixed from commits: a43a2885531ce7b0e14910c7cfe16779a475efa6 and 18c42241d12e5b1b0a9ad730ce01f02d0d4994cb.