Bug 703510 - yum-updatesd not reporting updates available
Summary: yum-updatesd not reporting updates available
Keywords:
Status: CLOSED DUPLICATE of bug 709315
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-updatesd
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: James Antill
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-10 14:49 UTC by Gene Stuckey
Modified: 2012-02-18 18:00 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-18 18:00:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch (480 bytes, patch)
2011-05-10 14:49 UTC, Gene Stuckey
no flags Details | Diff

Description Gene Stuckey 2011-05-10 14:49:15 UTC
Created attachment 498042 [details]
patch

Description of problem:
yum-updatesd is no longer reporting updates available.

Version-Release number of selected component (if applicable):
yum-updatesd-0.9-4.fc15.noarch
NetworkManager-0.8.999-1.fc15.i686

How reproducible:
Always

Steps to Reproduce:
1. yum install yum-updatesd
2. /usr/sbin/yum-updatesd --debug --oneshot
  
Actual results:
$  /usr/sbin/yum-updatesd --debug --oneshot
Going to exec: ['/usr/libexec/yum-updatesd-helper', '--check', '--network-fail', '--apply', '--syslog', '--syslog-level=WARN', '--syslog-facility=DAEMON', '--syslog-ident=yum-updatesd', '--debug']
Check for updates failed: No network available


Expected results:
$  /usr/sbin/yum-updatesd --debug --oneshot
Going to exec: ['/usr/libexec/yum-updatesd-helper', '--check', '--apply', '--syslog', '--syslog-level=WARN', '--syslog-facility=DAEMON', '--syslog-ident=yum-updatesd', '--debug']
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up and reading Presto delta metadata
Processing delta metadata
Download delta size: 14 M
...

Additional info:
It seems to be related to:
  o = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager")

It works if I change that to:
  o = bus.get_object("org.gnome.network_manager_applet", "/org/gnome/network_manager_applet")

Comment 1 igor.redhat@gmail.com 2011-09-28 04:52:30 UTC
Confirming that the same issue exists in F16 Alpha and that the above change indeed fixes it. Bug 709315 is a dupe of this one, btw.

Comment 2 Martin Fahrendorf 2012-01-04 11:18:11 UTC
This ist still not fixed in F16. org.freedesktop.NetworkManager state() reports a value of 70 if a global connection is available (instead of 4 as in current yum-updatesd).

So changing the if statement after the bus.get_object() method to something like

if o.state() < NM_STATE_CONNECTED_LOCAL:

where NM_STATE_CONNECTED_LOCAL has a value of 50 (according to networkmanager documentation) fixes this as well.

moving to org.gnome.network_manager_applet may be not the right way to do, as this applet is not always running.

Comment 3 Gregor Tätzner 2012-02-18 18:00:14 UTC

*** This bug has been marked as a duplicate of bug 709315 ***


Note You need to log in before you can comment on or make changes to this bug.