Bug 709315

Summary: stopped working with f15 update
Product: [Fedora] Fedora Reporter: Neal Becker <ndbecker2>
Component: yum-updatesdAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gene-redhat, james.antill, katzj, long, major, richardfearn, stefan.kirrmann, tyler-redhat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-updatesd-0.9-10.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-27 00:46:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neal Becker 2011-05-31 11:11:44 UTC
Description of problem:

Been using yum-updatesd forever.  After f15 update, it appears to have stopped working.  No errors.  Just no updates.

config is same as stock, but with all 'no' changed to 'yes'

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tyler Willingham 2011-07-27 04:02:36 UTC
I have been able to reproduce this. Using a procedure found in another bug report for yum-updatesd, I ran the following command:

$ sudo /usr/sbin/yum-updatesd --debug --oneshot 
Going to exec: ['/usr/libexec/yum-updatesd-helper', '--check', '--network-fail', '--download', '--deps', '--apply', '--email', '--email-from=root', '--email-to=willow@localhost', '--smtp-server=localhost:25', '--sendmail', '--debug']
Check for updates failed: No network available

It appears that the yum-updatesd program was not updated for NetworkManager 0.9, which changed its dbus interface.

I temporarily commented out lines 154 and 155 in /usr/sbin/yum-updatesd so it appears like this:

    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

The above command then completed updates to the system.

Comment 2 Richard Fearn 2011-11-15 14:15:28 UTC
/usr/sbin/yum-updatesd checks the value returned from the state() method of the NetworkManager D-Bus interface. If the value doesn't match NM_ONLINE, it's assumed that there is no network connection.

NM_ONLINE is defined in /usr/sbin/yum-updatesd:

  NM_ONLINE = 3

However the value returned from state() changed between 0.8 and 0.9:

http://projects.gnome.org/NetworkManager/developers/api/08/spec-08.html#type-NM_STATE

http://projects.gnome.org/NetworkManager/developers/api/09/spec.html#type-NM_STATE

NM_ONLINE should now be 70, not 3.

Comment 3 Stefan Kirrmann 2011-12-21 13:10:57 UTC
Any news on this? Doesn't work for Fedora 16 either. Always have to patch yum-updatesd for myself.

Comment 4 Fedora Update System 2012-02-17 19:29:45 UTC
yum-updatesd-0.9-9.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/yum-updatesd-0.9-9.fc15

Comment 5 Fedora Update System 2012-02-17 19:31:36 UTC
yum-updatesd-0.9-9.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/yum-updatesd-0.9-9.fc16

Comment 6 Gregor Tätzner 2012-02-18 18:00:14 UTC
*** Bug 703510 has been marked as a duplicate of this bug. ***

Comment 7 Gregor Tätzner 2012-02-18 18:01:14 UTC
*** Bug 789788 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2012-02-19 01:56:52 UTC
Package yum-updatesd-0.9-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-updatesd-0.9-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1975/yum-updatesd-0.9-10.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-02-27 00:46:44 UTC
yum-updatesd-0.9-10.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-02-27 00:47:57 UTC
yum-updatesd-0.9-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.