[Maas-devel] Spinning up event loop in region webapp
Gavin Panella
gavin.panella at canonical.com
Mon Jan 20 23:08:00 UTC 2014
On 20 January 2014 22:59, Gavin Panella <gavin.panella at canonical.com> wrote:
> lp:~allenap/maas/amp-on-cluster has example code for spinning up a
> Twisted event loop in the region web application, via crochet. It also
> shows how to expose a remote function via AMP in the cluster, and
> there's an example client (usable from the command-line) in the root.
I forgot to mention how to get the cluster working usefully so that the
client will work.
1. mkdir tftproot && mkdir -p tftproot/{a,E}/{b,F}/{c,G}/{d,H}
2. Make the following change to your branch:
{{{
--- etc/maas/pserv.yaml 2013-12-16 20:18:22 +0000
+++ etc/maas/pserv.yaml 2014-01-20 12:43:58 +0000
@@ -32,6 +32,7 @@
#
tftp:
# root: /var/lib/maas/tftp
+ root: /PATH/TO/TFTPROOT/ABOVE
# port: 69
port: 5244
## The URL to be contacted to generate PXE configurations.
}}}
3. make services/pserv/@run
4. In another terminal:
bin/py ampclient.py
More information about the Maas-devel
mailing list