[one-users] Network problem with ONE4.6 and ESXi5.5
Tino Vazquez
cvazquez at c12g.com
Wed May 7 03:45:14 PDT 2014
Hi José Manuel,
It looks indeed like the driver is not capable of retieve the hostname of
the ESX correctly. This information is pulled from the VM template:
host = @vm['HISTORY_RECORDS/HISTORY/HOSTNAME']
Let's first check that this information is there. Could you send us the
output of:
$ onevm show -x 15 # I think 15 is the ID of the VM that is failing
to be launched, but I may be wrong
Regards,
-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
abuse at c12g.com and delete the e-mail and attachments and any copy from your
system. C12G thanks you for your cooperation.
On 7 May 2014 12:11, Jose Manuel Martínez <jose.martinez at fcsc.es> wrote:
> Hello everybody.
>
> I'm trying to setup a testing cluster with ONE4.6 and only one ESXi5.5
> compute host.
> The ESXi host has been added using dynamic "vmware" network mode (onehost
> create esxi1 -i vmware -v vmware -n vmware). This is my first time trying
> to use native vmware network mode. I'm been deploying VMs over this testbed
> without problems with dummy network mode. The only change now is network
> from "dummy" to "vmware" (from predefined to dynamic).
>
> When I try to deploy a VM with a VMWare tagged virtual network, I get the
> next error:
>
> */var/log/one/oned.log*
> *[...]*
> *Wed May 7 11:37:18 2014 [ReM][D]: Req:8800 UID:0 AclInfo result SUCCESS,
> "<ACL_POOL><ACL><ID>0..."*
> *Wed May 7 11:37:18 2014 [ReM][D]: Req:6576 UID:0 VirtualMachineDeploy
> invoked, 15, 2, false, 101*
> *Wed May 7 11:37:18 2014 [DiM][D]: Deploying VM 15*
> *Wed May 7 11:37:18 2014 [ReM][D]: Req:6576 UID:0 VirtualMachineDeploy
> result SUCCESS, 15*
> *Wed May 7 11:37:18 2014 [ReM][D]: Req:9584 UID:0 VirtualMachineInfo
> invoked, 15*
> *Wed May 7 11:37:18 2014 [ReM][D]: Req:9584 UID:0 VirtualMachineInfo
> result SUCCESS, "<VM><ID>15</ID><UID>..."*
> *Wed May 7 11:37:23 2014 [TM][D]: Message received: TRANSFER SUCCESS 15 -*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 Command
> execution fail: /var/lib/one/remotes/vnm/vmware/pre
> PFZNPjxJRD4xNTwvSUQ+PERFUExPWV9JRC8+PFRFTVBMQVRFPjxOSUM+PEJSSURHRT48IVtDREFUQVt2U3dpdGNoMF1dPjwvQlJJREdFPjxDTFVTVEVSX0lEPjwhW0NEQVRBWzEwMV1dPjwvQ0xVU1RFUl9JRD48SVA+PCFbQ0RBVEFbMi4zLjQuNl1dPjwvSVA+PElQNl9MSU5LPjwhW0NEQVRBW2ZlODA6OjQwMDoyZmY6ZmUwMzo0MDZdXT48L0lQNl9MSU5LPjxNQUM+PCFbQ0RBVEFbMDI6MDA6MDI6MDM6MDQ6MDZdXT48L01BQz48TkVUV09SSz48IVtDREFUQVtyZWRlY2lsbGExXV0+PC9ORVRXT1JLPjxORVRXT1JLX0lEPjwhW0NEQVRBWzVdXT48L05FVFdPUktfSUQ+PE5FVFdPUktfVU5BTUU+PCFbQ0RBVEFbb25lYWRtaW5dXT48L05FVFdPUktfVU5BTUU+PE5JQ19JRD48IVtDREFUQVswXV0+PC9OSUNfSUQ+PFZMQU4+PCFbQ0RBVEFbWUVTXV0+PC9WTEFOPjxWTEFOX0lEPjwhW0NEQVRBWzEyM11dPjwvVkxBTl9JRD48L05JQz48L1RFTVBMQVRFPjwvVk0+*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG E 15 pre: Error
> executing: ((esxcfg-vswitch vSwitch0 -l|grep one-pg-5) ||
> /sbin/esxcfg-vswitch vSwitch0 --add-pg one-pg-5); /sbin/esxcfg-vswitch
> vSwitch0 -p one-pg-5 --vlan=123 on host: err: Pseudo-terminal will not be
> allocated because stdin is not a terminal.*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 ssh: Could
> not resolve hostname ((esxcfg-vswitch vSwitch0 -l|grep one-pg-5) ||
> /sbin/esxcfg-vswitch vSwitch0 --add-pg one-pg-5); /sb: Name or service not
> known*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 ExitCode:
> 255*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 out:*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 ExitCode: 0*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: LOG I 15 Failed to
> execute network driver operation: pre.*
>
> *Wed May 7 11:37:23 2014 [VMM][D]: Message received: DEPLOY FAILURE 15 -*
>
> *Wed May 7 11:37:45 2014 [InM][D]: Monitoring host esxi1 (2)*
> *Wed May 7 11:37:46 2014 [ImM][D]: Datastore system (0) successfully
> monitored.*
> *Wed May 7 11:37:46 2014 [ImM][D]: Datastore VMS (101) successfully
> monitored.*
> *[...]*
>
> It looks like if the script "pre" is not getting the hostname of the esxi
> where it has to execute the command. The hostname should be "esxi1". Trying
> to debug the issue I have placed some "print host" lines over the ruby
> scripts (pre and VMWare.rb) and they always return "nil".
>
> The host, datastores and virtual network are merged into the same cluster,
> and this is the virtual network definition:
>
> *[oneadmin at one1 vmware]$ onevnet list*
> * ID USER GROUP NAME CLUSTER TYPE BRIDGE
> LEASES*
>
>
> * 5 oneadmin oneadmin redecilla1 clustercil F
> vSwitch0 2 **[oneadmin at one1 vmware]$ onevnet show 5*
> *VIRTUAL NETWORK 5
> INFORMATION *
> *ID : 5 *
> *NAME : red1 *
> *USER : oneadmin *
> *GROUP : oneadmin *
> *CLUSTER : cluster1 *
> *TYPE : FIXED *
> *BRIDGE : vSwitch0 *
> *VLAN : Yes *
> *VLAN ID : 123 *
> *USED LEASES : 2 *
>
> *PERMISSIONS
> *
> *OWNER : um- *
> *GROUP : --- *
> *OTHER : --- *
>
> *VIRTUAL NETWORK
> TEMPLATE *
> *BRIDGE="vSwitch0"*
> *DESCRIPTION=""*
> *PHYDEV=""*
> *VLAN="YES"*
> *VLAN_ID="123"*
>
> *USED
> LEASES *
> *LEASE=[ MAC="02:00:02:03:04:05", IP="2.3.4.5",
> IP6_LINK="fe80::400:2ff:fe03:405", USED="1", VID="14" ]*
> *LEASE=[ MAC="02:00:02:03:04:06", IP="2.3.4.6",
> IP6_LINK="fe80::400:2ff:fe03:406", USED="1", VID="15" ]*
>
> *FREE
> LEASES *
> *LEASE=[ MAC="02:00:02:03:04:07", IP="2.3.4.7",
> IP6_LINK="fe80::400:2ff:fe03:407", USED="0", VID="-1" ]*
>
> *VIRTUAL MACHINES*
>
> * ID USER GROUP NAME STAT UCPU UMEM
> HOST TIME*
> * 14 oneadmin oneadmin bghy fail 0 0K
> 0d 00h00*
> * 15 oneadmin oneadmin aragt3 gre fail 0 0K
> 0d 00h00*
>
> Can you help me?.
> Regards.
> --
>
>
>
>
> *--- Jose Manuel Martínez García*
>
> *Coordinador de Sistemas*
>
>
>
> T: +34-987-29 31 74 / e-mail: jose.martinez at fcsc.es
>
> www.fcsc.es
>
> Edificio CRAI-TIC. Campus de Vegazana, s/n. Universidad de León
>
> 24071 León
>
>
>
>
>
> [image: Identificador Junta color]
>
>
>
> [image: SUPERCOMPUTACION_new_logo]
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si Vd. no es el destinatario
> indicado, queda notificado de que la lectura, utilización, divulgación y/o
> copia sin autorización está prohibida en virtud de la legislación vigente.
> Si ha recibido este mensaje por error, le rogamos que nos lo comunique
> inmediatamente por esta misma vía y proceda a su destrucción. El correo
> electrónico vía Internet no permite asegurar la confidencialidad de los
> mensajes que se transmiten ni su integridad o correcta recepción. La
> Fundación Centro de Supercomputación de Castilla y León no asume ninguna
> responsabilidad por estas circunstancias.
>
>
>
> This message is intended exclusively for its addressee and may contain
> information that is CONFIDENTIAL and protected by a professional privilege
> or whose disclosure is prohibited by law. If you are not the intended
> recipient you are hereby notified that any read, dissemination, copy or
> disclosure of this communication is strictly prohibited by law.
>
> If this message has been received in error, please immediately notify us
> via e-mail and delete it. Internet e-mail neither guarantees the
> confidentiality nor the integrity or proper receipt of the messages sent. Fundación
> Centro de Supercomputación de Castilla y León does not assume any liability
> for those circumstances.
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140507/e73dd6ff/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 3612 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140507/e73dd6ff/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3038 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140507/e73dd6ff/attachment-0005.jpg>
More information about the Users
mailing list