Merge lp:~blake-rouse/maas/update-boot-image-doc-1.7 into lp:maas/1.7

Proposed by Blake Rouse
Status: Merged
Approved by: Blake Rouse
Approved revision: no longer in the source branch.
Merged at revision: 3276
Proposed branch: lp:~blake-rouse/maas/update-boot-image-doc-1.7
Merge into: lp:maas/1.7
Diff against target: 208 lines (+42/-65)
3 files modified
INSTALL.txt (+17/-25)
docs/bootsources.rst (+25/-39)
docs/index.rst (+0/-1)
To merge this branch: bzr merge lp:~blake-rouse/maas/update-boot-image-doc-1.7
Reviewer Review Type Date Requested Status
Blake Rouse (community) Approve
Review via email: mp+239457@code.launchpad.net

Commit message

Update the documentation for the new boot images WebUI and API. Remove the reference to maas-import-pxe-files on index.rst, as its no longer supported as of 1.7.

To post a comment you must log in.
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Self-approving since this is just documentation.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :
Download full text (20.8 KiB)

The attempt to merge lp:~blake-rouse/maas/update-boot-image-doc-1.7 into lp:maas/1.7 failed. Below is the output from the failed tests.

Ign http://security.ubuntu.com trusty-security InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://nova.clouds.archive.ubuntu.com trusty InRelease
Get:2 http://security.ubuntu.com trusty-security Release [59.7 kB]
Ign http://nova.clouds.archive.ubuntu.com trusty-updates InRelease
Hit http://nova.clouds.archive.ubuntu.com trusty Release.gpg
Get:3 http://nova.clouds.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://nova.clouds.archive.ubuntu.com trusty Release
Get:4 http://nova.clouds.archive.ubuntu.com trusty-updates Release [59.7 kB]
Get:5 http://security.ubuntu.com trusty-security/main Sources [48.3 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty/main Sources
Get:6 http://security.ubuntu.com trusty-security/universe Sources [11.2 kB]
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [149 kB]
Get:8 http://security.ubuntu.com trusty-security/universe amd64 Packages [50.4 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages
Hit http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://nova.clouds.archive.ubuntu.com trusty/main Translation-en
Hit http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en
Get:9 http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources [129 kB]
Get:10 http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources [88.2 kB]
Get:11 http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages [343 kB]
Get:12 http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages [215 kB]
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://nova.clouds.archive.ubuntu.com trusty/main Translation-en_US
Ign http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 1,155 kB in 3s (378 kB/s)
Reading package lists...
sudo DEBIAN_FRONTEND=noninteractive apt-get -y \
     --no-install-recommends install apache2 authbind bind9 bind9utils build-essential bzr-builddeb curl daemontools debhelper dh-apport distro-info dnsutils firefox freeipmi-tools gjs ipython isc-dhcp-common libjs-raphael libjs-yui3-full libjs-yui3-min libpq-dev make pep8 postgresql pyflakes python-amqplib python-bzrlib python-celery python-convoy python-crochet python-cssselect python-curtin python-dev python-distro-info python-django python-django-piston python-django-south python-djorm-ext-pgarray python-docutils python-extras python-fixtures python-flake8 python-formencode python-hivex python-httplib2 python-jinja2 python-jsonschema python-lockfile python-lxml python-mimeparse python-mock python-netaddr python-netifaces python-nose python-oauth python-oops python-oops-amqp python-oops-datedir-repo python-oops-twisted python-oops-w...

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-08-22 00:13:24 +0000
3+++ INSTALL.txt 2014-10-23 19:36:58 +0000
4@@ -232,28 +232,27 @@
5 Import the boot images
6 ----------------------
7
8-MAAS will check for and download new Ubuntu images once a week. To avoid
9-having to wait that long, you'll need to download them manually the first time
10-once you have set up your MAAS region and cluster controllers. Do it again if
11-you add a cluster controller later, so that the new cluster controller also has
12-the images.
13+MAAS will check for and download new Ubuntu images every hour. On a new
14+installation you'll need to start the import process manually once you have
15+set up your MAAS region.
16
17 There are two ways to start the import: through the web user interface, or
18 through the remote API.
19
20-To do it in the web user interface, go to the Clusters tab and click the
21-"Import boot images" button at the bottom of the list of cluster
22-controllers.
23+To do it in the web user interface, go to the Images tab, check the boxes to
24+say which images you want to import, and click the "Import images" button at
25+the bottom of the Ubuntu section.
26
27 .. image:: media/import-images.*
28
29 A message will appear to let you know that the import has started, and after a
30 while, the warnings about the lack of boot images will disappear.
31
32-It may take longer for the exact boot images you need to be downloaded. Give
33-the import time to run; do not click the "Import boot images" button again
34-until the script has had time to download several hundred megabytes from the
35-archive server.
36+It may take a long time, depending on the speed of your Internet connection for
37+import process to complete, as the images are several hundred megabytes. The
38+import process will only download images that have changed since last import.
39+You can check the progress of the import by hovering over the spinner next to
40+each image.
41
42 The other way to start the import is through the
43 :ref:`region-controller API <region-controller-api>`, which you can invoke most
44@@ -263,22 +262,15 @@
45 See :ref:`Logging in <api-key>` for how to get set up with this tool. Then,
46 run the command::
47
48- $ maas my-maas-session node-groups import-boot-images
49+ $ maas my-maas-session boot-resources import
50
51 (Substitute a different profile name for 'my-maas-session' if you have named
52 yours something else.) This will initiate the download, just as if you had
53-clicked "Import boot images" in the web user interface.
54-
55-.. note::
56- This API command is only available in MAAS versions 1.3 and above.
57- If you are using an earlier version, you will need to run the shell command
58- ``sudo maas-import-pxe-files`` on each of your cluster controllers.
59-
60-By default, each cluster is configured to download the images of the two most
61-recent LTSes for all the supported architectures from the default location
62-(http://maas.ubuntu.com/images/). Although this should suit most needs,
63-an advanced user might want to customise the sources from which the images are
64-downloaded or which images should be downloaded. Read
65+clicked "Import images" in the web user interface.
66+
67+By default, the import is configured to download the most recent LTS release
68+only for the amd64 architecture. Although this should suit most needs, you can
69+change the selections on the Images tab, or over the API. Read
70 :doc:`customise boot sources </bootsources>` to see examples on how to do that.
71
72
73
74=== modified file 'docs/bootsources.rst'
75--- docs/bootsources.rst 2014-09-26 18:48:41 +0000
76+++ docs/bootsources.rst 2014-10-23 19:36:58 +0000
77@@ -5,7 +5,7 @@
78 Boot images import configuration
79 ================================
80
81-The configuration for where a cluster downloads its images is defined by
82+The configuration for where a region downloads its images is defined by
83 a set of "sources". Each "source" defines a Simplestreams repository
84 location (``url``) from which images can be downloaded and a
85 ``keyring_filename`` (or ``keyring_data``) for validating index and image
86@@ -14,11 +14,10 @@
87 that source.
88
89 The following example use the MAAS CLI to list the boot sources and the boot
90-source selections for a particular cluster. Assuming that ``CLUSTER_UUID`` is
91-the UUID of that cluster, and the CLI ``PROFILE`` is the name of the profile
92+source selections. Assuming the CLI ``PROFILE`` is the name of the profile
93 under which you're logged in to the server::
94
95- $ maas $PROFILE boot-sources read $CLUSTER_UUID
96+ $ maas $PROFILE boot-sources read
97 [
98 {
99 "url": "http://maas.ubuntu.com/images/ephemeral-v2/releases/",
100@@ -29,47 +28,34 @@
101 }
102 ]
103
104- $ maas $PROFILE boot-source-selections read $CLUSTER_UUID 1
105+ $ maas $PROFILE boot-source-selections read 1
106 [
107 {
108- "release": "precise",
109- "arches": ["*"],
110- "resource_uri": "<url omitted for readability>",
111+ "labels": [
112+ "release"
113+ ],
114+ "arches": [
115+ "amd64"
116+ ],
117+ "subarches": [
118+ "*"
119+ ],
120+ "release": "trusty",
121 "id": 1,
122- "subarches": ["*"]
123- },
124- {
125- "release": "trusty",
126- "arches": ["*"],
127- "resource_uri": "<url omitted for readability>",
128- "id": 2,
129- "subarches": ["*"]
130+ "resource_uri": "<url omitted for readability>"
131 }
132 ]
133
134+
135 Restricting the images being downloaded
136 ---------------------------------------
137
138-Let's say you want to restrict the images being downloaded to only one
139-architecture and one release; starting from the configuration described above,
140-you would need to:
141-
142-- Delete the "Precise" selection (the selection '1' of the source '1')::
143-
144- $ maas $PROFILE boot-source-selection delete $CLUSTER_UUID 1 1
145-
146-- Update the architecture list of the "Trusty" selection so that only the
147- image for amd64 will be downloaded (this is the selection '2' of the source
148- '1')::
149-
150- $ maas $PROFILE boot-source-selection update $CLUSTER_UUID 1 2 arches=amd64
151- {
152- "release": "trusty",
153- "arches": ["amd64"],
154- "resource_uri": "<url omitted for readability>",
155- "id": 2,
156- "subarches": ["*"]
157- }
158+Let's say you want to add a previous LTS release to images being downloaded.
159+Starting from the configuration described above, you would need to:
160+
161+- Add the "Precise" selection (the selection '1' of the source '1')::
162+
163+ $ maas $PROFILE boot-source-selection create 1 os="ubuntu" release="precise" arches="amd64" subarches="*" labels="*"
164
165 Downloading the images from a different source
166 ----------------------------------------------
167@@ -77,7 +63,7 @@
168 Let's say you want to import the images from a different location. You would
169 need to to change the source's url and keyring::
170
171- $ maas $PROFILE boot-source update $CLUSTER_UUID 1 url="http://custom.url" keyring_filename="" keyring_data@=./custom_keyring_file
172+ $ maas $PROFILE boot-source update 1 url="http://custom.url" keyring_filename="" keyring_data@=./custom_keyring_file
173 {
174 "url": "http://custom.url/",
175 "keyring_data": "<base64 encoded content of `custom_keyring_file`>",
176@@ -91,7 +77,7 @@
177
178 You can also add a new source::
179
180- $ maas maas boot-sources create $CLUSTER_UUID url=http://my.url keyring_filename="" keyring_data@=./ custom_keyring_file
181+ $ maas $PROFILE boot-sources create url=http://my.url keyring_filename="" keyring_data@=./ custom_keyring_file
182 {
183 "url": "http://my.url/",
184 "keyring_data": "ZW1wdHkK",
185@@ -102,7 +88,7 @@
186
187 Inside that newly created source ('2') you can add selections::
188
189- $ maas $PROFILE boot-source-selections create $CLUSTER_UUID 2 arches=amd64 subarches='*' release='trusty' labels='*' os='ubuntu'
190+ $ maas $PROFILE boot-source-selections create os="ubuntu" release="trusty" arches="amd64" subarches="*" labels='*'
191 {
192 "labels": ["*"],
193 "arches": ["amd64"],
194
195=== modified file 'docs/index.rst'
196--- docs/index.rst 2014-10-10 01:25:49 +0000
197+++ docs/index.rst 2014-10-23 19:36:58 +0000
198@@ -108,7 +108,6 @@
199
200 man/maas-region-admin.8
201 man/maas.8
202- man/maas-import-pxe-files.8
203
204
205 ***************
206
207=== modified file 'docs/media/import-images.png'
208Binary files docs/media/import-images.png 2014-04-14 07:35:07 +0000 and docs/media/import-images.png 2014-10-23 19:36:58 +0000 differ

Subscribers

People subscribed via source and target branches

to all changes: