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