Friday, 2023-03-03

opendevreviewSteve Baker proposed openstack/diskimage-builder master: A new diskimage-builder command for yaml image builds  https://review.opendev.org/c/openstack/diskimage-builder/+/87624503:07
stevebaker[m]clarkb, ianw : Hey I'd be interested to know what you think of this ^^03:08
ianwi'll give it a good look-over but the idea seems reasonable03:11
espenflUpon trying to get info into the cloud-init of a built Ubuntu image, specifically a few SSH keys for the default ubuntu user, I followed this: https://docs.openstack.org/bifrost/latest/user/howto.html#overriding-instance-information. But upon enrollment, nothing is in instance_info after checking with `baremetal node show` and the keys are not put into the image on boot.07:50
espenflChecked the source code and I could not find how `instance_info` is pulled on enrollment (using the `bifrost-cli`). Then I noticed the comment about the special Bifrost thing on the same page. Is this a bit of trick so that this is only done on deployment? Somehow it does not work and I would like to figure out why, in the process also learn a bit more about how bifrost07:50
espenflpopulates ironic data etc. Thanks in advance.07:50
opendevreviewEbbex proposed openstack/diskimage-builder master: Fix double-keyed json  https://review.opendev.org/c/openstack/diskimage-builder/+/87629211:04
JayFespenfl: config drives are a deployment-only concept. Think about it this way: a "node" is a raw piece of infrastructure. You shouldn't ever login to it. Once you put an instance on it (including config-data and an image of your choice), it's meant to be human-accessible.14:55
JayFalso, we should probably go to -ironic :D 14:56
espenflThanks. I noticed that the Ansible stuff separates between the `baremetal` and the `ironic` stuff. So this falls under `baremetal` and then it is not yet an instance per se and `instance_info` makes no sense at the point of enrollment. Is my thinking somewhat correct and aligned with the structure of this?15:56
espenflah, ye, this is the dib channel, sorry :)15:57
clarkbstevebaker[m]: left a couple of thoughts. The idea seems reasonable16:15
JayFstevebaker[m]: I would've LOVED this when I was using ipa-b downstream at yahoo18:22
opendevreviewJulia Kreger proposed openstack/diskimage-builder master: Correct boot path to cover FIPS usage cases  https://review.opendev.org/c/openstack/diskimage-builder/+/87619222:12
TheJuliastevebaker[m]: take a look at ^ when you get a chance22:13
TheJulia... I think this means we can have a fips element, fwiw22:13
clarkbTheJulia: does that break fallback kernels though?22:15
clarkbif it does it seems like this should be limited to when users need it?22:16
TheJuliait changes the overall system default22:16
clarkbright but it removes all previous entries and leaves you with a single entry? That would remove any fallback boot options22:16
TheJuliaso any grub-install ops or grubby commands will draw from that file to update the configs22:16
TheJuliathat is not what the boot flag is22:16
clarkboh this is /etc/default/grub22:17
clarkbnot the actual grub config22:17
TheJuliayeah22:17
TheJuliayeah22:17
TheJuliathis ends up on the kernel command line22:17
TheJuliaso the hmac file can get checked before pivoting22:17
TheJuliaotherwise the system halts22:17
clarkbI'm just trying to understand what this changes for a normal image built that will never care about fips22:18
TheJuliawell, so I'm likely going to toss up a fips element next week22:18
TheJuliafwiw22:18
TheJuliabut when you run... trying to think of the command again on centos22:18
TheJuliabut basically it will self-inject boot=UUID=<insert the appropriate system uuid is here> into that same field that gets edited22:19
TheJuliawhich is needed by the dracut to find the hmac file22:19
TheJuliabut when we build an image with dib, even if the image previously had fips enabled, when we're done with it the value will be wrong22:19
TheJuliabecause we will repartition/regenerate potentially22:19
TheJulianot potentially, always22:19
clarkbright but what about the non fips case22:20
TheJuliafor a normal image, it will just have the extra field, but dracut's code doesn't care otherwise22:20
clarkbI see. there is no validation then so removing the field (which may not exist at all?) has no effect22:20
TheJuliaexactly22:20
TheJuliait is really just an informational hint that must exist if /boot is not on the root filesystem22:21
TheJulia... I think this exact thing this fixes is also why we have not had a fips element previously22:22
TheJulia... I had to go find how we build fips images downstream and got sad22:22
TheJuliaJayF: thanks for the review, good point, it could that someone for some reason has boot=/dev/device22:34
TheJuliaI was thinking all uuid based labeling, but we end up prefering raw labeling22:34
TheJuliaso yeah, maybe space or end of line22:34
TheJuliaI'm going to call it a weekend I think22:36

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