maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01425
Re: Spinning up event loop in region webapp
On 20 January 2014 22:59, Gavin Panella <gavin.panella@xxxxxxxxxxxxx> 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
References