/srv/irclogs.ubuntu.com/2021/10/12/#ubuntu-devel.txt

utkarsh2102vorlon: apologies for not checking it thoroughly and thanks for fixing it! \o/00:59
utkarsh2102aaah, wrong place. :)01:00
=== tomreyn_ is now known as tomreyn
juliankhi seb128, did you poke packagekit and glib a bit more?08:06
seb128juliank, no, I was about to resume on that now, just tried the hirsute glib and noted that it didn't fix the issue08:07
juliankack08:07
juliankI did read glib code a bit and it seems it has 3 network montiros08:07
juliank* monitors08:07
juliankLike one network-manager one, one netlink one, and a dummy08:07
juliankI feel like maybe we need to order packagekit After=NetworkManager.service to make sure it starts after that and picks up the correct one08:08
juliankhmm it should already, though by network-online.target?08:10
juliankseb128: OK, I mean, we only have Wants=network-online.target, we probably need After=network-online.target too08:10
juliankbecause right now, there is no ordering between the two08:11
juliankupdate-notifier has After=network.target network-online.target systemd-networkd.service NetworkManager.service connman.service08:12
juliankI think there is a glib bug in that it should just discover all that automatically but ugh, this might do08:14
seb128juliank, if that works, I'm unclear why it's not able to change its status to online when the system gets online, also it was working until impish without that so I'm not sure what changed08:14
juliankseb128: subtle ordering changes maybe?08:14
juliankseb128: Though, I looked at the boot plot, and NetworkManager started before packagekit (but packagekit started before network-online)08:16
juliankanyway it's highly problematic if glib does not pick up changes if started too early08:17
juliankI'll go boot the other laptop and see what it does :D08:18
seb128I would be surprised if glib wasn't picking status changes08:18
juliankseb128: Presumably it initialized the wrong network monitor?08:19
seb128could be08:19
julianklet's gdb attach and see what it does :D08:19
juliankbreak pk_backend_is_online and step08:21
juliankor break g_network_monitor_get_network_available really08:21
juliankIt seems to call g_network_monitor_nm_get_property08:23
juliankseb128: Further dug into it, and while proxy_signal_cb() is called on PropertiesChanged on network-manager changes, it never gets to where that calls sync_properties(), so it never updates its cached values08:37
juliankI can't figure out where it exits though08:38
seb128so sounds like a bug on the packagekit side, the cached values are there?08:38
juliankseb128: no, that's all in glib, all in gnetworkmonitornm.c to be precise08:40
juliankseb128: So it seems to listen for PropertiesChanged on the freedesktop interface on the network manager path, but it only gets the NetworkManager interface notifications08:41
juliankI only get DeviceAdded/DeviceRemoved/StateChanged on interface=org.freedesktop.NetworkManager08:41
juliankDon't see us being called for the interface=org.freedesktop.DBus.Properties PropertiesChanged signals08:41
juliankhence it exits early08:42
juliankseb128: It kind of makes sense, we only request the org.freedesktop.NetworkManager interface08:42
juliankseb128: So glib never sees any state changes08:44
seb128juliank, hum :/08:48
seb128juliank, maybe you could open an upstream glib bug see what they think?08:49
juliankseb128: I can also come up with a patch I think08:50
seb128juliank, 👍08:50
juliankseb128: but filed as https://gitlab.gnome.org/GNOME/glib/-/issues/2505 :)08:57
ubottuIssue 2505 in GNOME/glib "g_network_monitor_nm never updates on connection change (listens for signal on wrong dbus interface)" [Opened]08:57
juliankseb128: If you have an older machine where it seems to work, turn it offline, and see if it sees that it became offline?08:58
juliankseb128: It seems NetworkManager used to emit its own PropertiesChanged signal, but no longer does so.08:59
juliankDEPRECATED. Use the standard "PropertiesChanged" signal from "org.freedesktop.DBus.Properties" instead which exists since version NetworkManager 1.2.0.09:00
juliankI guess it is gone now09:00
seb128juliank, https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/85309:01
ubottuMerge 853 in NetworkManager/NetworkManager "[th/dbus-drop-legacy-properties-changed] core: drop deprecated PropertiesChanged D-Bus signal (API break)" [Merged]09:01
seb128juliank, well done on figuring out the issue!09:02
juliankseb128: this patch seems to work https://paste.ubuntu.com/p/GVfshpPZFj/09:15
seb128juliank, the patch makes sense to me09:15
seb128shrug GNOME for not noticing that issue earlier :/09:16
juliankseb128: I think it doesn't actually work, it just falls back to netlink monitor, while it seems to work overall, I don't get any of the NM backend callbacks called09:18
seb128oh :(09:18
juliankseb128: Seems I need two proxies, oh well09:35
juliankbecause the Connectivity property can be retrieved from the NetworkManager iface09:36
juliankseb128: I think this does it10:00
juliankhttps://paste.ubuntu.com/p/FTbPfbsNmn/10:00
seb128juliank, we should do an upstream MP so we get a proper review before landing the patch10:01
juliankseb128: on it10:02
seb128juliank, thanks10:02
julianksil2100: So I did add https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1946196 to 21.10 milestone, people can't install software graphically without it :(10:14
ubottuLaunchpad bug 1946196 in packagekit (Ubuntu) "Additional Drivers fails with pk-client-error-quark: Cannot download packages whilst offline (257)" [High, In Progress]10:14
julianksil2100: there is question whether not being able to install software is a release blocker or notz10:17
juliankseb128: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/229110:17
ubottuMerge 2291 in GNOME/glib "gio: Stop using deprecated NM PropertiesChanged signal" [Opened]10:17
seb128juliank, thanks10:18
seb128on release blocker or not, today snap-store fails to install debsn  software-properties fails to install drivers, totem fails to install codecs10:19
sil2100juliank: eeek10:20
sil2100seb128: eeek10:21
sil2100I feel like I need more coffee for all of this10:21
=== ginggs_ is now known as ginggs
sil2100seb128: what is the bug for the snap-store failing to install debs? Since we had LP: #1944768 but from what I see people report it as fixed?10:41
ubottuLaunchpad bug 1944768 in snap-store-desktop "snap-store hangs building catalog on first run (impish)" [Critical, Confirmed] https://launchpad.net/bugs/194476810:41
sil2100juliank: so that affects all software installation via our GUI?10:41
julianksil2100: Yeah, maybe not upgrades, as they still use aptdaemon10:42
juliankI don't know if aptdaemon does online checks :D10:42
julianksil2100: Oh, I think aptdaemon has the same bug basically10:43
julianksil2100: It just doesn't start during boot and exits, so it will usually start with the correct state10:43
sil2100juliank: once you get some more eyeballs on your fix, could you crank up a fix upload for impish?10:44
julianksil2100: that's the goal, yes10:44
seb128sil2100, unsure if it's reported, I just noticed yesterday while testing that it was also impacting snap-store, basically any user of packagekit10:46
sil2100The day is getting better every minute!10:48
juliankSo good news on aptdaemon, it does not actually use its monitoring code10:50
juliankit was only there for the packagekit compat layer that was dropped a while ago10:50
=== genii-core is now known as genii
=== sem2peie- is now known as sem2peie
vorlonsil2100: hi, are you able to chair this TB meeting?19:03
sil2100Hey! Ouchy, can we move me to the next one, if possible?19:09

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