Merge lp:~gmb/maas/node-doc 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: 2260
Proposed branch: lp:~gmb/maas/node-doc
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 180 lines (+106/-9)
5 files modified
INSTALL.txt (+3/-3)
docs/hardware-enablement-kernels.rst (+2/-2)
docs/index.rst (+1/-0)
docs/installing-ubuntu.rst (+87/-0)
docs/nodes.rst (+13/-4)
To merge this branch: bzr merge lp:~gmb/maas/node-doc
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve
Review via email: mp+215634@code.launchpad.net

Commit message

Add documentation to cover the fast and default installers. Update existing documentation on nodes to include links to relevant resources (e.g. DHCP configuration), and explain enlistment prerequisites properly.

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) wrote :

Looks good but I've got a couple of remarks:

[0]

11 +To do it in the web user interface, go to the Clusters tab click the
12 +"Import boot images" button at the bottom of the list of cluster
13 +controllers.

I think there is an 'and' missing between 'Clusters tab' and 'click'.

[1]

59 +The default installer
60 +----------------------
61 +
62 +The default installer installs Ubuntu on a node in exactly the same way
63 +as you would install it manually. Installation is handled by the Debian
64 +installer. Answers to the questions asked by the installer are provided
65 +in a 'preseed' file. For more information on preseed files, see the
66 +:ref:`Additional Configuration <preseed>` page.

