yum-updatesd – No network available

Yum-updatesd reports “Check for updates failed: No network available” and doesnt find any updates.
It appears that the Network manager doesnt report correctly online.

Name : yum-updatesd
Arch : noarch
Epoch : 1
Version : 0.9
Release : 11.fc15

Run yum in debug to check:
yum-updatesd –no-fork –oneshot –debug

Going to exec: [‘/usr/libexec/yum-updatesd-helper’, ‘–check’, ‘–network-fail‘, ‘–email’, ‘–email-from=xx.xx@gmail.com’, ‘–email-to=xx.xx@gmail.com’, ‘–smtp-server=localhost:25’, ‘–sendmail’, ‘–debug’]
Check for updates failed: No network available

Edit yum-updatesd to stop it appending –network-fail:

vim +/NM_ONLINE /usr/sbin/yum-updatesd

bus = dbus.SystemBus()
try:
o = bus.get_object(“org.freedesktop.NetworkManager”, “/org/freedesktop/NetworkManager”)
# if o.state() != NM_ONLINE:
# args.append(“–network-fail”)
except dbus.DBusException:
pass

Comment out the !if ostate() != NM_ONLINE and the args.append(“–network-fail”)

More details can be found in the RH bugzilla, although it is meant to be fixed it appears it still has problems with Network Manager even in the later version (0.9.11.fc15)

https://bugzilla.redhat.com/show_bug.cgi?id=709315