diff --git a/lxd/api_cluster.go b/lxd/api_cluster.go index 7e44d4f8e44a..8f0a80670673 100644 --- a/lxd/api_cluster.go +++ b/lxd/api_cluster.go @@ -370,6 +370,10 @@ func clusterPutBootstrap(d *Daemon, r *http.Request, req api.ClusterPut) respons d.globalConfigMu.Unlock() d.events.SetLocalLocation(d.serverName) + + // Refresh the state. + s = d.State() + // Start clustering tasks d.startClusterTasks() @@ -797,6 +801,9 @@ func clusterPutJoin(d *Daemon, r *http.Request, req api.ClusterPut) response.Res return err } + // Refresh the state. + s = d.State() + // Start up networks so any post-join changes can be applied now that we have a Node ID. logger.Debug("Starting networks after cluster join") err = networkStartup(s)