Live migration - premigrate script is not executed


(Harun) #1

Hello

I have a custom storage driver, and premigrate script not executed.

oned.conf:

TM_MAD_CONF = [
    NAME = "iscsi", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES",
    DRIVER = "raw", ALLOW_ORPHANS="YES", TM_MAD_SYSTEM = "ssh",
    LN_TARGET_SSH = "SYSTEM", CLONE_TARGET_SSH = "SYSTEM", DISK_TYPE_SSH = "FILE"
]

onedatastore show 114

DATASTORE 114 INFORMATION                                                       
ID             : 114                 
NAME           : storage-iscsi       
USER           : oneadmin            
GROUP          : oneadmin            
CLUSTERS       : 100                 
TYPE           : IMAGE               
DS_MAD         : iscsi               
TM_MAD         : iscsi               
BASE PATH      : /var/lib/one/datastores/114
DISK_TYPE      : BLOCK               
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 8T                  
FREE:          : 8T                  
USED:          : 287M                
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="YES"
BASE_IQN="iqn.2012-02.org.opennebula"
BRIDGE_LIST="storage-iscsi"
CLONE_TARGET="SELF"
DATASET_NAME="space/opennebula"
DATASTORE_CAPACITY_CHECK="yes"
DISK_TYPE="BLOCK"
DRIVER="raw"
DS_MAD="iscsi"
HOST="storage-iscsi"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
TM_MAD="iscsi"
TYPE="IMAGE_DS"
VBD_TYPE="zfs-ctl"
ZFS_BLOCK_SIZE="64k"

Log:

Tue Sep 25 09:22:18 2018 [Z0][VMM][D]: Message received: LOG I 35 Successfully execute transfer manager driver operation: tm_premigrate.
Tue Sep 25 09:22:18 2018 [Z0][VMM][D]: Message received: LOG I 35 ExitCode: 0
Tue Sep 25 09:22:18 2018 [Z0][VMM][D]: Message received: LOG I 35 Successfully execute network driver operation: pre.
Tue Sep 25 09:22:18 2018 [Z0][VMM][D]: Message received: LOG I 35 Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/migrate 'one-35' 'node2' 'node1' 35 node1
Tue Sep 25 09:22:19 2018 [Z0][VMM][D]: Message received: LOG E 35 migrate: Command "virsh --connect qemu:///system migrate --live  one-35 qemu+ssh://node2/system" failed: error: Cannot access storage file '/var/lib/one/datastores/0/35/disk.1'

I’m using:

OpenNebula 5.6
Hosting server OS: Centos 7.5
Guest OS: Debian

How to solve a problem?