Hi,
Seems like I fixed the hostname problem with an entry in /etc/hosts but now I get another
error. It still does not work.
Tue, 27 Mar 2012 15:19:39 DEBUG Basic configuration found, skipping this step
Tue, 27 Mar 2012 15:19:39 DEBUG <BSTRAP component='CreateConf'
status='OK' message='Basic configuration found, skipping this step'/>
Tue, 27 Mar 2012 15:19:39 DEBUG <BSTRAP component='CheckLocalHostname'
status='OK' message='Local hostname is correct.'/>
Tue, 27 Mar 2012 15:19:39 DEBUG Bridge ovirtmgmt not found, need to create it.
Tue, 27 Mar 2012 15:19:39 DEBUG getAddress Entry.
url=http://oVirt.dynetic.de:8080/Components/vds/
Tue, 27 Mar 2012 15:19:39 DEBUG getAddress return. address=oVirt.dynetic.de port=8080
Tue, 27 Mar 2012 15:19:39 DEBUG makeBridge begin.
Tue, 27 Mar 2012 15:19:39 ERROR makeBridge Failed to find vdsm modules!
Tue, 27 Mar 2012 15:19:39 ERROR addNetwork error trying to add management bridge
Tue, 27 Mar 2012 15:19:39 DEBUG <BSTRAP component='SetNetworking'
status='FAIL' message='addNetwork error trying to add management
bridge'/>
Tue, 27 Mar 2012 15:19:39 DEBUG getAddress Entry.
url=http://oVirt.dynetic.de:8080/Components/vds/
Tue, 27 Mar 2012 15:19:39 DEBUG getAddress return. address=oVirt.dynetic.de port=8080
Tue, 27 Mar 2012 15:19:39 DEBUG getRemoteFile start. IP = oVirt.dynetic.de port = 8080
fileName = "/engine.ssh.key.txt"
Tue, 27 Mar 2012 15:20:09 DEBUG /engine.ssh.key.txt failed in HTTPS. Retrying using
HTTP.
Traceback (most recent call last):
File "/tmp/deployUtil.py", line 1341, in getRemoteFile
conn.sock = getSSLSocket(sock, certPath)
File "/tmp/deployUtil.py", line 1185, in getSSLSocket
cert_reqs=ssl.CERT_REQUIRED)
File "/usr/lib64/python2.6/ssl.py", line 338, in wrap_socket
suppress_ragged_eofs=suppress_ragged_eofs)
File "/usr/lib64/python2.6/ssl.py", line 120, in __init__
self.do_handshake()
File "/usr/lib64/python2.6/ssl.py", line 279, in do_handshake
self._sslobj.do_handshake()
SSLError: _ssl.c:475: The handshake operation timed out
Regards, rene
-----Ursprüngliche Nachricht-----
Von: Doron Fediuck [mailto:dfediuck@redhat.com]
Gesendet: Dienstag, 27. März 2012 14:28
An: Rene Rosenberger
Cc: Haim Ateya; users(a)ovirt.org
Betreff: Re: AW: AW: AW: AW: [Users] Adding Host
You need to fix the host name and maybe DNS as well, since gethostbyname fails on your
host. Proper DNS may also be needed for other services later on such as SSL and
potentially VM migration.
See:
File
"/tmp/vds_bootstrap_51dac158-f11d-4c29-b4e8-ccfe2e4e41c5.py", line 654, in
checkLocalHostname
fqdnip = socket.gethostbyname(socket.gethostname())
gaierror: [Errno -3] Temporary failure in name resolution
On 27/03/12 14:21, Rene Rosenberger wrote:
> Hi,
>
> Ok, did it again from the scratch. Network bridge failed with error:
>
> Tue, 27 Mar 2012 14:12:49 DEBUG <BSTRAP component='CreateConf'
status='OK' message='Basic configuration found, skipping this step'/>
> Tue, 27 Mar 2012 14:12:49 ERROR gethostbyname error
> Traceback (most recent call last):
File
"/tmp/vds_bootstrap_51dac158-f11d-4c29-b4e8-ccfe2e4e41c5.py", line 654, in
checkLocalHostname
fqdnip = socket.gethostbyname(socket.gethostname())
gaierror: [Errno -3] Temporary failure in name resolution
> Tue, 27 Mar 2012
14:12:49 ERROR Unable to resolve local hostname.
> Tue, 27 Mar 2012 14:12:49 DEBUG <BSTRAP component='CheckLocalHostname'
status='WARN' message='Unable to resolve local hostname.'/>
> Tue, 27 Mar 2012 14:12:49 DEBUG Bridge ovirtmgmt not found, need to create it.
> Tue, 27 Mar 2012 14:12:49 DEBUG getAddress Entry.
url=http://oVirt.xxx.de:8080/Components/vds/
> Tue, 27 Mar 2012 14:12:49 DEBUG getAddress return. address=oVirt.xxx.de port=8080
> Tue, 27 Mar 2012 14:12:49 DEBUG makeBridge begin.
> Tue, 27 Mar 2012 14:12:49 ERROR makeBridge Failed to find vdsm modules!
> Tue, 27 Mar 2012 14:12:49 ERROR addNetwork error trying to add management bridge
> Tue, 27 Mar 2012 14:12:49 DEBUG <BSTRAP component='SetNetworking'
status='FAIL' message='addNetwork error trying to add management
bridge'/>
>
> Regards, rene
>
> -----Ursprüngliche Nachricht-----
> Von: Doron Fediuck [mailto:dfediuck@redhat.com]
> Gesendet: Dienstag, 27. März 2012 13:23
> An: Rene Rosenberger
> Cc: Haim Ateya; users(a)ovirt.org
> Betreff: Re: AW: AW: AW: [Users] Adding Host
>
> Rene,
> IIUC, you are /not/ using VDSM at the moment. Is this right?
> If so, than you should probably add one host at a time, and after the first 1-2 hosts
you should import the VM's into the Engine.
>
> However, if you /are/ using vsdm, then it is possible to add a host without going
through the whole bootstrap process. Note that using this features, makes you responsibly
for everything to be up & running for the engine-core to work with. This can be
achieved by setting the InstallVds entry to false using engin-config.
>
> On 27/03/12 13:01, Rene Rosenberger wrote:
>> Hi,
>>
>> so you mean ist saver and better to let bootstrap do its work instead of doing it
manualy, right?
>>
>> Ok, but I have already kmv hosts I wanna add to ovirt. Whats the best way todo?
Save the vms somewhere and reinstall the host via bootstrap and move the vms back via
virt-v2v?
>>
>> Regards, rene
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Doron Fediuck [mailto:dfediuck@redhat.com]
>> Gesendet: Dienstag, 27. März 2012 12:58
>> An: Rene Rosenberger
>> Cc: Haim Ateya; users(a)ovirt.org
>> Betreff: Re: AW: AW: [Users] Adding Host
>>
>> Basically the bootstrap process is making sure the relevant RPM files are
installed, and conflicting packages are either removed or causes failure. There are some
conflicts that are not in RPM level, which bootstrap knows how to handle. These will not
be handled in the path you're taking. Similar issues you should expect is bios virt
flags and kernel / OS validations bootstrap is doing.
>>
>> Furthermore, bootstrap is auto-generating a vdsm configuration, as well as other
things such as networking (which you stumbled upon), time-sync, key & certificate
generation signed by the engine-core, along with setting up a core-dump folder and
probably some other things which I forgot.
>>
>> So as you can understand bootstrap is handling many issues, and manual
installation, although possible, will not b e a simple one. If you're heading this way
I suggest you read the vdsm_bootstrap, vdsm_bootstrap_complete, deployUtil and
vds_installer python scripts. All should be available on your engine-core machine.
>>
>> On 27/03/12 12:46, Rene Rosenberger wrote:
>>>
>>> Hi,
>>>
>>> lets assume that i have a running system and i already did a yum groupinstall
"Virtualization*". Then I have a completely running kvm system with virtual
machine manager and so on. What do I have to do to add this host to ovirt? Can you explain
the steps?
>>>
>>> Regards, rene
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Doron Fediuck [mailto:dfediuck@redhat.com]
>>> Gesendet: Dienstag, 27. März 2012 12:39
>>> An: Rene Rosenberger
>>> Cc: Haim Ateya; users(a)ovirt.org
>>> Betreff: Re: AW: [Users] Adding Host
>>>
>>> Rene,
>>> Standard bootstrap assumes base OS is installed, with access to relevant yum
repo in order to fetch vdsm and dependent RPM's. From this point of view, we
concentrate on VDSM, while kvm is simply a kernel module which should be loaded. Anything
beyond will probably cause manual intervention as you just had.
>>>
>>>
>>> On 27/03/12 12:32, Rene Rosenberger wrote:
>>>> Hi,
>>>>
>>>> I think I will give it a new try from the scratch. What is the procedure
to add a centos 6.2 host where is already kvm running with vms? Lets forget the vms for a
while and think only about that kvm is already installed on the host I want to add to
ovirt.
>>>>
>>>> Regards,
>>>> rene
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Doron Fediuck [mailto:dfediuck@redhat.com]
>>>> Gesendet: Dienstag, 27. März 2012 12:09
>>>> An: Rene Rosenberger
>>>> Cc: Haim Ateya; users(a)ovirt.org
>>>> Betreff: Re: [Users] Adding Host
>>>>
>>>> Rene,
>>>> Having an ovirtmgmt bridge manually setup, causes the bootstrap process
to avoid over-running it, assuming it's working.
>>>>
>>>> In normal flow it should be auto-generated for you, unless something goes
wrong. So you should have it working, but if you find the earlier issue, please let us
know so we could try and fix it.
>>>>
>>>> Doron
>>>>
>>>> On 27/03/12 12:01, Rene Rosenberger wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> i think i got it. When i create a bridge manualy like this:
>>>>>
>>>>>
>>>>>
>>>>> Add ovirt management bridge manually. Here the examples of ifcfg
>>>>> files, resides in /etc/sysconfig/network-scripts
>>>>>
>>>>> vim /etc/sysconfig/network-scripts/ifcfg-eth0
>>>>>
>>>>>
>>>>>
>>>>> DEVICE=eth0
>>>>>
>>>>> BOOTPROTO=none
>>>>>
>>>>> NM_CONTROLLED=no
>>>>>
>>>>> ONBOOT=yes
>>>>>
>>>>> BRIDGE=ovirtmgmt
>>>>>
>>>>> vim /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt
>>>>>
>>>>>
>>>>>
>>>>> DEVICE=ovirtmgmt
>>>>>
>>>>> BOOTPROTO=static
>>>>>
>>>>> GATEWAY=xxx.xxx.xxx.xxx
>>>>>
>>>>> IPADDR=xxx.xxx.xxx.xxx
>>>>>
>>>>> NETMASK=255.255.255.0
>>>>>
>>>>> NM_CONTROLLED=no
>>>>>
>>>>> ONBOOT=yes
>>>>>
>>>>> TYPE=Bridge
>>>>>
>>>>>
>>>>>
>>>>> It will work. I think this working installation has now overwritten
my not working log. So I cant post. It is a centos 6.2 host.
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>>
>>>>> rene
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> *Von:*users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] *Im
>>>>> Auftrag von *Haim Ateya
>>>>> *Gesendet:* Dienstag, 27. März 2012 11:59
>>>>> *An:* users(a)ovirt.org
>>>>> *Betreff:* Re: [Users] Adding Host
>>>>>
>>>>>
>>>>>
>>>>> On 03/27/2012 11:52 AM, Rene Rosenberger wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> i have installed ovirt successfully. When I now want to add a host on
which KVM is already installed I get an error. I try to add it over the web gui with add
new host. Thne a installation progress is starting on the remote host and I get an error
during this progress:
>>>>>
>>>>>
>>>>>
>>>>> Step: SetNetworking; Details: addNetwork error trying to add
management bridge.
>>>>>
>>>>>
>>>>>
>>>>> What can I do?
>>>>>
>>>>>
>>>>> could you please attach installation logs located under /tmp/ on
installed host ?
>>>>> what type of host are you trying to add ? is it RHEL or Fedora ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Regards, rene
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>>
>>>>> Users mailing list
>>>>>
>>>>> Users(a)ovirt.org <mailto:Users@ovirt.org>
>>>>>
>>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users(a)ovirt.org
>>>>>
http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>
>>
>