<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 13, 2014 at 4:04 PM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Tue, May 13, 2014 at 12:41 PM, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You might be running into this:<div> <a href="http://askubuntu.com/questions/458535/how-to-change-juju-bootstrap-time-from-the-10min-it-gives-you" target="_blank">http://askubuntu.com/questions/458535/how-to-change-juju-bootstrap-time-from-the-10min-it-gives-you</a></div>
<div>John</div><div>=:-></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, May 12, 2014 at 4:47 PM, boyd yang <span dir="ltr"><<a href="mailto:boyd.yang@gmail.com" target="_blank">boyd.yang@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div><br></div><div>I got juju bootstrap error.</div><div>I used Ubuntu 14.04 LTS.</div>
<div>How to fix this?</div>
<div>Thanks!</div><div><br><div><div>root@maas:/home/ceph# juju bootstrap --show-log</div>
<div>2014-05-12 12:21:06 INFO juju.cmd supercommand.go:297 running juju-1.18.1-trusty-amd64 [gc]</div><div>2014-05-12 12:21:06 INFO juju.environs open.go:177 environment info already exists; using New not Prepare</div><div>
2014-05-12 12:21:06 INFO juju.environs.bootstrap bootstrap.go:46 bootstrapping environment "maas"</div><div>2014-05-12 12:21:06 INFO juju.environs.tools tools.go:186 filtering tools by released version</div><div>
2014-05-12 12:21:06 INFO juju.environs.tools tools.go:86 reading tools with major.minor version 1.18</div><div>2014-05-12 12:21:06 INFO juju.environs.tools tools.go:97 filtering tools by series: trusty</div><div>2014-05-12 12:21:06 INFO juju.utils http.go:55 hostname SSL verification enabled</div>
<div>2014-05-12 12:21:26 INFO juju.utils http.go:55 hostname SSL verification enabled</div><div>2014-05-12 12:21:30 INFO juju.utils http.go:55 hostname SSL verification enabled</div><div>2014-05-12 12:21:33 INFO juju.utils http.go:55 hostname SSL verification enabled</div>
<div>2014-05-12 12:22:18 INFO juju.environs.bootstrap bootstrap.go:58 picked newest version: 1.18.3</div><div>Launching instance</div><div>2014-05-12 12:22:20 WARNING juju.provider.maas environ.go:233 picked arbitrary tools &{"1.18.3-trusty-amd64" "<a href="https://streams.canonical.com/juju/tools/releases/juju-1.18.3-trusty-amd64.tgz" target="_blank">https://streams.canonical.com/juju/tools/releases/juju-1.18.3-trusty-amd64.tgz</a>" "b54decd84ad21c5a3b924448bc865fa53f6552d230a89ed01d929db4fa8659b6" %!q(int64=7385591)}</div>
<div> - /MAAS/api/1.0/nodes/node-a2791000-d375-11e3-9bfb-c81f66b95a0e/</div><div>Waiting for address</div><div>Attempting to connect to jdreb.maas:22</div><div>Attempting to connect to <a href="http://192.168.10.12:22" target="_blank">192.168.10.12:22</a></div>
<div>2014-05-12 12:32:20 ERROR juju.provider.common bootstrap.go:123 bootstrap failed: waited for 10m0s without being able to connect: /var/lib/juju/nonce.txt does not exist</div><div>Stopping instance...</div><div>Bootstrap failed, destroying environment</div>
<div>2014-05-12 12:32:21 INFO juju.provider.common destroy.go:14 destroying environment "maas"</div><div>2014-05-12 12:32:21 ERROR juju.cmd supercommand.go:300 waited for 10m0s without being able to connect: /var/lib/juju/nonce.txt does not exist</div>
</div></div></div></div></div></blockquote></div></div></blockquote><div><br></div></div></div><div>The end of the last line there indicates something has gone wrong while initialising the first MAAS node. We run a cloud-init script that creates the nonce.txt file, which we use to verify the machine's identity.</div>
<div><br></div><div>It looks like a bug in either Juju or MAAS. Do you know how you got into this situation?</div><div><br></div><div>Cheers,</div><div>Andrew</div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra">I should also note that there is a possibility that extending the timeout, as suggested by John, may resolve the issue. It could be that cloud-init is still running, and the nonce.txt file just hasn't been written *yet*.</div>
</div>