Details
Description
In a cluster with a single node named 127.0.0.1 the clustering code cannot determine its own node name, which means that things like the /admin/config or cluster monitoring don't work.
This is because
1) ns_server returns the hostname as blank if the host is named 127.0.0.1 and there is no other node in the cluster, and
2) the couchbase implementation of n1ql clustering arbitrarily assigns "127.0.0.1" as the node name if hostname is blank, and
3) the clustering code ignores localhost for the purpose of clustering