Merge lp:~ken-vandine/ubuntu-system-settings/lp1489389 into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Needs review
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/lp1489389
Merge into: lp:ubuntu-system-settings
Prerequisite: lp:~mandel/ubuntu-system-settings/donot-query-on-error
Diff against target: 27 lines (+10/-0)
1 file modified
plugins/system-update/PageComponent.qml (+10/-0)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/lp1489389
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Jonas G. Drange (community) Needs Information
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+269331@code.launchpad.net

Commit message

[system-updates] If the system hasn't rebooted within 30 seconds of requesting to install a system update, retry.

Description of the change

If the system hasn't rebooted within 30 seconds of requesting to install a system update, retry.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

There's a “Rebooting” event from the SystemImage Service dbus object. I'm not sure what would prevent a reboot, but if it's because /sbin/reboot -f fails, we could check if the event has been fired and try again (after n seconds) if not? 30 secs seems random.

review: Needs Information
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Does this MP take into account bug 1260768 (if applicable)?

review: Needs Information
Revision history for this message
Sebastien Bacher (seb128) wrote :

Ken, could you reply to the comments there?

Revision history for this message
Ken VanDine (ken-vandine) wrote :

> There's a “Rebooting” event from the SystemImage Service dbus object. I'm not
> sure what would prevent a reboot, but if it's because /sbin/reboot -f fails,
> we could check if the event has been fired and try again (after n seconds) if
> not? 30 secs seems random.

onRebooting is emitted when Rebooting is emitted from SystemImage dbus service. I'm not sure what conditions would cause system-image-dbus from rebooting the device, but I have seen a simple reattempt work. We are getting the signal reliably, because the "Restarting" label is being displayed. When it fails to reboot, you are just stuck on the "Restarting" view.

30 seconds is rather arbitrary. Some devices (arale and krilling) reboot instantly, but I have seen mako take much longer, perhaps even 10 seconds. I'd be happy to shorten the timer if you like.

Revision history for this message
Ken VanDine (ken-vandine) wrote :

> Does this MP take into account bug 1260768 (if applicable)?

not applicable

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

1513. By Ken VanDine

[system-updates] If the system hasn't rebooted within 30 seconds of requesting
to install a system update, retry.

1512. By Ken VanDine

merged donot-query-on-error

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/system-update/PageComponent.qml'
2--- plugins/system-update/PageComponent.qml 2015-08-27 10:44:29 +0000
3+++ plugins/system-update/PageComponent.qml 2015-08-27 10:44:30 +0000
4@@ -234,6 +234,7 @@
5
6 onRebooting: {
7 installingImageUpdate.message = i18n.tr("Restarting…");
8+ rebootTimer.start();
9 }
10 }
11 Flickable {
12@@ -708,6 +709,15 @@
13 color: "#221e1c"
14 property string message: i18n.tr("Installing update…")
15
16+ Timer {
17+ id: rebootTimer
18+ onTriggered: UpdateManager.applySystemUpdate();
19+ triggeredOnStart: false
20+ repeat: false
21+ running: false
22+ interval: 30000
23+ }
24+
25 Column {
26 anchors.centerIn: parent
27 spacing: units.gu(2)

Subscribers

People subscribed via source and target branches