Can't pause the download

Bug #1237360 reported by Sebastien Bacher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
Critical
Barry Warsaw
system-image (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Using the image "86":

- go to system-settings
- open the upgrade panel
- start downloading the current image
- click on the pause button

nothing happens, the download is not pause

The UI works fine with the mock.

Trying to pause with a command line call doesn't work either
"gdbus call --system -d com.canonical.SystemImage -o /Service -m com.canonical.SystemImage.PauseDownload"

that seems to indicator the issue is with the service

Barry Warsaw (barry)
tags: added: client
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-image (Ubuntu):
status: New → Confirmed
Revision history for this message
Gema Gomez (gema) wrote :

This also happens on image 89.

tags: added: avengers qa-touch rls-s-incoming
Changed in system-image (Ubuntu):
importance: Undecided → High
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Triaged → In Progress
importance: High → Critical
assignee: nobody → Barry Warsaw (barry)
milestone: none → 1.9
Changed in system-image (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

PauseDownload is currently no-op'd, but it should be easy to plumb this through to the download manager. We also need to plumb the u-d-m's paused signal through out through s-i's UpdatePaused signal. (Ideally, system-settings would talk directly to u-d-m, but IIRC didrocks wanted to keep things simple there and only talk to one service).

There's one tricky bit. Let's say the download is paused for longer than 10 minutes. If that happens, system-image-dbus will exit and lose its state (retaining state after a re-invocation is part of another bug, but we'll see if that gets fixed before saucy, since it's complicated).

We could suspend exiting the main loop when there's a download paused, but then we run the risk of keeping s-i-dbus alive effectively forever, since there's no other event that would cause it to exit. If we do that, I think we have to cancel any existing paused downloads.

Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :

Seems to work with 1.9.1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-image - 1.9.1-0ubuntu1

---------------
system-image (1.9.1-0ubuntu1) saucy; urgency=low

  * New upstream release:
    - LP: #1240105 - Further refinement of permission checking/fixing.
    - LP: #1240106 - Work around some failures in DEP 8 tests.
  * d/control: Point Vcs-Bzr and Vcs-Browser to the packaging branch.
  * d/system-image-common.dirs: Add /var/log/system-image.
  * d/rules, d/tests/unittests: Set $SYSTEMIMAGE_REACTOR_TIMEOUT to 1200
    seconds to avoid random timeout errors.
  * d/system-image-common.postinst, system-image-common.postrm: debhelper
    scripts for ensuring the proper permissions and for purging directories.
 -- Barry Warsaw <email address hidden> Tue, 15 Oct 2013 11:23:54 -0400

Changed in system-image (Ubuntu):
status: In Progress → 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.