mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
F #-: Force change-media on migrations (#4073)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
This commit is contained in:
1 parent
cd00a4c87c
commit
4eae08c87b
1 file changed
+1
-1
@@ -354,7 +354,7 @@ module VirtualMachineManagerKVM
|
||||
|
||||
rodisks.each do |(dev, path)|
|
||||
new_path = dst_dir + path.relative_path_from(src_dir)
|
||||
cmd = "change-media #{@domain} #{dev} #{new_path} --update"
|
||||
cmd = "change-media #{@domain} #{dev} #{new_path} --update --force"
|
||||
|
||||
rc, out, err = virsh_retry(cmd, 'active block job', virsh_tries)
|
||||
return [rc, out, err] if rc != 0
|
||||
|
||||
Reference in new issue
Block a user