Re: [one-users] MySQL deadlock when trying to register a new vm image
Hi, no workarounds so far. But my mysql db is using default options and also runs in a virtual machine – so I suspect it just needs some tweaking. I’m going to change few parameters during this week. I’ll post the results to mailing list if it works. Ondra From: Galimba [mailto:gali...@gmail.com] Sent: Wednesday, September 10, 2014 10:04 PM To: users@lists.opennebula.org; cmar...@opennebula.org; Hamada, Ondrej Subject: Re: MySQL deadlock when trying to register a new vm image I found this [1] mail and I believe the deadlock issue is the same I'm having. Any pointers on a workaround? Best regards galimba [1] http://lists.opennebula.org/pipermail/users-opennebula.org/2014-April/044546.html On Tue, Sep 9, 2014 at 5:53 PM, Galimba gali...@gmail.commailto:gali...@gmail.com wrote: Greetings! 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. 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. Interestingly, the log showed this error: 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','DATASTOREID0/IDUID0/UIDGID0/GIDUNAMEoneadmin/UNAMEGNAMEoneadmin/GNAMENAMEsystem/NAMEPERMISSIONSOWNER_U1/OWNER_UOWNER_M1/OWNER_MOWNER_A0/OWNER_AGROUP_U1/GROUP_UGROUP_M0/GROUP_MGROUP_A0/GROUP_AOTHER_U0/OTHER_UOTHER_M0/OTHER_MOTHER_A0/OTHER_A/PERMISSIONSDS_MAD![CDATA[-]]/DS_MADTM_MAD![CDATA[shared]]/TM_MADBASE_PATH![CDATA[/var/lib/one//datastores/0]]/BASE_PATHTYPE1/TYPEDISK_TYPE0/DISK_TYPECLUSTER_ID-1/CLUSTER_IDCLUSTER/CLUSTERTOTAL_MB9461612/TOTAL_MBFREE_MB8956832/FREE_MBUSED_MB1/USED_MBIMAGES/IMAGESTEMPLATEBASE_PATH![CDATA[/var/lib/one//datastores/]]/BASE_PATHSHARED![CDATA[YES]]/SHAREDTM_MAD![CDATA[shared]]/TM_MADTYPE![CDATA[SYSTEM_DS]]/TYPE/TEMPLATE/DATASTORE',0,0,1,1,0,-1), error 1213 : Deadlock found when trying to get lock; try restarting transaction /***/ I leave down here a copy of my oned.conf /***/ LOG = [ system = file, debug_level = 3 ] MONITORING_INTERVAL = 60 MONITORING_THREADS = 50 SCRIPTS_REMOTE_DIR=/var/tmp/one PORT = 2633 DB = [ backend = mysql, server = localhost, port= 0, user= oneadmin, passwd = __, db_name = opennebula ] VNC_BASE_PORT = 5900 FEDERATION = [ MODE = STANDALONE, ZONE_ID = 0, MASTER_ONED = ] NETWORK_SIZE = 254 MAC_PREFIX = 02:00 DATASTORE_CAPACITY_CHECK = yes DEFAULT_IMAGE_TYPE= OS DEFAULT_DEVICE_PREFIX = hd DEFAULT_CDROM_DEVICE_PREFIX = vd IM_MAD = [ name = collectd, executable = collectd, arguments = -p 4124 -f 5 -t 50 -i 20 ] IM_MAD = [ name = kvm, executable = one_im_ssh, arguments = -r 3 -t 15 kvm ] VM_MAD = [ name = kvm, executable = one_vmm_exec, arguments = -t 15 -r 0 kvm, default= vmm_exec/vmm_exec_kvm.conf, type = kvm ] TM_MAD = [ executable = one_tm, arguments = -t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph ] DATASTORE_MAD = [ executable = one_datastore, arguments = -t 15 -d dummy,fs,vmfs,lvm,ceph ] HM_MAD = [ executable = one_hm ] AUTH_MAD = [ executable = one_auth_mad, authn = ssh,x509,ldap,server_cipher,server_x509 ] SESSION_EXPIRATION_TIME = 900 DEFAULT_UMASK = 177 VM_RESTRICTED_ATTR = CONTEXT/FILES VM_RESTRICTED_ATTR = NIC/MAC VM_RESTRICTED_ATTR = NIC/VLAN_ID VM_RESTRICTED_ATTR = NIC/BRIDGE IMAGE_RESTRICTED_ATTR = SOURCE INHERIT_DATASTORE_ATTR = CEPH_HOST INHERIT_DATASTORE_ATTR = CEPH_SECRET INHERIT_DATASTORE_ATTR = CEPH_USER INHERIT_DATASTORE_ATTR = RBD_FORMAT INHERIT_DATASTORE_ATTR = GLUSTER_HOST INHERIT_DATASTORE_ATTR = GLUSTER_VOLUME INHERIT_VNET_ATTR = VLAN_TAGGED_ID TM_MAD_CONF = [ name = dummy, ln_target = NONE, clone_target = SYSTEM, shared = yes ] TM_MAD_CONF = [ name = lvm, ln_target = NONE, clone_target = SELF, shared = yes ] TM_MAD_CONF = [ name = shared, ln_target = NONE, clone_target = SYSTEM, shared = yes ] TM_MAD_CONF = [ name = fs_lvm, ln_target = SYSTEM, clone_target =
Re: [one-users] Problems to delete image completely
Hello, I want to setup a Windows VM. I found a description about how to contextualize a Windows VM under http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html, but is there anywhere a complete example of a template with context for Windows VMs? I neither know how network interfaces in Windows are named (so do not know how DEV_IP ist to be expanded), nor do I know the correct format for the values of DEV_DNS and DEV_SEARCH_DOMAIN. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Sunstone Cloud View seems broken (Users Digest, Vol 79, Issue 36)
Hi, That's a known issue and has been already fixed and will be included in the next maintenance release. You can see the fix in the following patch: http://dev.opennebula.org/issues/3154 Regarding the create button, I agree with you Rolandas it should be disabled if no template is selected. http://dev.opennebula.org/issues/3182 Cheers On 11 September 2014 07:38, Shankhadeep Shome shank15...@gmail.com wrote: Well, I cant even select a template, it highlights it when i hover the mouse over it but i cannot actually select anything. I get a... SyntaxError: JSON.parse: unterminated string at line 1 column 824 of the JSON data Using mozilla's built in browser console, definitely feels like a ui bug that popped up due to a new version. Shank On Thu, Sep 11, 2014 at 1:34 AM, Rolandas Naujikas rolandas.nauji...@mif.vu.lt wrote: Our users also confused about Create button. It should be invisible, when no template is selected. Also there is impossible to select a template, that have RAW attribute in it. Regards, Rolandas Naujikas On 2014.09.11 08:18, Shankhadeep Shome wrote: I can't create a VM from within cloud view. Every time i press the create button it says You must select at least a template configuration Firefox Version 32 Chrome Version 37.0.2062.120m This template works perfectly with any other view, seems like there is some gui issues with these browsers. Anybody else having this issue? [image: Inline image 1] -- next part -- An HTML attachment was scrubbed... URL: http://lists.opennebula.org/pipermail/users-opennebula. org/attachments/20140911/fa7aea3e/attachment.htm -- next part -- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 138982 bytes Desc: not available URL: http://lists.opennebula.org/pipermail/users-opennebula. org/attachments/20140911/fa7aea3e/attachment.png ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] unknown ethernet controller on windows imported image
Hi Luca, Let's see if the vmware log gives us more information. After a unsuccessful deploy with the model E1000, please send us over the contents of the following file in the ESX host: /vmfs/volumes/ds_id/vm_id/disk.0/vmware.log Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 10 September 2014 12:54, Luca Uburti lubu...@ricca-it.com wrote: Hello I tried adding the model E1000 as you suggested, but now the Vm fails to instantiate. I tried specifying E1000, vmxnet3 and even Flexible as Model, but they all give these errors, The VM only deploys if I leave the Model field empty (but then I have no connectivity) I get these errors in the log: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Command execution fail: /var/lib/one/remotes/vmm/vmware/deploy '/var/lib/one/vms/38/deployment.0' '10.10.10.235' 38 10.10.10.235 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG D 38 deploy: Successfully defined domain one-38. Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1' start one-38 err: ExitCode: 1 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 out: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: failed to get domain 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: Domain not found: No domain with name 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1' undefine one-38 err: ExitCode: 1 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 out: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: failed to get domain 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: Domain not found: No domain with name 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1' undefine one-38 err: ExitCode: 1 Il 09/09/2014 15:06, Valentin Bud ha scritto: Hello Luca, I think you must add MODEL=E1000 to the NIC section of the template. You can read about it in the documentation [1]. [1]: http://docs.opennebula.org/4.8/user/references/template.html#network-section Best, Valentin On Tue, Sep 9, 2014 at 3:46 PM, Luca Uburti lubu...@ricca-it.com wrote: of course, here it is VM ID32/ID UID0/UID GID0/GID UNAMEoneadmin/UNAME GNAMEoneadmin/GNAME NAME123/NAME PERMISSIONS OWNER_U1/OWNER_U OWNER_M1/OWNER_M OWNER_A0/OWNER_A GROUP_U0/GROUP_U GROUP_M0/GROUP_M GROUP_A0/GROUP_A OTHER_U0/OTHER_U OTHER_M0/OTHER_M OTHER_A0/OTHER_A /PERMISSIONS LAST_POLL1410266708/LAST_POLL STATE3/STATE LCM_STATE3/LCM_STATE RESCHED0/RESCHED STIME1410189882/STIME ETIME0/ETIME DEPLOY_IDone-32/DEPLOY_ID MEMORY742400/MEMORY CPU3/CPU NET_TX0/NET_TX NET_RX0/NET_RX TEMPLATE AUTOMATIC_REQUIREMENTS![CDATA[!(PUBLIC_CLOUD = YES)]]/AUTOMATIC_REQUIREMENTS CONTEXT DISK_ID![CDATA[1]]/DISK_ID ETH0_DNS![CDATA[8.8.8.8]]/ETH0_DNS ETH0_GATEWAY![CDATA[10.222.1.254]]/ETH0_GATEWAY ETH0_IP![CDATA[10.222.1.1]]/ETH0_IP ETH0_MAC![CDATA[02:00:0a:de:01:01]]/ETH0_MAC ETH0_MASK![CDATA[255.255.255.0]]/ETH0_MASK ETH0_NETWORK![CDATA[10.222.1.0]]/ETH0_NETWORK NETWORK![CDATA[YES]]/NETWORK TARGET![CDATA[hdb]]/TARGET /CONTEXT CPU![CDATA[0.5]]/CPU DISK CLONE![CDATA[YES]]/CLONE CLONE_TARGET![CDATA[SYSTEM]]/CLONE_TARGET DATASTORE![CDATA[default]]/DATASTORE DATASTORE_ID![CDATA[1]]/DATASTORE_ID DEV_PREFIX![CDATA[hd]]/DEV_PREFIX DISK_ID![CDATA[0]]/DISK_ID IMAGE![CDATA[w2k8r2]]/IMAGE IMAGE_ID![CDATA[13]]/IMAGE_ID IMAGE_UNAME![CDATA[oneadmin]]/IMAGE_UNAME
[one-users] Windows contextualization
Hello, (sorry, forgot to change the subject in my last message) I want to setup a Windows VM. I found a description about how to contextualize a Windows VM under http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html, but is there anywhere a complete example of a template with context for Windows VMs? I neither know how network interfaces in Windows are named (so do not know how DEV_IP ist to be expanded), nor do I know the correct format for the values of DEV_DNS and DEV_SEARCH_DOMAIN. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Sunstone Cloud View seems broken (Users Digest, Vol 79, Issue 36)
Rolandas Naujikas rolandas.nauji...@mif.vu.lt writes: Our users also confused about Create button. It should be invisible, when no template is selected. Also there is impossible to select a template, that have RAW attribute in it. I just create an issue[1] for this one. I was wondering since days why some template are working in cloud view and why other don't. Regards. Footnotes: [1] http://dev.opennebula.org/issues/3184 -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Sunstone Cloud View seems broken (Users Digest, Vol 79, Issue 36)
Daniel Dehennin daniel.dehen...@baby-gnu.org writes: Rolandas Naujikas rolandas.nauji...@mif.vu.lt writes: Our users also confused about Create button. It should be invisible, when no template is selected. Also there is impossible to select a template, that have RAW attribute in it. I just create an issue[1] for this one. I was wondering since days why some template are working in cloud view and why other don't. Should have checked the issue list[1], sorry for the noise. Footnotes: [1] http://dev.opennebula.org/issues/3154 -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] unknown ethernet controller on windows imported image
Hi Tino unfortunately I can't find vmware.log, I have only these files left over after the deployment fails: [root@one-sandbox disk.0]# pwd /var/lib/one/datastores/0/39/disk.0 [root@one-sandbox disk.0]# ll -h total 12G -rw--- 1 oneadmin oneadmin 21G Sep 11 16:13 disk-flat.vmdk -rw--- 1 oneadmin oneadmin 639 Sep 11 16:13 disk.vmdk -rw-r--r-- 1 oneadmin oneadmin 0 Sep 11 16:14 one-39.vmsd -rw-r--r-- 1 oneadmin oneadmin 872 Sep 11 16:14 one-39.vmx -rw-r--r-- 1 oneadmin oneadmin 261 Sep 11 16:14 one-39.vmxf Il 11/09/2014 10:52, Tino Vazquez ha scritto: Hi Luca, Let's see if the vmware log gives us more information. After a unsuccessful deploy with the model E1000, please send us over the contents of the following file in the ESX host: /vmfs/volumes/ds_id/vm_id/disk.0/vmware.log Best, -Tino -- OpenNebula - Flexible Enterprise Cloud Made Simple -- Constantino Vázquez Blanco, PhD, MSc Senior Infrastructure Architect at C12G Labs www.c12g.com http://www.c12g.com | @C12G | es.linkedin.com/in/tinova http://es.linkedin.com/in/tinova -- Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the To and cc box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at ab...@c12g.com mailto:ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. On 10 September 2014 12:54, Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com wrote: Hello I tried adding the model E1000 as you suggested, but now the Vm fails to instantiate. I tried specifying E1000, vmxnet3 and even Flexible as Model, but they all give these errors, The VM only deploys if I leave the Model field empty (but then I have no connectivity) I get these errors in the log: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Command execution fail: /var/lib/one/remotes/vmm/vmware/deploy '/var/lib/one/vms/38/deployment.0' '10.10.10.235' 38 10.10.10.235 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG D 38 deploy: Successfully defined domain one-38. Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1 http://10.10.10.235/?no_verify=1auto_answer=1' start one-38 err: ExitCode: 1 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 out: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: failed to get domain 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: Domain not found: No domain with name 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1 http://10.10.10.235/?no_verify=1auto_answer=1' undefine one-38 err: ExitCode: 1 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 out: Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: failed to get domain 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 error: Domain not found: No domain with name 'one-38' Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG I 38 Wed Sep 10 12:20:57 2014 [Z0][VMM][D]: Message received: LOG E 38 deploy: Error executing: virsh -c 'esx://10.10.10.235/?no_verify=1auto_answer=1 http://10.10.10.235/?no_verify=1auto_answer=1' undefine one-38 err: ExitCode: 1 Il 09/09/2014 15:06, Valentin Bud ha scritto: Hello Luca, I think you must add MODEL=E1000 to the NIC section of the template. You can read about it in the documentation [1]. [1]: http://docs.opennebula.org/4.8/user/references/template.html#network-section Best, Valentin On Tue, Sep 9, 2014 at 3:46 PM, Luca Uburti lubu...@ricca-it.com mailto:lubu...@ricca-it.com wrote: of course, here it is VM ID32/ID UID0/UID GID0/GID UNAMEoneadmin/UNAME GNAMEoneadmin/GNAME NAME123/NAME PERMISSIONS OWNER_U1/OWNER_U OWNER_M1/OWNER_M OWNER_A0/OWNER_A GROUP_U0/GROUP_U GROUP_M0/GROUP_M GROUP_A0/GROUP_A OTHER_U0/OTHER_U OTHER_M0/OTHER_M OTHER_A0/OTHER_A /PERMISSIONS
Re: [one-users] MySQL deadlock when trying to register a new vm image
uppon closer examination, we figured out that the deadlocks were not related to the image problem. I was able to fix the uploading problem using this [1], but the random deadlock issue persists. I tried to onedb fsck, backup it and restore it... but it's all the same. [1] - http://docs.opennebula.org/4.6/release_notes/release_notes/known_issues.html On Thu, Sep 11, 2014 at 4:23 AM, Hamada, Ondrej ondrej.ham...@acision.com wrote: Hi, no workarounds so far. But my mysql db is using default options and also runs in a virtual machine – so I suspect it just needs some tweaking. I’m going to change few parameters during this week. I’ll post the results to mailing list if it works. Ondra *From:* Galimba [mailto:gali...@gmail.com] *Sent:* Wednesday, September 10, 2014 10:04 PM *To:* users@lists.opennebula.org; cmar...@opennebula.org; Hamada, Ondrej *Subject:* Re: MySQL deadlock when trying to register a new vm image I found this [1] mail and I believe the deadlock issue is the same I'm having. Any pointers on a workaround? Best regards galimba [1] http://lists.opennebula.org/pipermail/users-opennebula.org/2014-April/044546.html On Tue, Sep 9, 2014 at 5:53 PM, Galimba gali...@gmail.com wrote: Greetings! 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. 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. Interestingly, the log showed this error: 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','DATASTOREID0/IDUID0/UIDGID0/GIDUNAMEoneadmin/UNAMEGNAMEoneadmin/GNAMENAMEsystem/NAMEPERMISSIONSOWNER_U1/OWNER_UOWNER_M1/OWNER_MOWNER_A0/OWNER_AGROUP_U1/GROUP_UGROUP_M0/GROUP_MGROUP_A0/GROUP_AOTHER_U0/OTHER_UOTHER_M0/OTHER_MOTHER_A0/OTHER_A/PERMISSIONSDS_MAD![CDATA[-]]/DS_MADTM_MAD![CDATA[shared]]/TM_MADBASE_PATH![CDATA[/var/lib/one//datastores/0]]/BASE_PATHTYPE1/TYPEDISK_TYPE0/DISK_TYPECLUSTER_ID-1/CLUSTER_IDCLUSTER/CLUSTERTOTAL_MB9461612/TOTAL_MBFREE_MB8956832/FREE_MBUSED_MB1/USED_MBIMAGES/IMAGESTEMPLATEBASE_PATH![CDATA[/var/lib/one//datastores/]]/BASE_PATHSHARED![CDATA[YES]]/SHAREDTM_MAD![CDATA[shared]]/TM_MADTYPE![CDATA[SYSTEM_DS]]/TYPE/TEMPLATE/DATASTORE',0,0,1,1,0,-1), error 1213 : Deadlock found when trying to get lock; try restarting transaction /***/ I leave down here a copy of my oned.conf /***/ LOG = [ system = file, debug_level = 3 ] MONITORING_INTERVAL = 60 MONITORING_THREADS = 50 SCRIPTS_REMOTE_DIR=/var/tmp/one PORT = 2633 DB = [ backend = mysql, server = localhost, port= 0, user= oneadmin, passwd = __, db_name = opennebula ] VNC_BASE_PORT = 5900 FEDERATION = [ MODE = STANDALONE, ZONE_ID = 0, MASTER_ONED = ] NETWORK_SIZE = 254 MAC_PREFIX = 02:00 DATASTORE_CAPACITY_CHECK = yes DEFAULT_IMAGE_TYPE= OS DEFAULT_DEVICE_PREFIX = hd DEFAULT_CDROM_DEVICE_PREFIX = vd IM_MAD = [ name = collectd, executable = collectd, arguments = -p 4124 -f 5 -t 50 -i 20 ] IM_MAD = [ name = kvm, executable = one_im_ssh, arguments = -r 3 -t 15 kvm ] VM_MAD = [ name = kvm, executable = one_vmm_exec, arguments = -t 15 -r 0 kvm, default= vmm_exec/vmm_exec_kvm.conf, type = kvm ] TM_MAD = [ executable = one_tm, arguments = -t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph ] DATASTORE_MAD = [ executable = one_datastore, arguments = -t 15 -d dummy,fs,vmfs,lvm,ceph ] HM_MAD = [ executable = one_hm ] AUTH_MAD = [ executable = one_auth_mad, authn = ssh,x509,ldap,server_cipher,server_x509 ] SESSION_EXPIRATION_TIME = 900 DEFAULT_UMASK = 177 VM_RESTRICTED_ATTR = CONTEXT/FILES VM_RESTRICTED_ATTR = NIC/MAC VM_RESTRICTED_ATTR = NIC/VLAN_ID VM_RESTRICTED_ATTR = NIC/BRIDGE IMAGE_RESTRICTED_ATTR = SOURCE INHERIT_DATASTORE_ATTR = CEPH_HOST INHERIT_DATASTORE_ATTR = CEPH_SECRET
Re: [one-users] How to use onevnet addleases after upgraded to 4.8?
forget about my question, the help message and online man page explain everything. :) From: Liu, Guang Jun (Gene) Sent: Wednesday, September 10, 2014 8:38 PM To: users@lists.opennebula.org Subject: How to use onevnet addleases after upgraded to 4.8? Hi there, Anyone can share how to use onevnet in 4.8? We were on 4.4.1 and used cli as below to add leases: onevnet addleases vnetid ip mac After upgraded to the latest version (4.8). It's broken. Per the help message and tried following 2 commands without success -- onevnet addar vnetid --mac de:ad:0d:3c:1b:4c --ip 135.121.90.66 --size 1 onevnet addar vnetname --mac de:ad:0d:3c:1b:4c --ip 135.121.90.66 --size 1 Thanks, Gene ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Run bash script in vm on spin-up
Hi Valentin, I appreciate the help! I managed to create a new CONTEXT image, which copied my test.sh to the datastore successfully, and I updated my template to include those two lines you specified. However, it looks like test.sh is not executing on vm spin up. Currently all it does is touch /root/test.tmp to confirm execution. However when I booted my vm, this file was not created. Also tried doing useradd tmp as well, with no luck. test.sh has executable flag set for user, group, and other. I also tried setting permissions of test.sh to 777, still no luck. Thanks!! Kerry On Mon, Sep 8, 2014 at 11:27 PM, Valentin Bud valentin@gmail.com wrote: Hello Kerry, Do you have a registered image of type CONTEXT with the name of `test.sh` in the files datastore? The file you specify in FILES_DS can be found in the contextualization CDROM on the VM (/dev/disk/by-label/CONTEXT). The following would run a `test.sh` script when the VM is spun up at the end of the contextualization routine [1]. CONTEXT = [ FILES_DS=$FILE[IMAGE=\test.sh\], INIT_SCRIPTS=test.sh, ... ] [1]: https://github.com/OpenNebula/addon-context-linux/blob/master/base/etc/one-context.d/99-execute-scripts Best, Valentin On Mon, Sep 8, 2014 at 11:09 PM, kerryhall . kerryh...@gmail.com wrote: Thanks! I'm still having issues here unfortunately. I tried putting: FILES_DS=$FILE[IMAGE=\test.sh\] into my template context section, but I get: User 0 does not own an image with name: test.sh I'm not trying to include an image, I just want test.sh (a file in my file datastore) to get copied to anywhere on my vm's filesystem. (And eventually, I want test.sh to get run on vm creation, or failing that, every time the vm starts) Thanks!! On Fri, Jul 25, 2014 at 11:18 PM, Valentin Bud valentin@gmail.com wrote: Hello Kerry, Under Defining Context [1] there is an example how to use FILES_DS. FILES_DS=$FILE[IMAGE=\test.sh\] [1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html Best, Valentin On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . kerryh...@gmail.com wrote: Hi folks, I am trying to run a bash script on a vm as it gets spun up. I've read: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html but there isn't too much to go on there. I have created test.sh and put it into the files datastore on the head node. The issue I am having is that the syntax in the Defining Context section of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is ambiguous, specifically the files_ds section. I have tried: FILES_DS=$FILE[\test.sh\] and FILES_DS=/var/lib/one/datastores/2/test.sh As a first step, I'm just trying to get this file included in my vm at all. Thanks! Kerry ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org