[one-users] The STAT flag of Host is Error.

Tuan Le Doan tuan.fetk52 at gmail.com
Mon Oct 8 02:28:24 PDT 2012


Thank you for all reply, I fixed that error, but after that i received
another error when i created host:

 This is my oned.log file:

Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then
/var/tmp/one/im/run_probes kvm 1 centoshost;
else                              exit 42; fi'
Fri Oct  5 16:52:51 2012 [InM][I]: error: authentication failed:
Authorization requires authentication but no agent is available.
Fri Oct  5 16:52:51 2012 [InM][I]:
Fri Oct  5 16:52:51 2012 [InM][I]: error: failed to connect to the
hypervisor
Fri Oct  5 16:52:51 2012 [InM][E]: Error executing kvm.rb
Fri Oct  5 16:52:51 2012 [InM][I]: ExitCode: 255
Fri Oct  5 16:52:51 2012 [InM][E]: Error monitoring host 1 : MONITOR
FAILURE 1 Error executing kvm.rb

I tried to add libvirt group and add oneadmin user to libvirt and kvm
group, but it's still error.

Hope that anyone can help me :P

Regards.

2012/10/3 Rodolfo Conte Brufatto <rcbrufatto at gmail.com>

> Tuan, there is no key in your .ssh directory. You will need that anyway.
> Make sure the key pair file and the public key are available in that
> directory. After that, depending on how you generated the key files (using
> ssh-keygen or openssl) you just need to copy your public key to
> .ssh/authorized_keys. If it was created with openssl you can export it
> using ssh-keygen as well.
>
> cheers
>
>
>
> On Wed, Oct 3, 2012 at 6:04 AM, Tuan Le Doan <tuan.fetk52 at gmail.com>wrote:
>
>> I use only one machine for both of Master and Host (I installed
>> OpenNebula and KVM in 1 server).
>>
>>
>> 2012/10/3 Duverne, Cyrille <cyrille.duverne at euranova.eu>
>>
>>> Hello Tuan,
>>>
>>> Are you sure that the ssl key of oneadmin on your Master machine is the
>>> same than the one in your Host ?
>>>
>>> CyD
>>>
>>> Blog : http://blog.cduverne.com
>>> Twitter : @CydsWorld
>>>
>>> "Imagination is more important than Knowledge"
>>> Albert Einstein
>>>
>>>
>>>
>>> Mercredi 03/10/2012 à 9:43 Tuan Le Doan a écrit:
>>>
>>> Hi CyD,
>>>
>>> This is the output:
>>>
>>> [oneadmin at centoshost Desktop]$ ls -lArth /var/lib/one/.ssh/config
>>> -rw-rw-r--. 1 oneadmin oneadmin 33 Sep 24 15:35 /var/lib/one/.ssh/config
>>>
>>> Do you know how can i do to fix it?
>>>
>>> Thanks.
>>> 2012/10/3 Duverne, Cyrille <cyrille.duverne at euranova.eu>
>>>
>>>> Hello Tuan,
>>>>
>>>> Could you send the output of : " ls -lArth /var/lib/one/.ssh/config "
>>>>
>>>> I suspect you didn't chown -R the directory.
>>>>
>>>> Kind regards
>>>> CyD
>>>>
>>>> Blog : http://blog.cduverne.com
>>>> Twitter : @CydsWorld
>>>>
>>>> "Imagination is more important than Knowledge"
>>>> Albert Einstein
>>>>
>>>>
>>>>
>>>> Mercredi 03/10/2012 à 6:58 Tuan Le Doan a écrit:
>>>>
>>>>
>>>> Dear all,
>>>>
>>>>
>>>> I have installed Opennebula 3.6 and KVM successful on single machine
>>>> (CentOS 6.3).
>>>>
>>>> But when I add host and run “onehost list” command, the state of host
>>>> is error.
>>>>
>>>> I checked the log file and saw “Bad owner or permisions on
>>>> /var/lib/one/.ssh/config” message.
>>>>
>>>>
>>>> So I think my error is the password less connection to host was lost.
>>>>
>>>> I tried to change permission of /var/lib/one to oneadmin user with
>>>> “sudo chown oneadmin:oneadmin /var/lib/one” but it’s still error.
>>>>
>>>> I couldn’t create SSH key for oneadmin because of “Bad owner or
>>>> permisions on /var/lib/one/.ssh/config” error.
>>>>
>>>>
>>>> Anyone can help me to fix it?
>>>>
>>>>
>>>> Regards.
>>>>
>>>> --
>>>> *Le Doan Tuan-----------------------------------------------------*
>>>> Undergraduate Student of School of Electronics & Telecommunications.
>>>> Hanoi University of Science & Technology
>>>> Tel    : +84 987 248 215
>>>> Yahoo: ledoantuan1
>>>> Skype: ledoantuan1
>>>>
>>>>
>>>
>>>
>>> --
>>> *Le Doan Tuan-----------------------------------------------------*
>>> Undergraduate Student of School of Electronics & Telecommunications.
>>> Hanoi University of Science & Technology
>>> Tel    : +84 987 248 215
>>> Yahoo: ledoantuan1
>>> Skype: ledoantuan1
>>>
>>>
>>>
>>
>>
>> --
>> *Le Doan Tuan-----------------------------------------------------*
>> Undergraduate Student of School of Electronics & Telecommunications.
>> Hanoi University of Science & Technology
>> Tel    : +84 987 248 215
>> Yahoo: ledoantuan1
>> Skype: ledoantuan1
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Have you tried turning it off and on again?
>



-- 
*Le Doan Tuan-----------------------------------------------------*
Undergraduate Student of School of Electronics & Telecommunications.
Hanoi University of Science & Technology
Tel    : +84 987 248 215
Yahoo: ledoantuan1
Skype: ledoantuan1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121008/f1bc6946/attachment-0002.htm>


More information about the Users mailing list