Add support for channel.ini file

Bug #1214009 reported by Barry Warsaw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
High
Barry Warsaw
system-image (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

We want to move the current [system]channel and [service]base|http_port|https_port variables out of client.ini and into a separate ini file. The reason for this is that channel/base are channel-specific, but client.ini is stored in the rootfs as part of the system-image package, so it's shared across all channels. This latter is also read-only.

The idea then is essentially to move the [service] section out of client.ini and into /etc/system-image/channel.ini, along with the build-number current contained in /etc/ubuntu-build. After this bug is closed, the client will ignore /etc/ubuntu-build.

Here is the format for /etc/system-image/channel.ini:

[service]
base: system-image.ubuntu.com
http_port: 80
https_port: 443
channel: daily
build_number: 20130819

(you can use = instead of : if you like)

client.ini will need a bit of shuffling too.

* remove [system]channel
* move [service]threads to [system]
* move [service]timeout to [system]

Note that the latter two will go away anyway once the d/l service integration is completed.

Tags: client
Revision history for this message
Stéphane Graber (stgraber) wrote :

I have now added channel.ini to the generate_version_tarball code, so any new image will now contain it.

Changed in ubuntu-system-image:
assignee: Stéphane Graber (stgraber) → Barry Warsaw (barry)
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: none → 1.1
status: Triaged → In Progress
status: In Progress → Triaged
milestone: 1.1 → none
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: none → 1.2
status: Triaged → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

Note that channel.ini is optional, and MUST live next to the chosen regular ini file. In practice, this means /etc/system-image/channel.ini lives next to /etc/system-image/client.ini, but be aware that if you use -C, the channel.ini file must live next to that configuration file.

If channel.ini does not exist, the old /etc/ubuntu-build file will be consulted, and the old defaults will be used. (I.e. it is not an error for channel.ini to be missing).

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
Barry Warsaw (barry)
Changed in system-image (Ubuntu):
status: New → 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.