[lxc-devel] [lxd/master] When starting up, use the cluster.https_address as key for updating the nodes table

freeekanayaka on Github lxc-bot at linuxcontainers.org
Wed Feb 27 13:57:37 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190227/15a9355a/attachment.bin>
-------------- next part --------------
From 1336407af2d68fee772706353127a9e73297d898 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at canonical.com>
Date: Wed, 27 Feb 2019 14:17:36 +0100
Subject: [PATCH] When starting up, use the cluster.https_address as key for
 updating the nodes table

Signed-off-by: Free Ekanayaka <free.ekanayaka at canonical.com>
---
 lxd/daemon.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/daemon.go b/lxd/daemon.go
index 5a31349e7c..d9f1b77f84 100644
--- a/lxd/daemon.go
+++ b/lxd/daemon.go
@@ -579,7 +579,7 @@ func (d *Daemon) init() error {
 		}
 
 		d.cluster, err = db.OpenCluster(
-			"db.bin", store, address, dir,
+			"db.bin", store, clusterAddress, dir,
 			d.config.DqliteSetupTimeout,
 			dqlite.WithDialFunc(d.gateway.DialFunc()),
 			dqlite.WithContext(d.gateway.Context()),


More information about the lxc-devel mailing list