Hi all,
Current [1] is broken - it misses the domain name.
After spending several hours on this last few days, I decided to give
up for now and just fix by appending hard-coded 'lago.local'. I am
testing locally, and if it passes, I'll push to gerrit.
Going forward, I'd like to have as few as possible guesses and
hard-coded strings that must match:
- Engine fqdn should be hard-coded, arbitrary (but not "engine", as
explained), ideally in a single place, propagated from there as needed
- storage server (used in HE suites) should also be hard-coded and not
guessed from the engine machine name like now
- Same for domain name ("lago.local")
- Since it's hard to read lago init file and parse it to get stuff
from it without actually using lago (and even when using it, e.g. I
failed to get dns domain name), we should decide on these things
before starting lago and inject them into the lagoinitfile (like we do
with other stuff via env).
- Also, and to better (IMO) match what I think should happen in
reality (for real setups), it should all be done on DNS level (dnsmasq
of libvirt, controlled by lago, AFAIU), and we should stop playing
with /etc/hosts.
If there is agreement, I might decide to work on this. Or we can at
least open a bug/ticket somewhere :-).
For some of my thoughts/attempts along the way, you might want to see
[2][3][4]. All are WIP, none work, probably none even is worth the
time of a real review.
Thoughts/opinions/ideas are most welcome!
Thanks and best regards,
[1]
https://gerrit.ovirt.org/c/ovirt-system-tests/+/112488
[2]
https://github.com/didib/ovirt-system-tests/tree/ostengine
[3]
https://github.com/didib/ovirt-system-tests/tree/fqdn-from-env
[4]
https://github.com/didib/ovirt-system-tests/tree/engine-fqdn-env
--
Didi