mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 20:32:38 +09:00
Feature #4215: Clean VMs in vrouter.instantiate on failure
This commit is contained in:
1 parent
1ae516a084
commit
d66fe153e5
2 files changed
+14
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user