Skip to content

Conversation

@janl
Copy link
Member

@janl janl commented Jun 3, 2017

PR for #566

rnewson and others added 14 commits September 14, 2015 12:39
PR: #7
PR-URL: apache/couchdb-setup#7
Reviewed-By: Robert Newson <rnewson@apache.org>
Adding nodes to a cluster fails if the node names (the `name` of
`name@hostname` in vm.args) is different from "couchdb".
The code currently infers this name from the port: "node1" if 15984,
"node2" if 25984, "node3" if 35984, "couchdb" otherwise. No other
possibility.

This is not suited for a production set-up, where multiple servers could
have different names.

This patch fixes this problem by adding an optional "name" option to the
"add_node" command:

  POST /_cluster_setup
  {
    "action": "add_node",
    "username": "root",
    "password": "******",
    "host": "production-server.com",
    "port": 5984,
    "name": "node5"
  }

This fixes: COUCHDB-3119
* robertkowalski/2594-2598-number-of-nodes:
  fix wording
  use config:setineger/3
  require nodecount on setup
* adrienverge/COUCHDB-3119:
  add_node: Don't fail if node name != "couchdb" or "node1"
* asf/salt-distribution:
  fix cluster setup: use same admin pq salt on all nodes
git-subtree-dir: src/setup
git-subtree-mainline: e9cc63f
git-subtree-split: c38d7aa
@janl
Copy link
Member Author

janl commented Jun 3, 2017

not sure why GitHub complains here, the branch merges cleanly locally.

@janl
Copy link
Member Author

janl commented Jun 3, 2017

cc @davisp review plz <3

@davisp
Copy link
Member

davisp commented Jul 17, 2017

+1

Look fine to me. Though you'll want to update rebar.config.script after you merge this. As to the conflicts notice it sure would be nice to know what GitHub thinks is in conflict. Assuming it applies cleanly locally I'd just do that and call it good. It could even be that GitHub thinks its a conflict precisely because they have separate roots.

@wohali
Copy link
Member

wohali commented Jul 17, 2017

@janl A reminder this needs to be updated for the latest changes to couchdb-setup that I just pushed.

@wohali
Copy link
Member

wohali commented Sep 20, 2017

bump. we should do this.

@davisp
Copy link
Member

davisp commented Sep 20, 2017

@wohali Says merged or am I missing something else?

@wohali
Copy link
Member

wohali commented Sep 20, 2017

@davisp That's a different PR. This is definitely not done, otherwise we'd have a /src/setup directory in this repo, and we don't.

@davisp
Copy link
Member

davisp commented Sep 20, 2017

@wohali Let that be a lesson for me to never read through PR activity before my first coffee.

@wohali
Copy link
Member

wohali commented Oct 26, 2017

@jan any desire to get this onto master (and thus 2.1.x)?

@wohali
Copy link
Member

wohali commented Mar 26, 2018

Superceded by #1241.

@wohali wohali closed this Mar 26, 2018
@wohali wohali mentioned this pull request Mar 27, 2018
@wohali wohali deleted the import-couchdb-setup branch October 21, 2020 19:01
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants