<div dir="ltr"><div><div><div><div>Greetings!<br></div>I've recently upgraded from v4.4 to 4.6. As part of the upgrade, we decided to create a new db using MySQL. The configurations ran smooth, all nodes and datastores are being monitored without issues but when I tried to upload a ttylinux image for testing, sunstone didn't show the image uploaded on the list. As if it wasn' t even there. I ran the  #oneimage list command, and there's no image there either. So I tried uploading again, while I checked the oned.log. I then tried to upload other images.<br></div><div>I have OpenNebula front end installed on a host, several other nodes that are speciffic for running the VMs and a NAS with 20TB that holds the datastores. While I was uploading an ubuntu image (20GB), I checked the transmition rate on the network and I was supprised to see that the traffic between my desktop (where I was uploading from) and the frontend was very heavy, but the datastore was not recieving the image I was uploading.<br><br></div>Interestingly, the log showed this error:<br><br>Tue Sep  9 16:20:04 2014 [ONE][E]: SQL command was: REPLACE INTO datastore_pool (oid, name, body, uid, gid, owner_u, group_u, other_u, cid) VALUES (0,'system','<DATASTORE><ID>0</ID><UID>0</UID><GID>0</GID><UNAME>oneadmin</UNAME><GNAME>oneadmin</GNAME><NAME>system</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M>1</OWNER_M><OWNER_A>0</OWNER_A><GROUP_U>1</GROUP_U><GROUP_M>0</GROUP_M><GROUP_A>0</GROUP_A><OTHER_U>0</OTHER_U><OTHER_M>0</OTHER_M><OTHER_A>0</OTHER_A></PERMISSIONS><DS_MAD><![CDATA[-]]></DS_MAD><TM_MAD><![CDATA[shared]]></TM_MAD><BASE_PATH><![CDATA[/var/lib/one//datastores/0]]></BASE_PATH><TYPE>1</TYPE><DISK_TYPE>0</DISK_TYPE><CLUSTER_ID>-1</CLUSTER_ID><CLUSTER></CLUSTER><TOTAL_MB>9461612</TOTAL_MB><FREE_MB>8956832</FREE_MB><USED_MB>1</USED_MB><IMAGES></IMAGES><TEMPLATE><BASE_PATH><![CDATA[/var/lib/one//datastores/]]></BASE_PATH><SHARED><![CDATA[YES]]></SHARED><TM_MAD><![CDATA[shared]]></TM_MAD><TYPE><![CDATA[SYSTEM_DS]]></TYPE></TEMPLATE></DATASTORE>',0,0,1,1,0,-1), error 1213 : Deadlock found when trying to get lock; try restarting transaction<br><br>/*******************************************************/<br><br></div>I leave down here a copy of my oned.conf<br><br><br></div>/*******************************************************/<br><div>LOG = [<br>  system      = "file",<br>  debug_level = 3<br>]<br>MONITORING_INTERVAL = 60<br>MONITORING_THREADS  = 50<br>SCRIPTS_REMOTE_DIR=/var/tmp/one<br>PORT = 2633<br>DB = [ backend = "mysql",<br>        server  = "localhost",<br>        port    = 0,<br>        user    = "oneadmin",<br>        passwd  = "__________________",<br>        db_name = "opennebula" ]<br>VNC_BASE_PORT = 5900<br>FEDERATION = [<br>    MODE = "STANDALONE",<br>    ZONE_ID = 0,<br>    MASTER_ONED = ""<br>]<br>NETWORK_SIZE = 254<br>MAC_PREFIX   = "02:00"<br>DATASTORE_CAPACITY_CHECK = "yes"<br>DEFAULT_IMAGE_TYPE    = "OS"<br>DEFAULT_DEVICE_PREFIX = "hd"<br>DEFAULT_CDROM_DEVICE_PREFIX = "vd"<br>IM_MAD = [<br>      name       = "collectd",<br>      executable = "collectd",<br>      arguments  = "-p 4124 -f 5 -t 50 -i 20" ]<br>IM_MAD = [<br>      name       = "kvm",<br>      executable = "one_im_ssh",<br>      arguments  = "-r 3 -t 15 kvm" ]<br>VM_MAD = [<br>    name       = "kvm",<br>    executable = "one_vmm_exec",<br>    arguments  = "-t 15 -r 0 kvm",<br>    default    = "vmm_exec/vmm_exec_kvm.conf",<br>    type       = "kvm" ]<br>TM_MAD = [<br>    executable = "one_tm",<br>    arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph"<br>]<br>DATASTORE_MAD = [<br>    executable = "one_datastore",<br>    arguments  = "-t 15 -d dummy,fs,vmfs,lvm,ceph"<br>]<br>HM_MAD = [<br>    executable = "one_hm" ]<br>AUTH_MAD = [<br>    executable = "one_auth_mad",<br>    authn = "ssh,x509,ldap,server_cipher,server_x509"<br>]<br>SESSION_EXPIRATION_TIME = 900<br>DEFAULT_UMASK = 177<br>VM_RESTRICTED_ATTR = "CONTEXT/FILES"<br>VM_RESTRICTED_ATTR = "NIC/MAC"<br>VM_RESTRICTED_ATTR = "NIC/VLAN_ID"<br>VM_RESTRICTED_ATTR = "NIC/BRIDGE"<br>IMAGE_RESTRICTED_ATTR = "SOURCE"<br>INHERIT_DATASTORE_ATTR  = "CEPH_HOST"<br>INHERIT_DATASTORE_ATTR  = "CEPH_SECRET"<br>INHERIT_DATASTORE_ATTR  = "CEPH_USER"<br>INHERIT_DATASTORE_ATTR  = "RBD_FORMAT"<br>INHERIT_DATASTORE_ATTR  = "GLUSTER_HOST"<br>INHERIT_DATASTORE_ATTR  = "GLUSTER_VOLUME"<br>INHERIT_VNET_ATTR       = "VLAN_TAGGED_ID"<br>TM_MAD_CONF = [<br>    name = "dummy", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"<br>]<br>TM_MAD_CONF = [<br>    name = "lvm", ln_target = "NONE", clone_target = "SELF", shared = "yes"<br>]<br>TM_MAD_CONF = [<br>    name = "shared", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"<br>]<br>TM_MAD_CONF = [<br>    name = "fs_lvm", ln_target = "SYSTEM", clone_target = "SYSTEM", shared="yes"<br>]<br>TM_MAD_CONF = [<br>    name = "qcow2", ln_target = "NONE", clone_target = "SYSTEM", shared = "yes"<br>]<br>TM_MAD_CONF = [<br>    name = "ssh", ln_target = "SYSTEM", clone_target = "SYSTEM", shared = "no"<br>]<br>TM_MAD_CONF = [<br>    name = "vmfs", ln_target = "NONE", clone_target= "SYSTEM", shared = "yes"<br>]<br>TM_MAD_CONF = [<br>    name = "ceph", ln_target = "NONE", clone_target = "SELF", shared = "yes"<br>]<br>/**********************************************************/<br><br></div><div>best regards<br></div><div>galimba<br></div><div><div><br clear="all"><div><div><div><div><div><br>-- <br><div dir="ltr"><img src="http://i.imgur.com/6FbpMB1.jpg"><br></div>
</div></div></div></div></div></div></div></div>