We should probably mention that "The default installer" is in fact "the Debian installer." (http://www.debian.org/devel/debian-installer/)

[2]

97 +The fast installer is much quicker than the default installer, but has
98 +the disadvantage that it's less easy to configure a node at install
99 +time, since the fast installer doesn't use a :ref:`preseed file
100 +<preseed>`. In addition, the packages that are initially installed on a
101 +fast-installed node need updating manually, since they are part of the
102 +installation image and not downloaded fresh from an apt repository.

For completeness, it's probably worth mentioning curtin with a link to https://launchpad.net/curtin.

[3]

106 +.. [1] Except where the node only supports manual power management.

Is there any kind of real support for that? IIRC there isn't so I'd favor removing that footnote.

[4]

I just noticed that there is a wrong reference of the location of the "Import boot images" button in docs/hardware-enablement-kernels.rst. But I think you are tackling this in a separate branch… mentioning it just in case.

[5]

41 +During deployment, MAAS is responsible for:

Shouldn't this be "Prior to deployment"? It's not entirely clear to me if these steps are part of the "deployment" phase or not. See [6].

[6]

34 +=====================================
35 +Deploying nodes and installing Ubuntu
36 +=====================================

Looks like installing Ubuntu is *not* part of the deployment phase here…? Also, I'd reverse the sentence "Installing Ubuntu and deploying nodes" since things happen in that order in practice.

[7]

68 +As the name suggests, the default installer is enabled by default for
69 +all new nodes. To enable the default installer for a node that's been
70 +configured to use the fast installer, visit the node's page as an
71 +administrator and click the ``Use the default installer`` button.

and

88 +To enable the fast installer for a node, visit the node's page as an
89 +administrator and click the ``Use the fast installer`` button.

We also have bulk actions for this, it's probably worth mentioning.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'INSTALL.txt'
2--- INSTALL.txt 2014-02-26 00:17:08 +0000
3+++ INSTALL.txt 2014-04-14 14:17:24 +0000
4@@ -241,9 +241,9 @@
5 There are two ways to start the import: through the web user interface, or
6 through the remote API.
7
8-To do it in the web user interface, go to the Settings page (the cogwheel on
9-the right-hand side of the top bar) and look for the "Cluster controllers"
10-section. Click "Import boot images."
11+To do it in the web user interface, go to the Clusters tab and click the
12+"Import boot images" button at the bottom of the list of cluster
13+controllers.
14
15 .. image:: media/import-images.*
16
17
18=== modified file 'docs/hardware-enablement-kernels.rst'
19--- docs/hardware-enablement-kernels.rst 2014-04-08 20:58:05 +0000
20+++ docs/hardware-enablement-kernels.rst 2014-04-14 14:17:24 +0000
21@@ -69,8 +69,8 @@
22 <cluster-controller-uuid>
23
24 You can also tell the cluster controller to re-import its boot images by
25-clicking the ``Import boot images`` button for the cluster in the
26-``Settings`` page of the MAAS web UI.
27+clicking the ``Import boot images`` button in the ``Clusters`` page of
28+the MAAS web UI.
29
30 Using hardware-enablement kernels in MAAS
31 -----------------------------------------
32
33=== modified file 'docs/index.rst'
34--- docs/index.rst 2014-04-08 20:58:05 +0000
35+++ docs/index.rst 2014-04-14 14:17:24 +0000
36@@ -58,6 +58,7 @@
37 hardware-enablement-kernels
38 networks
39 kernel-options
40+ installing-ubuntu
41
42
43 ******************
44
45=== added file 'docs/installing-ubuntu.rst'
46--- docs/installing-ubuntu.rst 1970-01-01 00:00:00 +0000
47+++ docs/installing-ubuntu.rst 2014-04-14 14:17:24 +0000
48@@ -0,0 +1,87 @@
49+=====================================
50+Installing Ubuntu and deploying nodes
51+=====================================
52+
53+Once a node has been accepted into MAAS and is ready for use, users can
54+deploy services to that node.
55+
56+Prior to deployment, MAAS is responsible for:
57+
58+1. Powering up the node.
59+2. Installing Ubuntu on the node.
60+3. Installing the user's SSH keys on the node.
61+
62+Once these steps have been completed, the node is ready to have services
63+deployed to it, either manually or by using a tool like Juju_.
64+
65+There are two ways to install Ubuntu on a node:
66+
67+1. :ref:`The default installer <default-installer>`.
68+2. :ref:`The fast installer <fast-installer>`.
69+
70+.. _Juju: http://juju.ubuntu.com
71+
72+.. _default-installer:
73+
74+The default installer
75+----------------------
76+
77+The default installer installs Ubuntu on a node in exactly the same way
78+as you would install it manually: using the `Debian Installer`_.
79+Installation is handled by the Debian installer. Answers to the
80+questions asked by the installer are provided in a 'preseed' file. For
81+more information on preseed files, see the :ref:`Additional
82+Configuration <preseed>` page.
83+
84+As the name suggests, the default installer is enabled by default for
85+all new nodes. To enable the default installer for a node that's been
86+configured to use the fast installer, visit the node's page as an
87+administrator and click the ``Use the default installer`` button.
88+
89+.. image:: media/node-page-use-default-installer.png
90+
91+To set multiple nodes to use the default installer, select the ``Mark
92+nodes as using the default installer`` option from the bulk action menu
93+on the ``Nodes`` page in the MAAS web UI.
94+
95+Because it installs Ubuntu from scratch, downloading packages as
96+required, the default installer is slower than the :ref:`fast installer
97+<fast-installer>`.
98+
99+.. _Debian Installer: http://www.debian.org/devel/debian-installer/
100+
101+.. _fast-installer:
102+
103+The fast installer
104+------------------
105+
106+The fast installer is, as the name suggests, a means of installing
107+Ubuntu on a node more quickly than would be possible using the
108+:ref:`default installer <default-installer>`.
109+
110+To enable the fast installer for a node, visit the node's page as an
111+administrator and click the ``Use the fast installer`` button.
112+
113+.. image:: media/node-page-use-fast-installer.png
114+
115+To set multiple nodes to use the fast installer, select the ``Mark nodes
116+as using the fase installer`` option from the bulk action menu on the
117+``Nodes`` page in the MAAS web UI.
118+
119+The fast installer copies a pre-built Ubuntu image to the node, with all
120+the packages installed that would be normally found in an Ubuntu
121+installation.
122+
123+The fast installer is much quicker than the default installer, but has
124+the disadvantage that it's less easy to configure a node at install
125+time, since the fast installer doesn't use a :ref:`preseed file
126+<preseed>`. In addition, the packages that are initially installed on a
127+fast-installed node need updating manually, since they are part of the
128+installation image and not downloaded fresh from an apt repository.
129+
130+For more information about the fast installer, see the `curtin project`_
131+on Launchpad.
132+
133+.. _curtin project: https://launchpad.net/curtin
134+
135+.. [1] Except where the node only supports manual power management.
136
137=== added file 'docs/media/add-node.png'
138Binary files docs/media/add-node.png 1970-01-01 00:00:00 +0000 and docs/media/add-node.png 2014-04-14 14:17:24 +0000 differ
139=== added file 'docs/media/import-images.png'
140Binary files docs/media/import-images.png 1970-01-01 00:00:00 +0000 and docs/media/import-images.png 2014-04-14 14:17:24 +0000 differ
141=== removed file 'docs/media/import-images.png'
142Binary files docs/media/import-images.png 2014-02-25 07:17:54 +0000 and docs/media/import-images.png 1970-01-01 00:00:00 +0000 differ
143=== added file 'docs/media/node-page-use-default-installer.png'
144Binary files docs/media/node-page-use-default-installer.png 1970-01-01 00:00:00 +0000 and docs/media/node-page-use-default-installer.png 2014-04-14 14:17:24 +0000 differ
145=== added file 'docs/media/node-page-use-fast-installer.png'
146Binary files docs/media/node-page-use-fast-installer.png 1970-01-01 00:00:00 +0000 and docs/media/node-page-use-fast-installer.png 2014-04-14 14:17:24 +0000 differ
147=== modified file 'docs/nodes.rst'
148--- docs/nodes.rst 2014-02-28 22:34:13 +0000
149+++ docs/nodes.rst 2014-04-14 14:17:24 +0000
150@@ -3,9 +3,15 @@
151
152 Now that the MAAS controller is running, we need to make the nodes
153 aware of MAAS and vice-versa. If you have set up DHCP correctly, and
154-your nodes can boot via PXE then things really couldn't be much easier
155-and you can use :ref:`the automatic discovery procedure <auto-enlist>`
156-
157+your nodes can boot via PXE_ then things really couldn't be much easier
158+and you can use :ref:`the automatic discovery procedure <auto-enlist>`.
159+You do not need to install Ubuntu on nodes that you wish to add to MAAS
160+prior to enlistment.
161+
162+To learn more about setting up DHCP, read the :ref:`cluster configuration
163+documentation <cluster-configuration>`.
164+
165+.. _PXE: http://en.wikipedia.org/wiki/Preboot_Execution_Environment
166
167 .. _auto-enlist:
168
169@@ -36,7 +42,10 @@
170 ------------------
171
172 If you know the MAC address of a node, you can manually enter details
173-about the node through the web interface.
174+about the node through the web interface. Click the ``Add Node`` button
175+to be taken to the "Add Node" form:
176+
177+.. image:: media/add-node.png
178
179
180 Virtual machine nodes