Document -b 0 needed to switch channels

Bug #1243612 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
Low
Barry Warsaw
system-image (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

trying to upgrade from saucy-proposed to trusty-proposed with system-image-cli tells me i'm up to date instead of upgrading to trusty

Tags: client
Revision history for this message
Oliver Grawert (ogra) wrote :

root@ubuntu-phablet:/# system-image-cli -i
current build number: 100
device name: mako
channel: saucy-proposed
last update: 2013-10-17 11:31:17
version version: 100
version ubuntu: 20131017
version device: 20131015
root@ubuntu-phablet:/# system-image-cli -c trusty-proposed -v
[systemimage] Oct 23 09:19:10 2013 (22849) running state machine [trusty-proposed/mako]
[systemimage] Oct 23 09:19:10 2013 (22849) Looking for blacklist: https://system-image.ubuntu.com/gpg/blacklist.tar.xz
[systemimage] Oct 23 09:19:10 2013 (22849) Requesting group download:
 https://system-image.ubuntu.com/gpg/blacklist.tar.xz -> /var/lib/system-image/keyring.tar.xz
 https://system-image.ubuntu.com/gpg/blacklist.tar.xz.asc -> /var/lib/system-image/keyring.tar.xz.asc

[systemimage] Oct 23 09:19:10 2013 (22849) Running group download reactor
[systemimage] Oct 23 09:19:11 2013 (22849) Group download reactor done
[systemimage] Oct 23 09:19:11 2013 (22849) Local blacklist file: /var/lib/system-image/blacklist.tar.xz
[systemimage] Oct 23 09:19:11 2013 (22849) Looking for: https://system-image.ubuntu.com/channels.json
[systemimage] Oct 23 09:19:11 2013 (22849) Requesting group download:
 https://system-image.ubuntu.com/channels.json -> /tmp/system-image-am5nyt/channels.json
 https://system-image.ubuntu.com/channels.json.asc -> /tmp/system-image-am5nyt/channels.json.asc

[systemimage] Oct 23 09:19:11 2013 (22849) Running group download reactor
[systemimage] Oct 23 09:19:12 2013 (22849) Group download reactor done
[systemimage] Oct 23 09:19:12 2013 (22849) Local channels file: /tmp/system-image-am5nyt/channels.json
[systemimage] Oct 23 09:19:12 2013 (22849) got channel: trusty-proposed
[systemimage] Oct 23 09:19:12 2013 (22849) found channel/device entry: trusty-proposed/mako
[systemimage] Oct 23 09:19:12 2013 (22849) Requesting group download:
 https://system-image.ubuntu.com/trusty-proposed/mako/index.json -> /tmp/system-image-am5nyt/index.json
 https://system-image.ubuntu.com/trusty-proposed/mako/index.json.asc -> /tmp/system-image-am5nyt/index.json.asc

[systemimage] Oct 23 09:19:12 2013 (22849) Running group download reactor
[systemimage] Oct 23 09:19:12 2013 (22849) Group download reactor done
[systemimage] Oct 23 09:19:13 2013 (22849) Already up-to-date
root@ubuntu-phablet:/# system-image-cli -i
current build number: 100
device name: mako
channel: saucy-proposed
last update: 2013-10-17 11:31:17
version version: 100
version ubuntu: 20131017
version device: 20131015
root@ubuntu-phablet:/#

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

I'm updating the manpage and s-i-cli --help to make it clearer that you have to use -c and -b 0 to switch channels.

Changed in ubuntu-system-image:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Barry Warsaw (barry)
milestone: none → 2.0
tags: added: client
Revision history for this message
Barry Warsaw (barry) wrote :

Even though I've closed this bug, I had a thought.

I could add `system-image-cli --switch trusty` which would be exactly equivalent to `system-image-cli --channel trusty --build 0`. It would be just a convenience option. It would save you a few characters, but more importantly, it would make the intended operation more clear (and would be documented as such in the --help and manpage).

If you think this would be useful, let me know. Otherwise, we'll just leave things the way they are.

summary: - system-image-cli does not allow to switch from saucy-proposed to trusty-
- proposed
+ system-image-cli support for switching channels
Revision history for this message
Loïc Minier (lool) wrote : Re: system-image-cli support for switching channels

That's a fair approach; also, would it would be useful to expose this in the UI somehow.

Would also be good to have a way to express that one wants a full (--build 0 does this), aka clean reinstall, but that would be command-line only.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1243612] Re: system-image-cli support for switching channels

On Nov 08, 2013, at 09:04 AM, Loïc Minier wrote:

>That's a fair approach; also, would it would be useful to expose this in
>the UI somehow.

LP: #1249347 now tracks this.

>Would also be good to have a way to express that one wants a full
>(--build 0 does this), aka clean reinstall, but that would be command-
>line only.

`--filter full` should do this.

summary: - system-image-cli support for switching channels
+ Document -b 0 needed to switch channels
Barry Warsaw (barry)
Changed in system-image (Ubuntu):
status: New → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
Barry Warsaw (barry)
Changed in system-image (Ubuntu):
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.