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

Actions being kept unrelated to their referred VMs #221

Closed CarolinaFernandez closed 10 years ago

CarolinaFernandez commented 10 years ago

There is a problem when upgrading from 0.6.1 to 0.7 (#219) -and upwards-. This is caused by the backup procedure, when the python manage.py dumpdata is invoked.

This commands iterates over each entry of the related database or table. When it reaches the vt_plugin, the actions are retrieved. Some of them point to non-existent VMs and this breaks the backup.

Remove the related action(s) when a VM is deleted, either in the normal or forced method. Provide also a mechanism to clean the database for this matter.

CarolinaFernandez commented 10 years ago

Fixed.