[one-users] host with both tm_ssh and tm_lvm

Shi Jin jinzishuai at gmail.com
Mon Nov 9 08:25:43 PST 2009


Hi there,

I have another problem having two groups of drivers on the same  host.
This is the error message from the oned.log
Mon Nov  9 09:19:33 2009 [InM][I]: Monitoring host node1-ssh (9)
Mon Nov  9 09:19:33 2009 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Nov  9 09:19:34 2009 [InM][I]: Command execution fail: 'mkdir -p
/tmp/one-im/; cat >
/tmp/one-im//one_im-218131afa926b52434fc7ee9e027cddf; if [ "x$?" !=
"x0" ]; then exit -1; fi; chmod +x
/tmp/one-im//one_im-218131afa926b52434fc7ee9e027cddf;
/tmp/one-im//one_im-218131afa926b52434fc7ee9e027cddf'
Mon Nov  9 09:19:34 2009 [InM][I]: STDERR follows.
Mon Nov  9 09:19:34 2009 [InM][I]: bash:
/tmp/one-im//one_im-218131afa926b52434fc7ee9e027cddf: /usr/bin/env:
bad interpreter: Text file busy
Mon Nov  9 09:19:34 2009 [InM][I]: ExitCode: 126
Mon Nov  9 09:19:34 2009 [InM][D]: Host 9 successfully monitored.
Also from vm.log:
Mon Nov  9 09:13:01 2009 [DiM][I]: New VM state is ACTIVE.
Mon Nov  9 09:13:01 2009 [LCM][I]: New VM state is PROLOG.
Mon Nov  9 09:13:01 2009 [TM][E]: prolog, error getting driver im_ssh
Mon Nov  9 09:13:01 2009 [DiM][I]: New VM state is FAILED
Mon Nov  9 09:13:01 2009 [TM][E]: epilog_delete, error getting driver
vmm_kvm. You may need to manually clean
node4-ssh:/opt/cloud/VM/175/images

I think the problem is that the im driver groups (although they are
the same) are writing on top of each other, making the script file not
available at the time of execution. I hope there can be solution to
this problem.
Thanks a lot.

Shi
On Sat, Nov 7, 2009 at 9:25 AM, Shi Jin <jinzishuai at gmail.com> wrote:
> Thank you.
> I thought about this as well. But can you help me with the
> REQUIREMENTS directive?
> REQUIREMENTS="HOSTNAME=\"*-lvm\""
> does not work, I think because the HOSTNAME is the value of the
> hostname command of the host, as shown by "onehost show <HID>|grep
> HOSTNAME". How do we specify a REQUIREMENTS according to the NAME
> variable of a host?
> Thanks a lot.
>
> Shi
>
> On Sat, Nov 7, 2009 at 3:20 AM, Jaime Melis <j.melis at fdi.ucm.es> wrote:
>> Hi,
>>
>> In your /etc/hosts file you can have many names for the same IP:
>>
>> 192.168.0.10 worker workerlvm
>>
>> You can associate worker to tm_ssh and workerlvm to tm_lvm.
>>
>> In the VM template file you can use the REQUIREMENTS directive to specify
>> that the VM must be deployed in a node ending with "lvm".
>>
>> Regards,
>> Jaime
>>
>> On Sat, Nov 7, 2009 at 5:33 AM, Shi Jin <jinzishuai at gmail.com> wrote:
>>>
>>> Hi there,
>>>
>>> Is there a way for a host to have multiple tm drivers?
>>> I tried to add the same  host twice using "onehost create" with
>>> different drivers and  didn't get complaints.
>>> But when I deploy the images, sometimes I will have errros.
>>> The problem is that it may use the ssh driver to image that needs lvm
>>> or lvm driver to the image needing ssh.
>>> When it happens to use the right driver, it works perfectly.
>>>
>>> I guess the best solution is to specify the driver in the template for
>>> each disk instead of for hosts. This way, we could have a VM with
>>> multiple disks, one using LVM and another using ssh. How do you think?
>>>
>>> Thanks.
>>> Shi
>>>
>>> --
>>> Shi Jin, Ph.D.
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>
> --
> Shi Jin, Ph.D.
>



-- 
Shi Jin, Ph.D.



More information about the Users mailing list