[ovirt-users] Renaming hosted engine

Yedidyah Bar David didi at redhat.com
Wed Dec 7 11:06:00 UTC 2016


On Wed, Dec 7, 2016 at 12:20 PM, Luca 'remix_tj' Lorenzetto
<lorenzetto.luca at gmail.com> wrote:
> Hello,
>
> On Wed, Dec 7, 2016 at 10:53 AM, Yedidyah Bar David <didi at redhat.com> wrote:
> [cut]
>>
>> If you have another host, you can migrate all VMs to the other host,
>> move current to maintenance, remove it, then add it with the new name
>> you want. You might have to also clean up the shared meta-data, see:
>>
>> https://www.ovirt.org/documentation/how-to/hosted-engine/#remove-old-host-from-the-metadata-whiteboard
>>
>
> from your response i understood that i was using the wrong terms for
> explaining my need.
>
> What i'm willing to change the fqdn of the engine vm running on hosted
> engine. I've seen that the deployment procedure asked for it, so i
> think somewhere  this value is used for configurations.

Indeed. I do not think we have a tested procedure for renaming
a hosted-engine.

The rename tool [1] will not handle this.

Nikolai - IIRC we discussed this some months ago. Did you eventually
test this?

You can run the tool, but then ha-agent will fail to connect to the engine
to see that it's alive.

To answer your question: This is saved in a file called hosted-engine.conf,
as 'fqdn='. Until 3.5, this file was only saved locally on each host in
/etc/hosted-engine. Since 3.6, it's also saved in the shared storage.
You can try extracting it from the shared storage, edit, then update.
See e.g. [2] for how to do this, but that one is for a different file
(the answer file, also saved in both /etc and the shared storage).

I now read parts of the relevant code, and AFAICT we do not use fqdn
from the shared storage, only from the one in /etc. So it might be
enough to change there (although you risk that this will change in
a future version).

Please open a bug about this. If you try the above, please tell us if
it worked or not and what problems/errors you got. Thanks!

[1] https://www.ovirt.org/documentation/how-to/networking/changing-engine-hostname/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1366879#c23

>
> Thank you anyway for the link,
>
> Luca
>
> --
> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
> calcoli che potrebbero essere affidati a chiunque se si usassero delle
> macchine"
> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>
> "Internet è la più grande biblioteca del mondo.
> Ma il problema è che i libri sono tutti sparsi sul pavimento"
> John Allen Paulos, Matematico (1945-vivente)
>
> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenzetto.luca at gmail.com>



-- 
Didi



More information about the Users mailing list