[one-users] Issues when i integrate opennebula with vmware server
Tino Vazquez
tinova at fdi.ucm.es
Thu Sep 3 05:52:48 PDT 2009
Hi there,
I think the problem is here:
---8<---
OneVmmVmware >>>>> str ....INIT
OneVmmVmware >>>>>>>> str_split 1
-->8----
If you eliminate that debug info, it will come back to life ;). The
way it is meant to go is:
-----8<---
INIT
INIT SUCCESS
--->8-----
Regards,
-Tino
--
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
On Thu, Sep 3, 2009 at 1:39 PM, <marimuthu.balasubramanian at wipro.com> wrote:
>
> Hi Tino,
> Thanks for timely help. Sorry I didn't notice the following error message "Wrong action in MAD response"
>
> Find the one_vmm_vmware execution details below
>
> root at wipro-frontend:/opt/nebula1.4# ./lib/mads/one_vmm_vmware --username root --password wipro123
> java -cp /opt/nebula1.4/lib/mads:.:/usr/local/apache-axis/axis-1_4/lib/axis.jar:/usr/local/apache-axis/axis-1_4/lib/axis-ant.jar:/usr/local/apache-axis/axis-1_4/lib/commons-discovery-0.2.jar:/usr/local/apache-axis/axis-1_4/lib/commons-logging-1.0.4.jar:/usr/local/apache-axis/axis-1_4/lib/jaxrpc.jar:/usr/local/apache-axis/axis-1_4/lib/log4j-1.2.8.jar:/usr/local/apache-axis/axis-1_4/lib/saaj.jar:/usr/local/apache-axis/axis-1_4/lib/wsdl4j-1.5.1.jar:/usr/local/jdk1.5.0_17/lib/tools.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/vim.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/vim25.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/apputils.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/samples.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/lib/activation.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/lib/mailapi.jar:/usr/local/vi-sdk-2.5.0/SDK/samples/Axis/java/lib/wbem.jar: -Ddatastore=datastore1 -Ddatacenter=ha-datacenter -Djavax.net.ssl.trustStore=/opt/vmware-node-certs/vmware-node.keystore -Donelocation=/opt/nebula1.4 -Ddebug=1 -Xmx1024M OneVmmVmware --username root --password wipro123 2>> /opt/nebula1.4/var/vmm_vmware.log
> INIT
> OneVmmVmware >>>>> str ....INIT
> OneVmmVmware >>>>>>>> str_split 1
> INIT SUCCESS
>
> The init success then why still it gives "Wrong action in MAD response"
>
> Regards
> Marimuthu
>
> -----Original Message-----
> From: tinova79 at gmail.com [mailto:tinova79 at gmail.com] On Behalf Of Tino Vazquez
> Sent: Thursday, September 03, 2009 3:46 PM
> To: Marimuthu Balasubramanian (WT01 - Innovation Group)
> Cc: rubensm at dacya.ucm.es; users at lists.opennebula.org
> Subject: Re: [one-users] Issues when i integrate opennebula with vmware server
>
> Dear marimuthu,
>
> Can you execute the vmm driver by hand? It seems not to be loading properly
>
> -------8<---
> Thu Sep 3 11:50:50 2009 [VMM][I]: Loading driver: vmm_vmware (XML)
> Thu Sep 3 11:50:50 2009 [MAD][E]: Wrong action in MAD response
> --->8-------
>
> you can do that by executing
>
> $ONE_LOCATION/bin/one_vmm_vmware
>
> and see if there are any errors.
>
> About the scheduler not placing the VM, make sure that the host is correctly monitored (please send through the output of "onehost list") and that the VM requirements can be satisfy with the host capacity (send us the template and we can look that out for you).
>
> Best regards,
>
> -Tino
>
>
> --
> Constantino Vázquez, Grid Technology Engineer/Researcher:
> http://www.dsa-research.org/tinova
> DSA Research Group: http://dsa-research.org Globus GridWay Metascheduler: http://www.GridWay.org OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
>
>
> On Thu, Sep 3, 2009 at 10:45 AM, <marimuthu.balasubramanian at wipro.com> wrote:
>>
>> Hi Tino,
>> I have checked oned.log there is no much information. Find the attachment for oned.log I have copied some specific content alone. I am not getting any error. Find the oned.conf.
>>
>> I started debuging onevm submit and onevm deploy commands for vmware esxi server.
>> I am looking at the following files
>> VirtualMachineManager.cc, MadManager.cc files
>>
>>
>> I have following two issues.
>> Issue1: When I fire onevm submit the vm status always in pending state. Actualy OpenNebula core should deploy and start a VM automatically. Give me tips to debug c++ code.
>>
>> Issue2:I have waited more then 5 minutes once I fired onevm submit. The vm state is pending. So I fired onevm deploy for the same VM then opennebula invokes tm_clone.sh but it does not invoke respective driver files.
>>
>> The error mentioned oned.log.
>> Please give your inputs to debug.
>>
>> Regards
>> Marimuthu
>>
>>
>> -----Original Message-----
>> From: tinova79 at gmail.com [mailto:tinova79 at gmail.com] On Behalf Of Tino
>> Vazquez
>> Sent: Wednesday, September 02, 2009 9:24 PM
>> To: Marimuthu Balasubramanian (WT01 - Innovation Group)
>> Cc: users at lists.opennebula.org
>> Subject: Re: [one-users] Issues when i integrate opennebula with
>> vmware server
>>
>> Dear marimuthu,
>>
>> From the following line
>>
>> ----8<---
>> 2 17:54:10 2009 [VMM][E]: deploy_action, error getting driver
>> vmm_vmware
>> --->8---
>>
>> I think that the vmm_vmware driver is failing or not defined. Could you send your oned.log (or it's first 200 lines) to determine the cause of it not being loaded?
>>
>> About your second question, the "onevm deploy" action is meant to be used by the scheduler. With "onevm submit" you introduce the request in the OpenNebula core to start a VM, but you don't have to tell it where. Instead, the scheduler will evaluate its policies and place the VM in one specific host using the "onevm deploy" action.
>>
>> Hope it helps,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>> http://www.dsa-research.org/tinova
>> DSA Research Group: http://dsa-research.org Globus GridWay
>> Metascheduler: http://www.GridWay.org OpenNebula Virtual
>> Infrastructure Engine: http://www.OpenNebula.org
>>
>>
>>
>> On Wed, Sep 2, 2009 at 4:56 PM, <marimuthu.balasubramanian at wipro.com> wrote:
>>>
>>> hi tino
>>> In vm.log very beging I am getting following message Wed Sep 2
>>> 17:53:09 2009 [DiM][I]: New VM state is ACTIVE.
>>> Wed Sep 2 17:53:09 2009 [LCM][I]: New VM state is PROLOG.
>>> Wed Sep 2 17:53:09 2009 [VM][I]: Virtual Machine has no context
>>>
>>> Will it cause any issue.
>>>
>>> Regards
>>> marimuthu
>>>
>>> -----Original Message-----
>>> From: Marimuthu Balasubramanian (WT01 - Innovation Group)
>>> Sent: Wednesday, September 02, 2009 6:55 PM
>>> To: 'Tino Vazquez'; 'users at lists.opennebula.org'
>>> Subject: RE: [one-users] Issues when i integrate opennebula with
>>> vmware server
>>>
>>> Hi Tino,
>>>
>>> Now I am trying with ESXI3.5. I don't have problem with onehost. Always it shows the informations.
>>> But "onevm create" is not working. The vm state always in pending stage. If I fire "onevm deploy" command then tm_clone.sh script getting executed. But "onevm deloy" also gives error.
>>>
>>> Find error details(vm.log) below
>>> 2 17:54:10 2009 [TM][I]: tm_clone.sh: Cloning successfully completed
>>> 2 17:54:10 2009 [LCM][I]: New VM state is BOOT
>>> 2 17:54:10 2009 [VMM][E]: deploy_action, error getting driver
>>> vmm_vmware
>>> 2 17:54:10 2009 [DiM][I]: New VM state is FAILED
>>>
>>> Please help us resolve the issue
>>>
>>> My doubt is
>>> Even though "onevm create" includes deploy operation , why there is need for "onevm deploy"
>>>
>>> Regards
>>> marimuthu
>>>
>>>
>>> -----Original Message-----
>>> From: tinova79 at gmail.com [mailto:tinova79 at gmail.com] On Behalf Of
>>> Tino Vazquez
>>> Sent: Tuesday, September 01, 2009 3:06 PM
>>> To: Marimuthu Balasubramanian (WT01 - Innovation Group)
>>> Cc: users at lists.opennebula.org
>>> Subject: Re: [one-users] Issues when i integrate opennebula with
>>> vmware server
>>>
>>> Hi marimuthu,
>>>
>>> comments inline,
>>>
>>> On Fri, Aug 28, 2009 at 1:44 PM, <marimuthu.balasubramanian at wipro.com> wrote:
>>>> Hi Tino,
>>>>
>>>> I have set the VM_DIR in oned.conf file . Seems to be the
>>>> "fileName" varilable in OneVmmVmware.java refered to
>>>> $ONE_LOCATION/var/eployment.0. Might be vmid is missing between "var"
>>>> and "deployment.0". I am making the required changes in
>>>> OneVmmVmware.java to refer the right path
>>>> $ONE_LOCATION/var/<vmid>/deployment.0
>>>
>>> That is strange, since OpenNebula will pass to the driver something
>>> like
>>>
>>> $ONE_LOCATION/var/<vmid>/images/deployment.0
>>>
>>> and then the driver will remove the "/images". Could you tell us what do you have in the "str" variable after line 87 ("str=in.readLine()").
>>>
>>>>
>>>>
>>>> I am trying write code to generate vmx file. My question is Is their
>>>> any way to identify the path equivalnt to datastore?
>>>
>>> In ESX hypervisors the datastore is located in /vmfs/volumes/<datastore_name>. In VMware server the prefix may vary, look in your filesystem for the <datastore_name>.
>>>
>>>>
>>>>
>>>> Some time onehost is not showing the informations. but When I
>>>> test with one_im_ware shell script it is wokring fine
>>>>
>>>> ./lib/mads/one_im_vmware --username <username> --password <password>
>>>> INIT INIT SUCCESS MONITOR 0 vmware-server.wipro.com MONITOR SUCCESS
>>>> 0
>>>> HYPERVISOR=vmware,TOTALMEMORY=1048576,TOTALCPU=100,MODELNAME="System
>>>> Product
>>>> Name",CPUSPEED=2660,USEDCPU=0,FREECPU=100,USEDMEMORY=448790,FREEMEMO
>>>> R
>>>> Y
>>>> =599786,NETTX=0,NETRX=0
>>>>
>>>> What coul~ be reason?
>>>
>>> Couyld you send over the $ONE_LOCATION/var/oned.log? That may be a connection problem.
>>>
>>> Best regards,
>>>
>>> -Tino
>>>
>>>>
>>>> -----Original Message-----
>>>> From: tinova79 at gmail.com [mailto:tinova79 at gmail.com] On Behalf Of
>>>> Tino Vazquez
>>>> Sent: Friday, August 28, 2009 3:34 PM
>>>> To: Marimuthu Balasubramanian (WT01 - Innovation Group)
>>>> Cc: users at lists.opennebula.org
>>>> Subject: Re: [one-users] Issues when i integrate opennebula with
>>>> vmware server
>>>>
>>>> Dear marimuthu,
>>>>
>>>> comments inline,
>>>>
>>>> On Fri, Aug 28, 2009 at 8:41 AM, <marimuthu.balasubramanian at wipro.com> wrote:
>>>>> Hi,
>>>>>
>>>>> I am trying to integrate opennebula with vmware server. i have
>>>>> installed opennebula 1.3.80 in front end m/c. In one node machine
>>>>> i have installed vmware server.
>>>>
>>>> Many thanks for trying it out.
>>>>
>>>>>
>>>>> Onehost creation is working fine.
>>>>
>>>> Good news!
>>>>
>>>>>
>>>>> i have installed vmware ssh transfer manager scripts and I am using
>>>>> ssh transfer manager for vm creation. when I fire onevm command.
>>>>> the opennebula depends on following things.
>>>>>
>>>>> -> it is expecting deployment.0 file should be available in front
>>>>> -> end
>>>>> machine under /opt/VM_DIR/1. (here /opt/VM_DIR is VM_DIR and 1 is
>>>>> vm
>>>>> id) OneVmmVmware program is reading and parsing that file.
>>>>> my question is
>>>>> the same file is available under $ONE_LOCATION/var/1 but why it is
>>>>> reading from /opt/VM_DIR/1?
>>>>
>>>> Have you set VM_DIR in $ONE_LOCATION/etc/oned.conf?
>>>>
>>>>>
>>>>> -> DeployVM program is refering the following vmxpath
>>>>> [datastore] one-1/one-1.vmx. but the dir and file is not available
>>>>> on the node machine. the vmware server is expecting the same should be available.
>>>>> so the vm creation is failing.
>>>>
>>>> I haven't test the ssh scripts with the vmware server, and I'm afraid that the DATASTORE path will be different (in ESX and ESXi they are stored under /vmfs/volumes, and that's harcoded). I need to test it under vmware server and probably make some changes. Meanwhile, if you point me what is the path to the DATASTORE in your vmware server I may be able to provide a quick patch.
>>>>
>>>
>>>
>>>
>>> --
>>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>>> http://www.dsa-research.org/tinova
>>> DSA Research Group: http://dsa-research.org Globus GridWay
>>> Metascheduler: http://www.GridWay.org OpenNebula Virtual
>>> Infrastructure Engine: http://www.OpenNebula.org
>>>
>>>
>>>
>>>>>
>>>>> My question is
>>>>> how vmx file will get created?
>>>>>
>>>>
>>>> OpenNebula doesn't offer VMware VM creation, you have to create it manually using the VMware Infrastructure Client (VIC).
>>>>
>>>>> NOte: I have manually created the vmx file and directory. After
>>>>> that vm creation is working fine using onevm command But only the
>>>>> local ip address is configured properly. but unable configure ip
>>>>> address using eth0 bridge.
>>>>> My vm is running with ubuntu operating system. so i was trying to
>>>>> configure network using /etc/network/interfaces but when i run
>>>>> "/etc/init.d/networking restart" manually on the vm. I am getting
>>>>> following error.
>>>>> unable to detect eth0 device.
>>>>
>>>> Assuming you have defined a network interface in your VM template (otherwise OpenNebula will leave the NICs defined upon VM creation).
>>>> If so, take a look to the running VM with the VIC to see if any network interface is defined.
>>>>
>>>> My guess is that either there are none defined, or there is one defined and assigned to eth1, in which case you will have to reconfigure your ubuntu VM to configure that interface instead of eth0.
>>>>
>>>>>
>>>>> please help me to resolve the issues.
>>>>
>>>> Please do not hesitate to ask further doubts. VMware server and the ssh scripts are the least tested configurations, but I am confident we can get it working.
>>>>
>>>> Regards,
>>>>
>>>> -Tino
>>>>
>>>>>
>>>>> Regards
>>>>> Marimuthu
>>>>>
>>>>> Please do not print this email unless it is absolutely necessary.
>>>>>
>>>>> The information contained in this electronic message and any
>>>>> attachments to this message are intended for the exclusive use of
>>>>> the
>>>>> addressee(s) and may contain proprietary, confidential or
>>>>> privileged information. If you are not the intended recipient, you
>>>>> should not disseminate, distribute or copy this e-mail. Please
>>>>> notify the sender immediately and destroy all copies of this message and any attachments.
>>>>>
>>>>> WARNING: Computer viruses can be transmitted via email. The
>>>>> recipient should check this email and any attachments for the
>>>>> presence of viruses. The company accepts no liability for any
>>>>> damage caused by any virus transmitted by this email.
>>>>>
>>>>> www.wipro.com
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opennebula.org
>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Constantino Vázquez, Grid Technology Engineer/Researcher:
>>>> http://www.dsa-research.org/tinova
>>>> DSA Research Group: http://dsa-research.org Globus GridWay
>>>> Metascheduler: http://www.GridWay.org OpenNebula Virtual
>>>> Infrastructure Engine: http://www.OpenNebula.org
>>>>
>>>> Please do not print this email unless it is absolutely necessary.
>>>>
>>>> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>>>>
>>>> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>>>>
>>>> www.wipro.com
>>>>
>>>
>>> Please do not print this email unless it is absolutely necessary.
>>>
>>> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>>>
>>> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>>>
>>> www.wipro.com
>>>
>>
>> Please do not print this email unless it is absolutely necessary.
>>
>> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>>
>> www.wipro.com
>>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>
> www.wipro.com
>
More information about the Users
mailing list