provide a way to force a full image download via D-Bus

Bug #1410370 reported by James Hunt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Triaged
Low
Unassigned

Bug Description

It is possible to force a full system-image version to be downloaded (opposed to a delta image) via the command line using '-b':

$ sudo system-image-cli -b 0 -i

However, there doesn't seem to be a way to request this behaviour via the D-Bus api. This is required for snappy.

Tags: client
Revision history for this message
Barry Warsaw (barry) wrote :

Could you provide a little more rationale? Why does snappy need it? (Not that it would affect the implementation, but I'd like to know for scheduling purposes.)

tags: added: client
Revision history for this message
James Hunt (jamesodhunt) wrote :

There are 2 main reasons:

1) To test the system behaviour is consistent when given delta updates vs. full-system updates.
2) To simplify the logic when applying the very first system image update to the "other" partition (which is initially empty).
     If we force a full system update, we can:
    a) guarantee we get a fresh kernel + initrd for the "other" partition.
    b) avoid copying a -> b to then apply the downloaded delta to the "other" partition.

Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: New → Triaged
milestone: none → 3.0
importance: Undecided → High
Revision history for this message
Barry Warsaw (barry) wrote :

I wonder if it also makes sense to allow for a channel switch in the API that will be required to support a forced full download. If not, then let's open a new bug for that.

Revision history for this message
Barry Warsaw (barry) wrote :

James, unless this is still a priority, I'd like to defer it for later.

Changed in ubuntu-system-image:
importance: High → Low
milestone: 3.0 → none
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: none → 3.1
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: 3.1 → none
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.