Do not execute the elastic drivers post operation on snapshot-revert,
these operations are related to the hypervisor and not the VM.

(cherry picked from commit 60f00b49a356c603437ac09817c09bdb06bbcd5a)
This commit is contained in:
Ruben S. Montero committed 2023-09-26 18:55:30 +02:00
1 parent 1d4f0b4926
commit d4580646a4
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -833,6 +833,7 @@ class ExecDriver < VirtualMachineDriver
{
:driver => :vnm,
:action => :post,
:skip => ['elastic'],
:parameters => [:deploy_id, :host]
}
]
+4 -1
View File
@@ -49,7 +49,8 @@ class VirtualNetworkDriver
def do_action(id, aname, ops = {})
options={
:stdin => nil,
:parameters => nil
:parameters => nil,
:skip => nil
}.merge(ops)
cmd_params = ''
@@ -59,6 +60,8 @@ class VirtualNetworkDriver
infos = ''
@vnm_drivers.each do |subdirectory|
next if options[:skip] && options[:skip].include?(subdirectory)
cmd = action_command_line(aname, cmd_params, nil, subdirectory)
if action_is_local?(aname, subdirectory)