Bug 1300057
Summary: | packagekit thinks the system is offline even though it is not | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | marc-schmitzer |
Component: | PackageKit | Assignee: | KDE SIG <kde-sig> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | colonelpanic42, innocenti.mauro, jonathan, kde-sig, klember, marc-schmitzer, rdieter, rhughes, smparrish |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-19 18:40:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
marc-schmitzer
2016-01-19 20:43:53 UTC
PackageKit daemon thinks you're offline for some reason I think, to verify, what's the output from: $ pkmon ?? For me, it returns, Transactions: [none] daemon connected=1 network status=wifi (then I press CNTL-C to interrupt the monitoring) Hi, thanks for the quick follow-up! Seems you're right about PackageKit. $ pkmon Transactions: [none] daemon connected=1 network status=offline Looking through the journal, it seems that the network connection comes up *after* PackageKit has been started. OK, reassigning to PackageKit. Interesting, I'd have hoped/assumed PK would be smart enough to notice when network goes up and down (regardless of it's state when started). I think I can confirm this is a sequence issue. Connecting the WiFi via nmcli from a VT before logging into KDE makes pk-updates work. I think you meant to reassign this to packagekit? I'll do it now. I've done some more digging/debugging: * Networkmanager behavior looks good: the StateChanged D-Bus signal is emitted with value 70 when the WiFi has fully connected. * PK does correctly change from online to offline if I get it to online as described in #4 and then disconnect the WiFi. * Running packagekitd with --verbose seems to show that pk receives the NetworkManager signals, but thinks that the connection is not the default: packagekitd[8084]: 20:23:08 PackageKit is_default: 0 packagekitd[8084]: 20:23:08 PackageKit not default, skipping packagekitd[8084]: 20:23:08 PackageKit network state is offline packagekitd[8084]: 20:23:08 PackageKit emitting network-state-changed: offline (This block is repeated six seconds later for the same connection-up). * Checking manually with qdbus: $ qdbus --literal --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.ActiveConnections [Variant: [Argument: ao {[ObjectPath: /org/freedesktop/NetworkManager/ActiveConnection/6]}]] $ qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/ActiveConnection/6 org.freedesktop.NetworkManager.Connection.Active.Default true Maybe the Default property is not immediately set when pk handles the signal from NM? So, I've hacked up a python script that connects to NetworkManager via DBus. I can confirm that when the connection state goes to 70 (fully connected) there is an active connection, but the "Default" property is false. The connection object eventually emits the "PropertiesChanged" signal with "Default" true. It seems that PackageKit recently revamped its network code (commit 827bb2b), so maybe that will fix that. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. I'm running Fedora 24 and this is still an issue on my system. Me too: Fedora 24 with wired network connection as this same issue. |