Merge lp:~gmb/maas/hwe-docs into lp:~maas-committers/maas/trunk

Proposed by Graham Binns
Status: Merged
Approved by: Graham Binns
Approved revision: no longer in the source branch.
Merged at revision: 2234
Proposed branch: lp:~gmb/maas/hwe-docs
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 89 lines (+85/-0)
1 file modified
docs/hardware-enablement-kernels.rst (+85/-0)
To merge this branch: bzr merge lp:~gmb/maas/hwe-docs
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+214476@code.launchpad.net

Commit message

Add documentation for using HWE kernels. Previously, there was no such documentation.

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :
Download full text (5.2 KiB)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 review: approve

Good work, thanks.

On 07/04/14 17:53, Graham Binns wrote:
> Graham Binns has proposed merging lp:~gmb/maas/hwe-docs into
> lp:maas.
>
> Commit message: Add documentation for using HWE kernels.
> Previously, there was no such documentation.

lol? :)

> === added file 'docs/hardware-enablement-kernels.rst' ---
> docs/hardware-enablement-kernels.rst 1970-01-01 00:00:00 +0000 +++
> docs/hardware-enablement-kernels.rst 2014-04-07 07:50:31 +0000 @@
> -0,0 +1,77 @@ +================================= +Using
> hardware-enablement kernels +================================= +
> +MAAS allows you to use hardware enablement kernels when booting
> nodes +that require them. + +What are hardware-enablement kernels?
> +------------------------------------- + +Brand new hardware gets
> released all the time. We want that hardware to +work well wih
> Ubuntu and MAAS, even if it was released after the latest +release
> of MAAS or Ubuntu. Hardware Enablement (HWE) is all about making
> +keeping pace with the new hardware.

s/keeping//

?

> + +Ubuntu's solution to this is to offer different kernels for
> different +users.

I think this should say "offer newer kernels for older releases." See
below.

> There are at least two kernels on offer for Ubuntu releases: the
> +"generic" kernel -- i.e. the most stable kernel -- and the
> Hardware +Enablement kernel, which is the most recent kernel
> release.

Actually I think "generic" is just what was released in that series.

> + +There are separate HWE kernels for each release of Ubuntu,
> referred to +as ``hwe-<release letter>``. So, the 14.04 / Trusty
> Tahr HWE kernel is +called ``hwe-t``, the 12.10 / Quantal Quetzal
> HWE kernel is called +``hwe-q`` and so on.

I'm not sure this explains it adequately enough but I am struggling
through some brain fog at the moment so apologies for not offering a
more constructive response.

I think it needs to get across that users of older LTS releases are
able to use *newer* kernels from more recent releases. Hence, if you
are on 12.04 precise, to use a kernel from 13.04 saucy, you pick "hwe-s".

Also, I think it's worth adding a reference to
https://wiki.ubuntu.com/Kernel/LTSEnablementStack somewhere here. (or
if you can find a better reference, use it!)

> + +Importing hardware-enablement kernels
> +------------------------------------- + +Hardware-enablement
> kernels need to be imported to a cluster controller +before that
> cluster's nodes can use them. + +In order to import HWE kernels to
> a cluster controller you need to edit +the controller's
> ``/etc/maas/bootresources.yaml`` file, and update the +subarches
> that you want to import, like this:: + + boot: + storage:
> "/var/lib/maas/boot-resources/" + + sources: + - path:
> "http://maas.ubuntu.com/images/ephemeral-v2/releases/" +
> keyring: "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg" +
> selections: + - release: "precise" + arches:
> ["i386", "amd64"] + subarches: ["generic", "hwe-q",
> "hwe-r", "hwe-s", "hwe-t"] + labels: ["release"] + +Once
> you've updated ``bootresources.yaml``, you...

Read more...

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

