Prevent relevant ERROR_MESSAGEs to be deleted
|Affected Versions:||OpenNebula 4.0|
The hosts only have one type of template error message, monitorization, but the VMs can have different messages: attach failed, monitorization failed, etc.
As the code is now, if the VM has an operation message (e.g. could not attach disk), a successful monitorization will clear that message.
Maybe we could define two types of errors: the ones that inform of a failed operation, and the ones that can be resolved on their own and can be cleared (monitoring).
The failed operations could be stored in a vector attribute:
ERROR_MESSAGES = [ ERROR = "attach failed because...", ERROR = "shutdown failed because..." ]