[Users] Fails to add a new host due to ssh error

Dafna Ron dron at redhat.com
Fri Jan 24 16:17:38 UTC 2014


There was a bug opened for this and after a discussion it was decided to 
close it:

https://bugzilla.redhat.com/show_bug.cgi?id=889856

I agree that the thread in the engine log is difficult to read but there 
are the host deploy logs which are easy to read so this is no longer a 
big issue...

Dafna


On 01/24/2014 04:10 PM, Alon Bar-Lev wrote:
>
> ----- Original Message -----
>> From: "Meital Bourvine" <mbourvin at redhat.com>
>> To: "Alon Bar-Lev" <alonbl at redhat.com>
>> Cc: "users" <users at ovirt.org>
>> Sent: Friday, January 24, 2014 6:08:02 PM
>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>
>> This is what I see (nothing about yum):
>>
>> Last Message:
>> 	
>> 	
>> 2014-Jan-24, 15:58
>> 	
>> Host my_host installation failed. Command returned failure code 1 during SSH
>> session 'root at my_host'.
>> 	
>> 	
>> 2014-Jan-24, 15:58
>> 	
>> Host my_host installation failed. Command returned failure code 1 during SSH
>> session 'root at my_host'.
> Please scroll up.
>
>> ----- Original Message -----
>>> From: "Alon Bar-Lev" <alonbl at redhat.com>
>>> To: "Meital Bourvine" <mbourvin at redhat.com>
>>> Cc: "users" <users at ovirt.org>
>>> Sent: Friday, January 24, 2014 3:58:59 PM
>>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>>
>>>
>>>
>>> ----- Original Message -----
>>>> From: "Meital Bourvine" <mbourvin at redhat.com>
>>>> To: "Alon Bar-Lev" <alonbl at redhat.com>
>>>> Cc: "users" <users at ovirt.org>
>>>> Sent: Friday, January 24, 2014 5:56:15 PM
>>>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>>>
>>>> Yes, it's rhev.
>>>>
>>>> I think that it's a bug that the user sees an error about SSH, while the
>>>> real
>>>> problem is with yum.
>>>> What do you think?
>>> If you look at the event log in UI while selecting the host you can find
>>> the
>>> same error presented to user.
>>>
>>>> ----- Original Message -----
>>>>> From: "Alon Bar-Lev" <alonbl at redhat.com>
>>>>> To: "Meital Bourvine" <mbourvin at redhat.com>
>>>>> Cc: "users" <users at ovirt.org>
>>>>> Sent: Friday, January 24, 2014 3:52:27 PM
>>>>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>>>>
>>>>> Hi,
>>>>>
>>>>> Is this rhev product?
>>>>> If it is, can you please contact support?
>>>>> I think that your channels are not setup up correctly.
>>>>>
>>>>> Alon
>>>>>
>>>>> ----- Original Message -----
>>>>>> From: "Meital Bourvine" <mbourvin at redhat.com>
>>>>>> To: "Alon Bar-Lev" <alonbl at redhat.com>
>>>>>> Cc: "users" <users at ovirt.org>
>>>>>> Sent: Friday, January 24, 2014 5:46:55 PM
>>>>>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>>>>>
>>>>>>  From host-deploy log: (also attached)
>>>>>>
>>>>>> 2014-01-24 17:43:12 ERROR otopi.plugins.otopi.packagers.yumpackager
>>>>>> yumpackager.error:97 Yum [u'libvirt-lock-sanlock-0.10.2-29.el6.x86_64
>>>>>> requires libvirt = 0.10.2-29.el6', u'vdsm-4.13.2-0.7.el6ev.x86_64
>>>>>> requires
>>>>>> qemu-img-rhev >= 2:0.12.1.2-2.415.el6_5.3',
>>>>>> u'vdsm-4.13.2-0.7.el6ev.x86_64
>>>>>> requires qemu-kvm-rhev >= 2:0.12.1.2-2.415.el6_5.3']
>>>>>> 2014-01-24 17:43:12 DEBUG otopi.context context._executeMethod:137
>>>>>> method
>>>>>> exception
>>>>>> Traceback (most recent call last):
>>>>>>    File "/tmp/ovirt-sjxbTqRqN0/pythonlib/otopi/context.py", line 127,
>>>>>>    in
>>>>>>    _executeMethod
>>>>>>      method['method']()
>>>>>>    File
>>>>>>    "/tmp/ovirt-sjxbTqRqN0/otopi-plugins/otopi/packagers/yumpackager.py",
>>>>>>    line 253, in _packages
>>>>>>      if self._miniyum.buildTransaction():
>>>>>>    File "/tmp/ovirt-sjxbTqRqN0/pythonlib/otopi/miniyum.py", line 821,
>>>>>>    in
>>>>>>    buildTransaction
>>>>>>      raise yum.Errors.YumBaseError(msg)
>>>>>> YumBaseError: [u'libvirt-lock-sanlock-0.10.2-29.el6.x86_64 requires
>>>>>> libvirt
>>>>>> =
>>>>>> 0.10.2-29.el6', u'vdsm-4.13.2-0.7.el6ev.x86_64 requires qemu-img-rhev
>>>>>>> =
>>>>>> 2:0.12.1.2-2.415.el6_5.3', u'vdsm-4.13.2-0.7.el6ev.x86_64 requires
>>>>>> qemu-kvm-rhev >= 2:0.12.1.2-2.415.el6_5.3']
>>>>>> 2014-01-24 17:43:12 ERROR otopi.context context._executeMethod:146
>>>>>> Failed
>>>>>> to
>>>>>> execute stage 'Package installation':
>>>>>> [u'libvirt-lock-sanlock-0.10.2-29.el6.x86_64 requires libvirt =
>>>>>> 0.10.2-29.el6', u'vdsm-4.13.2-0.7.el6ev.x86_64 requires qemu-img-rhev
>>>>>>> =
>>>>>> 2:0.12.1.2-2.415.el6_5.3', u'vdsm-4.13.2-0.7.el6ev.x86_64 requires
>>>>>> qemu-kvm-rhev >= 2:0.12.1.2-2.415.el6_5.3']
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----- Original Message -----
>>>>>>> From: "Alon Bar-Lev" <alonbl at redhat.com>
>>>>>>> To: "Meital Bourvine" <mbourvin at redhat.com>
>>>>>>> Cc: "users" <users at ovirt.org>
>>>>>>> Sent: Friday, January 24, 2014 2:45:51 PM
>>>>>>> Subject: Re: [Users] Fails to add a new host due to ssh error
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>>> From: "Meital Bourvine" <mbourvin at redhat.com>
>>>>>>>> To: "users" <users at ovirt.org>
>>>>>>>> Sent: Friday, January 24, 2014 2:19:02 PM
>>>>>>>> Subject: [Users] Fails to add a new host due to ssh error
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I'm trying to add a new host to my setup, and it fails with the
>>>>>>>> following
>>>>>>>> error:
>>>>>>>>
>>>>>>>> 014-01-24 14:12:52,129 ERROR
>>>>>>>> [org.ovirt.engine.core.bll.InstallVdsCommand]
>>>>>>>> (pool-4-thread-48) [1111ca35] Host installation failed for host
>>>>>>>> efd0c4b4-e3d6-421a-b6e5-21bd5f03aa59, master-vds13.:
>>>>>>>> java.io.IOException:
>>>>>>>> Command returned failure code 1 during SSH session 'root at myhost'
>>>>>>>>          at
>>>>>>>>          org.ovirt.engine.core.utils.ssh.SSHClient.executeCommand(SSHClient.java:508)
>>>>>>>>          [utils.jar:]
>>>>>>> Before going to the engine log, what messages have you got to audit
>>>>>>> log
>>>>>>> in
>>>>>>> the UI when trying to deploy?
>>>>>>>
>>>>>>> Have you got a log file message for the host-deploy? if you had
>>>>>>> please
>>>>>>> attach
>>>>>>> it.
>>>>>>>
>>>>>>> If not, then the actual error is above the location you pasted.
>>>>>>>
>>>>>>> Alon
>>>>>>>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users


-- 
Dafna Ron



More information about the Users mailing list