/srv/irclogs.ubuntu.com/2022/06/01/#ubuntu-server.txt

=== scoobydoo_ is now known as scoobydoo
=== admin07 is now known as admin0
=== scoobydoo_ is now known as scoobydoo
=== scoobydoo_ is now known as scoobydoo
Max[m]123456Is there a specific reason, why Ubuntu choose to use dracut?08:44
gcdsHi, maybe someone could help me with ubuntu server netplan stuff, I am going bald from trying to figure out what is wrong. Context: I have network 10.93.0.0/16 the server has a bridge with one interface and static IP address of 10.93.2.2/16, everything generates and works but for some reason I can't access anything higher than 10.93.127.254, I10:02
gcdstried adding a static route for 10.93.0.0/16 via 10.93.0.1 but didn't help, but then I removed default generated route which looked suspicious to me (the 10.93.0.0/16 via 10.93.2.2 in the paste) and it worked then, I would consider it's done but I know it's not permanent so maybe can help me figure out whats wrong with netplan so I would not need10:02
gcdsto make changes after each reboot? https://paste.ubuntu.com/p/kPrPBwPQBx/10:03
athosmorning! Could anyone please import php-cache-integration-tests into git ubuntu? :)10:15
athosCc rbasak sergiodj ^10:16
rbasakMax[m]123456: Ubuntu doesn't use dracut?10:44
rbasakathos: done10:47
athosrbasak: thanks!10:48
Max[m]123456<rbasak> "Max: Ubuntu doesn't use dracut?" <- The initrd of the installer sure looks like it does10:51
rbasakMax[m]123456: AIUI Ubuntu uses update-initramfs which isn't dracut. Are you really asking why Ubuntu uses an initramfs at all?10:53
Max[m]123456Well, I know it needs to use one. But what I see inside the installer does not look similar to the initramfs, Ubuntu creates after the installation.11:02
Max[m]123456I'm just asking about inconsistencies11:02
ahasenacksergiodj: kanashiro hey, are you on debconf-discuss@? Did you see the yubikey email?12:41
utkarsh2102ahasenack: you need one? :)14:21
ahasenackI expensed one14:21
ahasenackso I'm good14:22
ahasenackbut you guys should take the opportunity and get one if possible, and if you are going to debconf14:22
utkarsh2102yes! 14:23
utkarsh2102I got one in 2019. 14:23
blackboxswhi folks, packaging opinion question for apt purge behavior: for packages whose runtime emits configuration :wq16:46
blackboxswwow, sorry. will try again16:46
patdk-lapirc isn't vi :)16:47
blackboxsw:) hi folks, packaging opinion for apt purge behavior: for packages where the runtime emits unpackaged config files into other service config directories, should apt purge remove these runtime artifacts or leave the vestigial config content around?16:48
rbasakIt depends :-P16:49
blackboxswI ask as cloud-init emits network configuration potentially into /etc/netplan or /etc/network/interfaces.* parts directories which it doesn't package itself.16:49
rbasakAs an extreme example, consider vi. I use it to adjust system configuration in /etc, and when (if!) I purge vi, I don't expect those changes to be reverted.16:49
rbasakSo assuming you're asking about ua, similarly if the user asks ua to make a system change, I'd expect the change to remain after it is purged, I think. Where that makes sense under the circumstances.16:50
blackboxswbut runtime will decide to dump those conf files into those directories depending on what version of a distro you are running.16:50
blackboxswin the event that someone wants to purge cloud-init, should the cloud-init package care about augemented configuration that dynamically got created by the initial runtime.16:51
rbasakRight, so for cloud-init, I think it's much the same. Its task is to set up networking, and so perhaps the networking it set up should remain if it's gone.16:51
ahasenackagreed16:51
blackboxswThese network config artifacts would be known to cloud-init16:51
ahasenackit's not cloud-init configuration, it just was done by cloud-init16:51
rbasakOTOH, if its *presence* is supposed to keep networking going, then removing the package might be expected to remove it. 16:51
rbasakSo it's a question of which of those two cases fits.16:52
blackboxswahasenack: right. it's an artifact of cloud-init running. it's not a static config file that cloud-init delivers in the cloud-init.dev16:52
blackboxswahasenack: right. it's an artifact of cloud-init running. it's not a static config file that cloud-init delivers in the cloud-init.deb16:52
blackboxswand right, I'm concerned in this particular case that removing such a config file could lead to unexpected results if someone restarts the network service after the purge16:53
blackboxswBut it just raised a general quesiton in my mind: should a deb package that emits config content to other services generally cleanup anything it knows it could have emitted? And I guess the answer is case-by-case16:54
rbasakI think it's case-by-case to work out which of these two categories the case fits into.16:54
ahasenackhere is another consideration: if that other package (that got its config from cloud-init) is removed, will it remove this config file that cloud-init emitted?16:54
rbasakUser expectation of package presence vs. the package as a tool to enact configuration changes.16:55
ahasenackconsider .d directories16:55
rbasakFor most packages it's package presence, but cloud-init, ua and vim are all special cases.16:55
blackboxswandreas: `dpkg: warning: while removing netplan.io, directory '/etc/netplan' not empty so -16:56
blackboxswnot removed `16:56
blackboxswyeah unexpected config files left around :)16:56
ahasenackwas that a purge?16:56
blackboxswahasenack: yep16:56
ahasenackbut that doesn't break a system16:57
ahasenackremoving the netplan config generated by cloud-init just because cloud-init was removed might break the system16:57
blackboxswrbasak: and right cloud-init is a tool to provide config changes. the use-case for using it, and then purging it is "interesting" to say the least16:57
ahasenackthis is the exercise to be made16:57
rbasakIt's also pretty rare to want to purge cloud-init16:59
rbasakI have seen some packages debconf prompt at purge time to ask the question if associated data (eg. in /var) should be deleted also.17:00
rbasakSo that's a pattern you could use - and maybe default it to the safe option of not deleting those files.17:00
rbasakBut I suppose it all depends on why you're asking the question :)17:01
sdezielI've often purged cloud-init... I was being lazy and wanted my edits to files created by cloud-init to persist through reboots without having cloud-init resetting them17:02
blackboxswRight, my thoughts are I don't want cloud-init to do this by default because it's risky from the standpoint of someone using a system, and purging cloud-init, and expecting it to keep working. The removal of something as critical as the current network configuration is more likely to lead people down a path than leaving it in place.17:02
blackboxswsdeziel: ok that is a good perspective to have here, thanks. As someone can certainly be sure if cloud-init is purged it's not going to do anything funky on later boots.17:03
sdezielblackboxsw: and in those cases, I appreciated the fact that artifacts stayed after the purge ;)17:04
blackboxsw.... and it's hard to discover the  `sudo touch /etc/cloud/cloud-init.disabled` or other mechanisms to disable cloud-init across reboots. So someone would certainly be sure if cloud-init was no longer there.18:23
kanashiroahasenack, thanks for the reminder about the yubikey, I just sent an email requesting that18:58
ahasenack\o/18:58
kanashiroahasenack, the one you got is Yubikey version 4, USB A ?18:59
patdk-lapI have v4 and v5, really like v5 a lot19:00
ahasenackno, version 5, NFC, usb-c19:00
ahasenackyeah, grab v519:00
patdk-lapif you don't need nfc/cellphone usage of it, v4 is fine19:00
ahasenackv4 has no FIDO2 support19:00
ahasenacknfc is not needed, I think there are 5s without nfc19:00
patdk-lapoh? I must have forgot about fido219:00
ahasenackfido (1) is supported by 419:00
ahasenackhere in Brazil the 5C/NFC costed me about €9019:01
patdk-lapno idea about brazil, but I know india has some insane import taxes around well, importing anything, expecially IT19:01
ahasenackyeah, here it's 60%, including shipping costs19:02
ahasenackso if the key costs, say, U$ 50, and U$ 20 for shipping, amounting to U$ 70, you pay 70*1.619:03
sarnold*ouch*19:05
andolhttps://www.yubico.com/support/shipping-and-buying-information/resellers/ might be an option, in regards to shipping costs, etc.19:06
ahasenackoh, good to know, https://kriptobr.com/ actually has good prices19:08
patdk-laphmm, that is worse than india, 42% including shipping19:09
ahasenackabout the same price I got mine from somewhere else, via amazon.com.br19:09
patdk-lapdon't really get why shipping is included, other than the ovious one19:09
ahasenackhttps://kriptobr.com/produto/yubikey-5cnfc-2fa-fido-fido2/ is the one I got, I paid R$ 464,0019:09
patdk-laphttps://kriptobr.com/produto/yubikey5c/19:10
patdk-lapthe ones I use19:10
sergiodjahasenack: thanks for the pointer.  today's been crazy, but I will send an email about the yubikeys for sure21:10

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