<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Droid Serif">Hey all, I'm trying to build a cluster on
Ubuntu 18.04 with lxd 3.0.3. I was able to bootstrap the first
node without any issues, but when I try to add a second node it
just hangs and never returns the terminal prompt. Here is my
bootstrapped node:<br>
<br>
<font face="Droid Sans Mono">lxcuser@blllxc02:~$ lxc cluster list<br>
+----------+----------------------------------------------+----------+--------+-------------------+<br>
| NAME | URL |
DATABASE | STATE | MESSAGE |<br>
+----------+----------------------------------------------+----------+--------+-------------------+<br>
| blllxc02 | <a class="moz-txt-link-freetext" href="https://blllxc02-mgmt.harmonywave.cloud:8443">https://blllxc02-mgmt.harmonywave.cloud:8443</a> |
YES | ONLINE | fully operational |<br>
+----------+----------------------------------------------+----------+--------+-------------------+</font><br>
<br>
And here is the second node I am trying to add:<br>
<br>
<font face="Droid Sans Mono">lxcuser@blllxc01:~$ sudo lxd init<br>
Would you like to use LXD clustering? (yes/no) [default=no]: yes<br>
What name should be used to identify this node in the cluster?
[default=blllxc01]: <br>
What IP address or DNS name should be used to reach this node?
[default=fe80::6a1c:a2ff:fe13:1ec6]:
blllxc01-mgmt.harmonywave.cloud<br>
Are you joining an existing cluster? (yes/no) [default=no]: yes<br>
IP address or FQDN of an existing cluster node:
blllxc02-mgmt.harmonywave.cloud<br>
Cluster fingerprint:
20b51145761f3444278317331feeded8492c263920889f5dccd83772da0c42cf<br>
You can validate this fingerpring by running "lxc info" locally
on an existing node.<br>
Is this the correct fingerprint? (yes/no) [default=no]: yes<br>
Cluster trust password: <br>
All existing data is lost when joining a cluster, continue?
(yes/no) [default=no] yes<br>
Choose the local disk or dataset for storage pool "btrfspool1"
(empty for loop disk): /dev/sdj<br>
Would you like a YAML "lxd init" preseed to be printed? (yes/no)
[default=no]: <br>
<br>
^C<br>
lxcuser@blllxc01:~$ lxc cluster list<br>
Error: LXD server isn't part of a cluster</font><br>
<br>
After the last question from <font face="Droid Sans Mono">lxd
init</font> my terminal never returns. I've left it like this
overnight with no change. This is all I'm seeing in the logs as
well from the time I run <font face="Droid Sans Mono">lxd init</font>
to when I abort the process:<br>
<br>
Logs from the node trying to be added:<br>
<font face="Droid Sans Mono">t=2020-03-18T20:17:07-0600 lvl=info
msg="Creating BTRFS storage pool \"btrfspool1\"" <br>
t=2020-03-18T20:17:08-0600 lvl=warn msg="Failed to detect UUID
by looking at /dev/disk/by-uuid" <br>
t=2020-03-18T20:17:08-0600 lvl=info msg="Created BTRFS storage
pool \"btrfspool1\"" <br>
t=2020-03-19T02:12:27-0600 lvl=info msg="Updating images" <br>
t=2020-03-19T02:12:27-0600 lvl=info msg="Done updating images" <br>
t=2020-03-19T08:12:27-0600 lvl=info msg="Updating images" <br>
t=2020-03-19T08:12:27-0600 lvl=info msg="Done updating images"</font><br>
<br>
Logs from the bootstrapped node:<br>
<font face="Droid Sans Mono">t=2020-03-18T17:05:58-0600 lvl=info
msg="Initializing global database" <br>
t=2020-03-18T17:06:02-0600 lvl=warn msg="Raft: Heartbeat timeout
from \"\" reached, starting election" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Initializing storage
pools" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Initializing networks"
<br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Pruning leftover image
files" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Done pruning leftover
image files" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Loading daemon
configuration" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Pruning expired images"
<br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Done pruning expired
images" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Expiring log files" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Done expiring log
files" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Updating images" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Done updating images" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Updating instance
types" <br>
t=2020-03-18T17:06:03-0600 lvl=info msg="Done updating instance
types" <br>
t=2020-03-18T23:06:03-0600 lvl=info msg="Updating images" <br>
t=2020-03-18T23:06:03-0600 lvl=info msg="Done updating images" <br>
t=2020-03-19T05:06:03-0600 lvl=info msg="Updating images" <br>
t=2020-03-19T05:06:03-0600 lvl=info msg="Done updating images"<br>
t=2020-03-19T11:06:03-0600 lvl=info msg="Updating images"<br>
t=2020-03-19T11:06:03-0600 lvl=info msg="Done updating images"</font><br>
<br>
Any idea where I can get more information about what is going on
to successfully add the node to the cluster?<br>
</font>
<pre class="moz-signature" cols="0">--
Thanks,
Joshua Schaeffer</pre>
</body>
</html>