[one-users] can't get s information from the physical node

Tino Vazquez tinova at fdi.ucm.es
Fri Oct 9 02:48:08 PDT 2009


Hi Zhentao,

comments inline,


On Thu, Oct 8, 2009 at 3:31 PM, Liu, Zhentao
<Zhentao.Liu at fokus.fraunhofer.de> wrote:
> Hi, Matheus
>
> Thank you very much for your solution. I have followed with your method, it
> still didn't work for me. Otherwise I don't use Xen but KVM, so I add all
> the KVM related files to /etc/sudoers:
>
> oneadmin ALL= NOPASSWD:/usr/sbin/kvm
> oneadmin ALL= NOPASSWD:/usr/sbin/kvmctl
> oneadmin ALL= NOPASSWD:/usr/sbin/kvm-img
> oneadmin ALL= NOPASSWD:/usr/sbin/kvm-nbd
> oneadmin ALL= NOPASSWD:/usr/sbin/kvm-ok
> oneadmin ALL= NOPASSWD:/usr/sbin/kvm_stat
> oneadmin ALL= NOPASSWD:/usr/sbin/kvmtrace
> oneadmin ALL= NOPASSWD:/usr/sbin/kvmtrace_format

You don't need this since running kvm is done through the virsh.

>
> But there is another point that I can only ssh from front-end to my remote
> node without password, but I can't ssh from my remote to my front-end.
> I think this is the reason that the remote node can't send the KVM
> information back to the front-end. Is right?

You just need passwordless ssh in one direction: from the opennebula
front-end to the remote node.

>
> Any other ideas?

How are you executing 'oned'? If you are running it as oneadmin (the
recommended configuration) please check that in the remote node you
don't have a directory /tmp/ne_im_scripts owned by another user (for
instance, root, if you have executed 'oned' as root before)

Hope it helps,

-Tino

>
> Regards
>
> Zhentao
> -----Original Message-----
> From: Matheus Cunha [mailto:mathcunha at gmail.com]
> Sent: Thu 10/8/2009 2:16 AM
> To: Liu, Zhentao
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] can't get s information from the physical node
>
> Hi,
> I had this same problem, that was resolved when I gave some root access to
> my oneadmin account. In my case I had to add two lines to the  /etc/sudoers
> file, as follow.
>
> oneadmin ALL= NOPASSWD: /usr/sbin/xm
> oneadmin ALL= NOPASSWD: /usr/sbin/xentop
>
>
> Regards,
>
> On Wed, Oct 7, 2009 at 11:01 AM, Liu, Zhentao <
> Zhentao.Liu at fokus.fraunhofer.de> wrote:
>
>>  Hello,
>>
>> I have created a node using my remote host. But on the front-end I can't
>> get the information of the node, i.e
>>
>>
>>
>> --------------------------------------------------------------------------------
>> root at taresian:/var/log/one# onehost list
>>  HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM
>> STAT
>>    4 193.175.134.144             0             0    100         7593960
>> on
>>
>>
>> --------------------------------------------------------------------------------
>>
>> The error in file oned.log is:
>>
>>
>>
>> -----------------------------------------------------------------------------------------------------------------------------------------
>>
>> Wed Oct  7 10:44:28 2009 [InM][I]: Monitoring host 193.175.134.144 (4)
>> Wed Oct  7 10:46:07 2009 [InM][E]: Error monitoring host 4 : MONITOR
>> FAILURE 4 Can not send script to remote machine: 193.175.134.144
>>
>>
>> -----------------------------------------------------------------------------------------------------------------------------------------
>>
>> Any helps would be very appreciated?
>>
>> Thanks
>>
>> Zhentao Liu
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Matheus Cunha.
> "Serenity now!" - Frank Costanza
>
>
> _______________________________________________
> 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



More information about the Users mailing list