/srv/irclogs.ubuntu.com/2022/11/18/#cloud-init.txt

=== djhankb2 is now known as djhankb
minimalany thoughts on my earlier question about ca-certs?14:44
falcojrminimal: I don't know, but if you want them removed I'm not sure why we'd just remove the pointer to them14:50
falcojrlater running an 'update-ca-certificates' could bring back certs you didn't expect to be there14:51
minimalupdate-ca-certificates reads the /etc/ca-certificates.conf file which ca-certs empties14:57
minimalso the only certs that would come back are those from /usr/local/share/ca-certificates, but those are not "default" certs, they are site-specific certs and so I wouldn't expect a "remove defaults" option to remove them14:59
minimalthe only way for the default certs to reappear would be if someone re-added their filenames to /etc/ca-certificates.conf and then ran update-ca-certificates15:00
falcojrah, right. Yeah, I'm not sure there's a specific reason it was done this way. Is it causing problems for you?15:05
minimalit is no causing problems, it just doesn't make sense. The currently functionality both stops the certs being used but ALSO deleted the files for no apparent reason, the distro's package manager may reinstall those files upon package update15:06
minimalso I'm trying to understand why the current code works the way it does15:07
minimalit also means that if someone later wants to re-add one of the default CAs they need "fix" the problem of the missing file(s)15:08
minimalwhen there's no need for the files to be removed in the 1st place15:08
falcojrthat code is over 10 years old, so any of the current devs will probably be guessing as to the answer15:08
minimalI've looked at the update-ca-certificates manpage for both Alpine and Debian and they both agree on how update-ca-certificates behaves. I expect Ubuntu behaves in the same way.15:10
minimalI'm not sure about RHEL, I'll have to read up on it15:10
minimalok, I was going in raise a PR to change behaviour for Alpine but thinking about it the same change in behaviour should also apply to Debian & Ubuntu. Once I figure out how RedHat behaves I'll think about the PR15:11
minimalseparate unrelated question - whilst working on a different issue I notice a c-i module is using deprecated options for a Unix utility (the utility indicates this on stdout), from checking that codebase those options were deprecated in (June?) 2014, would there be any objections to removing those CLI options from c-i's use of the command as they've been deprecated for more than 8 years now?15:14
falcojrminimal: : which utility are we talking about?15:43
minimalsfdisk15:51
minimalthe "--Linux" and "--unit" option15:52
minimalI spotted this which working on fixed another issue in cc_disk_setup15:52
minimalso was thinking of removing these options as part of a PR15:52
minimals/which/while/15:52
falcojryeah, I think it makes sense to remove them as long as we're keeping the same behavior15:53
minimalok, will do15:53
falcojrthanks!15:53
bittin_https://www.youtube.com/watch?v=MOmXqcRfpBI free Cloud Init course starting now17:00
shivayahi folks, is there a post-install cloud init file that I can take a look at? as in yaml with all the options I've manually selected during the instsall19:09
falcojrshivaya: Running "cloud-init query userdata" should give you that19:37
falcojrit will also be stored in /run/cloud-init/instance-data-sensitive.json (amid other keys)19:38
falcojrerhm...actually are you referring to the user data you passed into cloud-init, or something else?19:39
falcojrI was answering the question for user data19:39
minimalPython related question, looking here: https://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_ca_certs.py#L8420:07
minimalfor distro rhel, is the value of ca_cert_config then None? based on https://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_ca_certs.py#L2820:07
minimalor is it set to the value from DEFAULT_CONFIG?20:08
shivayathanks falcojr! 20:19
falcojrminimal: It will be None20:23
minimalfalcojr: that's what I though, so then the write_file later makes no sense for rhel: https://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_ca_certs.py#L15720:30
minimalI guess that's another thing for me to fix as I'm working on that module currently ;-)20:30
blackboxsw[ubuntu/lunar-proposed] cloud-init 22.4-0ubuntu4 (Accepted) upload accepted with tip of main. Contains bug fixes for (LP: #1844191, #1906849, #1992512)23:04
-ubottu:#cloud-init- Launchpad bug 1992512 in cloud-init "gateway4 and gateway6 have been deprecated in netplan" [High, Fix Committed] https://launchpad.net/bugs/199251223:04
-ubottu:#cloud-init- Launchpad bug 1844191 in cloud-init "azure advanced networking sometimes triggers duplicate mac detection" [Critical, Confirmed] https://launchpad.net/bugs/184419123:04
-ubottu:#cloud-init- Launchpad bug 1906849 in cloud-init "Support for metadata over IPv6" [Wishlist, Triaged] https://launchpad.net/bugs/190684923:04
blackboxswI'm syncing these fixes as well to our daily repo ppa:cloud-init-dev/daily. On Monday we'll discuss about expediting the release of 184419123:05
blackboxswas it stands Lunar cloudimages will contain all three fixes or features in short order.23:06
blackboxswas it stands Lunar cloudimages will contain all three fixes or features in short order as will ppa:cloud-init-dev/daily 23:06

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!