Friday, 2021-05-28

openstackgerritMerged openstack/diskimage-builder master: Remove octvia-v1-dsvm-* jobs  https://review.opendev.org/c/openstack/diskimage-builder/+/79309601:19
*** sam_wan has joined #openstack-dib02:11
openstackgerritMerged openstack/diskimage-builder master: bootloader: remove extlinux/syslinux path  https://review.opendev.org/c/openstack/diskimage-builder/+/54112904:51
*** dtantsur has quit IRC07:49
*** dtantsur has joined #openstack-dib07:51
*** sam_wan has quit IRC10:38
*** openstackgerrit has quit IRC14:06
*** dking has joined #openstack-dib17:36
dkingThis is probably a silly question, but what is the best way to have DIB set a hostname on the server? For instance, maybe an existing element or environment option?17:44
clarkbdking: we use the simple-init element on our DIB images and that uses config-drive to set the hostname17:45
clarkbcloud-init will do it for you too using config drive or metadata service17:45
dkingclarkb: Thank you. Yeah, I was aware of cloud-init, but I wasn't wanting to use that here. I suppose that I could use simple-init, but that seems to be a bit of overkill. I'm actually building IPA deploy images and just thought that it might be nice to use a hostname to distinguish those.17:48
clarkbdking: you'll need something that can lookup the hostname from somewhere and then apply it. That is what glean (simple-init) and cloud-init do17:49
dkingI really just wanted to set them all to something like "ipa". I've got a few occasions where PXE doesn't take, so I have to go in and manually check the instance with a KVM, which greets me with a login prompt, which includes the hostname. It would be nice to see from there if it's stuck in IPA or if it's actually booted a HDD without having to find the passwords first. It's not really a big deal, though.17:52
dkingI already have a custom element, so I could probably just modify it there.17:52
clarkbif you want to set it to a constant then ya a simple element that sets it at build time should work fine17:53
clarkbjust add a run.d script that runs `hostnamectl set-hostname ipa`17:53
clarkbI'm not aware of anything like that existing already.17:54
dkingThanks. I didn't find anything on a quick search, but just thought that I might ask just in case I missed it.17:55
*** irclogbot_0 has quit IRC23:53
*** irclogbot_2 has joined #openstack-dib23:56

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!