[ovirt-users] Testing self hosted engine in 3.6: hostname not resolved error

Simone Tiraboschi stirabos at redhat.com
Wed Oct 21 14:58:01 UTC 2015


On Wed, Oct 21, 2015 at 4:43 PM, Gianluca Cecchi <gianluca.cecchi at gmail.com>
wrote:

> On Wed, Oct 21, 2015 at 4:08 PM, Yedidyah Bar David <didi at redhat.com>
> wrote:
>
>> On Wed, Oct 21, 2015 at 5:00 PM, Gianluca Cecchi
>> <gianluca.cecchi at gmail.com> wrote:
>> > Hello,
>> > playing with an environment where I have a CentOS 7.1 + updates server
>> with
>> > 3.6 repos configured.
>> > no DNS resolution in place.
>> > running the command
>> > hosted-engine --deploy
>> >
>> > I initially get, during the prompts inside setup, the message if I want
>> to
>> > set hostname for the sh engine and if I want to setup /etc/hosts of
>> > hypervisor
>>
>> IIRC we only suggest to update /etc/hosts of the engine, not the host.
>>
>>
> Ok, I will crosscheck the output...
>

That question is:
 Add lines for the appliance itself and for this host to /etc/hosts on the
engine VM?
 Note: ensuring that this host could resolve the engine VM hostname is
still up to you

As Didi stated the properly way to use that is with a properly working
DHCP/DNS infrastructure having each host resolving each others and so on.
Then hosted-engine setup will ask you about engine VM mac address and you
have to create a reservation for that on your infrastructure.

For smaller/test deployment where a DHCP server is not present we are
providing also a static IP addressing option for the engine appliance:
you can specify an IP address for your new VM and it will be configured in
the appliance via cloud-init.
Then your host should be able to resolve it and so, if you don't have a
registering DNS,  it's up to you to configure it via /etc/hosts on your
host.

Cause the appliance deployment is fully automated you don't have the time
to do it on the appliance and so we provided a way to inject the host
address into /etc/hosts on the appliance.
It's still up to you to add other hosts there if you want to deploy
additional ones.
So having a properly working DNS and DHCP server is definitively a better
option.


> I run it through screen and I'm not able to scroll through the output of
> it....
>

1. Hit your screen prefix combination ( C-a / control + A by default), then
hit Escape .
2. Move up/down with the arrow keys to scrool the output buffer.
3. When you're done, hit Return twice to get back to the end of the scroll
buffer.


> > Can I re-run using the answer file? In this case do I have to pre-insert
>> sh
>> > engine hostname inside /etc/hosts of hypervisor?
>>
>> Yes.
>>
>>
>>
> What is the supposed command for using answer file?
>

hosted-engine --deploy
--config-append=/var/lib/ovirt-hosted-engine-setup/answers/answers-20151021154529.conf

Depending from where it stopped it could be that you have to manually
destroy your previous empty appliance instance and cleanup its storage
before being able to retry.


> What should have it put the generated output file? It seems there is
> nothing under /etc/ovirt-hosted-engine
>
> [root at ovc71 ovirt-hosted-engine-setup]# ll /etc/ovirt-hosted-engine
> total 4
> -rw-r--r--. 1 root root 222 Oct 15 10:37 10-appliance.conf
>
>
> [root at ovc71 ovirt-hosted-engine-setup]# cat
> /etc/ovirt-hosted-engine/10-appliance.conf
> description=The oVirt Engine Appliance image (OVA)
> version=20151015.0-1.el7.centos
>
> path=/usr/share/ovirt-engine-appliance/ovirt-engine-appliance-20151015.0-1.el7.centos.ova
> sha1sum=010c974c81aa45560002b0e3dfdf56fc81e31eb4
>
> AH ok.. I found it under
> /var/lib/ovirt-hosted-engine-setup/answers/answers-20151021154529.conf
>
> So it remains the question regarding syntax for using answer file..
>
> Thanks,
> Gianluca
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151021/855b18ba/attachment-0001.html>


More information about the Users mailing list