mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Feature #4215: Clean VMs in vrouter.instantiate on failure
This commit is contained in:
parent
1ae516a084
commit
d66fe153e5
@ -142,6 +142,13 @@ void VirtualRouterInstantiate::request_execute(
|
||||
|
||||
if (vid == -1)
|
||||
{
|
||||
string tmp_error;
|
||||
|
||||
for (vmid = vms.begin(); vmid != vms.end(); vmid++)
|
||||
{
|
||||
dm->finalize(*vmid, tmp_error);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,13 @@ define(function(require) {
|
||||
Sunstone.resetFormPanel(TAB_ID, FORM_PANEL_ID);
|
||||
Sunstone.hideFormPanel(TAB_ID);
|
||||
},
|
||||
error: Notifier.onError
|
||||
error: function(request, response) {
|
||||
Sunstone.hideFormPanelLoading(TAB_ID);
|
||||
|
||||
Notifier.notifyError(Locale.tr(
|
||||
"Failed to create VMs. Virtual Router may need to be deleted manually."));
|
||||
Notifier.onError(request, response);
|
||||
}
|
||||
});
|
||||
},
|
||||
error: function(request, response) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user