Using fastpath installer in MAAS

MAAS 1.4 supports installing images via curtin (fastpath).

To enable fastpath for a node we need to tag it with use-fastpath-installer that is understood by MAAS and fastpath. As far as I can tell this has to be accomplished via maas-cli.

Set your MAAS profile

If you’ve gone through the basic getting started steps with MAAS your profile is most likely maas. Assign MAASNAME to your maas profile.

Login to your MAAS instance via maas-cli

In order to login to your maas instance you’ll need to grab your maas-key. This can be done by visiting the user preferences page (http://maas.ip/MAAS/account/prefs) or clicking the preferences link under your account name (Fig 1).

Fig 1. User preferences

Fig 1. User preferences

Your maas-key should be located under the MAAS keys section (Fig 2)

Fig 2. MAAS keys

Fig 2. MAAS keys

Once you have that key copied, login to your MAAS instance from the command line.

Apply the tag to a single node

Once logged in we can start tagging nodes. In order to figure out which node you’d like to tag run the following command:

If you look at system_id this will be what you’ll use when tagging a single node. Go ahead and store that node in a variable

At this point the use-fastpath-installer tag doesn’t exist so we need to create it first

Now we can apply the tag to the node

Or you can run the following command and bypass creating the tag and applying it manually to a node with the following

This will create the use-fastpath-installer tag and apply to all available nodes.

Verify your node(s) are tagged

You can view that the tagging worked by either running the following command:

Or through the web-ui and viewing your node properties (Fig. 3)

Fig 3. Node properties

Fig 3. Node properties

Deploy your node with fastpath installer

Now that the node is tagged simply re-deploy the node and fastpath should take over automatically. Should note that you really won’t see a difference other than speed increase of the installation, but, let’s be honest that’s really what we care about right? :)

Tips

I ran this test on Precise in order to do that you’ll need the cloud-tools pocket in the cloud archive:

CC BY-SA 4.0
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *


four × 4 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">