1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5268: detach nic if prereconfigure fails (#2162)

(cherry picked from commit de5bc4be13cd330879b1538b4f8de7debeaa7ccd)
This commit is contained in:
Alejandro Huertas Herrero 2022-06-20 12:48:17 +02:00 committed by Ruben S. Montero
parent c11131185c
commit 85d68ed389
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -1057,7 +1057,14 @@ class ExecDriver < VirtualMachineDriver
steps << {
:driver => :vmm,
:action => :prereconfigure,
:parameters => [:deploy_id, target_device]
:parameters => [:deploy_id, target_device],
:fail_actions => [
{
:driver => :vmm,
:action => :detach_nic,
:parameters => [:deploy_id, mac]
}
]
}
if tm_command && !tm_command.empty?