The "making keeping" typo is still there!

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Oh also when fixed please backport this doc to 1.5.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Bugger, apologies, I should have just fixed that typo myself when fixing up the broken link to the wiki page, but completely forgot!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'docs/hardware-enablement-kernels.rst'
2--- docs/hardware-enablement-kernels.rst 1970-01-01 00:00:00 +0000
3+++ docs/hardware-enablement-kernels.rst 2014-04-07 10:37:05 +0000
4@@ -0,0 +1,85 @@
5+=================================
6+Using hardware-enablement kernels
7+=================================
8+
9+MAAS allows you to use hardware enablement kernels when booting nodes
10+that require them.
11+
12+What are hardware-enablement kernels?
13+-------------------------------------
14+
15+Brand new hardware gets released all the time. We want that hardware to
16+work well wih Ubuntu and MAAS, even if it was released after the latest
17+release of MAAS or Ubuntu. Hardware Enablement (HWE) is all about making
18+keeping pace with the new hardware.
19+
20+Ubuntu's solution to this is to offer newer kernels for older releases.
21+There are at least two kernels on offer for Ubuntu releases: the
22+"generic" kernel -- i.e. the kernel released with the current series --
23+and the Hardware Enablement kernel, which is the most recent kernel
24+release.
25+
26+There are separate HWE kernels for each release of Ubuntu, referred to
27+as ``hwe-<release letter>``. So, the 14.04 / Trusty Tahr HWE kernel is
28+called ``hwe-t``, the 12.10 / Quantal Quetzal HWE kernel is called
29+``hwe-q`` and so on. This allows you to use newer kernels with older
30+releases, for example running Precise with a Saucy (hwe-s) kernel.
31+
32+For more information see the `LTS Enablement Stack`_ page on the Ubuntu
33+wiki.
34+
35+.. _Hardware Enablement Stack:
36+ https://wiki.ubuntu.com/Kernel/LTSEnablementStack
37+
38+Importing hardware-enablement kernels
39+-------------------------------------
40+
41+Hardware-enablement kernels need to be imported to a cluster controller
42+before that cluster's nodes can use them.
43+
44+In order to import HWE kernels to a cluster controller you need to edit
45+the controller's ``/etc/maas/bootresources.yaml`` file, and update the
46+subarches that you want to import, like this::
47+
48+ boot:
49+ storage: "/var/lib/maas/boot-resources/"
50+
51+ sources:
52+ - path: "http://maas.ubuntu.com/images/ephemeral-v2/releases/"
53+ keyring: "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg"
54+ selections:
55+ - release: "precise"
56+ arches: ["i386", "amd64"]
57+ subarches: ["generic", "hwe-q", "hwe-r", "hwe-s", "hwe-t"]
58+ labels: ["release"]
59+
60+Once you've updated ``bootresources.yaml``, you can tell the cluster to
61+re-import its boot images using the ``maas`` command (You will need to
62+:ref:`be logged in to the API first <api-key>`)::
63+
64+ $ maas <profile-name> node-group import-boot-images \
65+ <cluster-controller-uuid>
66+
67+You can also tell the cluster controller to re-import its boot images by
68+clicking the ``Import boot images`` button for the cluster in the
69+``Settings`` page of the MAAS web UI.
70+
71+Using hardware-enablement kernels in MAAS
72+-----------------------------------------
73+
74+A MAAS administrator can choose to use HWE kernels on a per-node basis
75+in MAAS.
76+
77+The quickest way to do this is using the MAAS command, like this::
78+
79+ $ maas <profile-name> node update <system-id>
80+ architecture=amd64/hwe-t
81+
82+If you specify an architecture that doesn't exist (e.g.
83+``amd64/hwe-z``), the ``maas`` command will return an error.
84+
85+
86+It's also possible to use HWE kernels from the MAAS web UI, by visiting
87+the Node's page and click ``Edit node``. Under the Architecture field,
88+you will be able to select any HWE kernels that have been imported onto
89+that node's cluster controller.