Merge lp:~allenap/maas/docs-and-man-bug-975454 into lp:~maas-committers/maas/trunk

Proposed by Gavin Panella
Status: Merged
Approved by: Gavin Panella
Approved revision: no longer in the source branch.
Merged at revision: 1363
Proposed branch: lp:~allenap/maas/docs-and-man-bug-975454
Merge into: lp:~maas-committers/maas/trunk
Prerequisite: lp:~allenap/maas/docs-and-man-tidy
Diff against target: 98 lines (+37/-18)
1 file modified
HACKING.txt (+37/-18)
To merge this branch: bzr merge lp:~allenap/maas/docs-and-man-bug-975454
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+135259@code.launchpad.net

Commit message

Remove references to maas-import-pxe-files from HACKING.txt.

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

65 +Start downloading PXE boot resources::
66 +
67 + $ bin/maascli dev node-groups import-boot-images
68 +
69 +This may download dozens or hundreds of megabytes, so depending on your
70 +network connection it may take a while.

This needs updating to mention exactly how this works. ie., it kicks off jobs on all the cluster controllers. Therefore it also needs to mention that it's a good idea to set up a caching proxy in the UI (and say how) so that all the controllers don't duplicate the download.

review: Needs Fixing
Revision history for this message
Gavin Panella (allenap) wrote :

> This needs updating to mention exactly how this works. ie., it kicks off jobs
> on all the cluster controllers. Therefore it also needs to mention that it's
> a good idea to set up a caching proxy in the UI (and say how) so that all the
> controllers don't duplicate the download.

Good point. I've updated the instructions.

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

Tippus Toppus!

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

No proposals found for merge of lp:~allenap/maas/docs-and-man-tidy into lp:maas.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'HACKING.txt'
--- HACKING.txt 2012-10-02 17:24:06 +0000
+++ HACKING.txt 2012-11-21 12:20:53 +0000
@@ -178,10 +178,6 @@
178178
179 $ make sampledata179 $ make sampledata
180180
181Install the provisioning server::
182
183 $ sudo apt-get install maas-provision
184
185By default, the snippet ``maas_proxy`` includes a definition for an http181By default, the snippet ``maas_proxy`` includes a definition for an http
186proxy running on port 8000 on the same host as the MAAS server. This182proxy running on port 8000 on the same host as the MAAS server. This
187means you can *either* install ``squid-deb-proxy``::183means you can *either* install ``squid-deb-proxy``::
@@ -195,16 +191,6 @@
195191
196 $ sudo tee -a /etc/tgt/targets.conf < contrib/tgt.conf192 $ sudo tee -a /etc/tgt/targets.conf < contrib/tgt.conf
197193
198Now run ``maas-import-pxe-files`` to download current Ubuntu releases for
199installing nodes::
200
201 $ sudo http_proxy=$http_proxy PATH=$PATH:$PWD/bin:$PWD/scripts \
202 MAAS_PROVISIONING_SETTINGS=$PWD/etc/pserv.yaml \
203 ./scripts/maas-import-pxe-files
204
205This may download dozens or hundreds of megabytes, so depending on your
206network connection it may take a while.
207
208The http_proxy variable is only needed if you're downloading through a194The http_proxy variable is only needed if you're downloading through a
209proxy; "sudo" wouldn't pass it on to the script without the assignment.195proxy; "sudo" wouldn't pass it on to the script without the assignment.
210Or if you don't have it set but do want to download through a proxy, pass196Or if you don't have it set but do want to download through a proxy, pass
@@ -220,12 +206,47 @@
220simple user using the test account (username: 'test', password: 'test') or the206simple user using the test account (username: 'test', password: 'test') or the
221admin account (username: 'admin', password: 'test').207admin account (username: 'admin', password: 'test').
222208
209At this point you may also want to `download PXE boot resources`_.
210
211.. _`download PXE boot resources`: `Downloading PXE boot resources`_
212
223To shut down the database cluster and clean up all other generated files in213To shut down the database cluster and clean up all other generated files in
224your branch::214your branch::
225215
226 $ make distclean216 $ make distclean
227217
228218
219Downloading PXE boot resources
220^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
221
222To use PXE booting, each cluster controller needs to download several
223files relating to PXE booting. This process is automated, but it does
224not start by default.
225
226First create a superuser and start all MAAS services::
227
228 $ bin/maas createsuperuser
229 $ make run
230
231Get the superuser's API key on the `account preferences`_ page in web
232UI, and use it to log into MAAS at the command-line::
233
234 $ bin/maascli login dev http://localhost:5240
235
236.. _`account preferences`: http://localhost:5240/account/prefs/
237
238Start downloading PXE boot resources::
239
240 $ bin/maascli dev node-groups import-boot-images
241
242This sends jobs to each cluster controller, asking each to download
243the boot resources they require. This may download dozens or hundreds
244of megabytes, so it may take a while. To save bandwidth, set an HTTP
245proxy beforehand::
246
247 $ bin/maascli dev maas set-config name=http_proxy value=http://...
248
249
229Running the built-in TFTP server250Running the built-in TFTP server
230^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^251^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
231252
@@ -414,8 +435,7 @@
414``src/maasserver/migrations/<auto_number>_description_of_the_change.py``. Don't435``src/maasserver/migrations/<auto_number>_description_of_the_change.py``. Don't
415forget to add that file to the project with::436forget to add that file to the project with::
416437
417 $ bzr add \438 $ bzr add src/maasserver/migrations/<auto_number>_description_of_the_change.py
418 src/maasserver/migrations/<auto_number>_description_of_the_change.py
419439
420To apply that migration, run::440To apply that migration, run::
421441
@@ -439,8 +459,7 @@
439methods where data should be actually migrated. Again, don't forget to459methods where data should be actually migrated. Again, don't forget to
440add that file to the project::460add that file to the project::
441461
442 $ bzr add \462 $ bzr add src/maasserver/migrations/<auto_number>_description_of_the_change.py
443 src/maasserver/migrations/<auto_number>_description_of_the_change.py
444463
445Once the methods have been written, apply that migration with::464Once the methods have been written, apply that migration with::
446465