The package reporter should check the APT sources.list modification time

Bug #497723 reported by Free Ekanayaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Medium
Free Ekanayaka

Bug Description

When deciding whether to run the smart update wrapper or not, the
package reporter should check the modification time of the
/etc/apt/sources.list file. If it was modified in the last 30 minutes,
the reporter should force a smart update run (note that 30 minutes in
exactly the package reporter run interval).

This is a general user-experience improvement (shorter delay between the
change and the report), but it's especially important at the end of
release upgrades, where the sources.list gets modified and smart update
should be run as soon as possible, either by the package-reporter
started as consequence of the landscape-client service being updated and
restarted or by the release-upgrader process itself once it ends
(sometimes a race happens and one of the two wins).

 affects landscape-client
 status inprogress
 importance medium
 assignee free.ekanayaka
 milestone 1.4.3

summary: - The reporter should check the APT sources.list modification time
+ The package reporter should check the APT sources.list modification time
Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :

This ready to be reviewed.

tags: added: 1.5-release-upgrades review
Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

Small clear changes, +1

Revision history for this message
Thomas Herve (therve) wrote :

[1] It looks like test_wb_apt_sources_have_changed is present 2 times.

+1!

tags: removed: review
Changed in landscape-client:
status: In Progress → Fix Committed
tags: added: needs-testing
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Just a FYI, there is another new behaviour introduced here. A smart update will be forced every time landscape-client is restarted after a sources.list file is modified, until (PackageMonitor.run_interval)seconds go by.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Also, the time difference can be negative (think the file being modified while the clock is wrongly set to the future, then it's fixed and landscape-client runs). The impact is that smart update will be forcibly run with the package reporter for longer than anticipated.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Confirmed in staging.

tags: removed: needs-testing
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.