Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3119

Cluster setup: `add_node` fails if node name != "couchdb"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        adrienverge Adrien Vergé added a comment -
        Show
        adrienverge Adrien Vergé added a comment - I posted a fix at: https://github.com/apache/couchdb-setup/pull/11
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit d75693ea94de8595b69fcf8e9eb189664e115574 in couchdb-setup's branch refs/heads/master from Adrien Vergé
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=d75693e ]

        add_node: Don't fail if node name != "couchdb" or "node1"

        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

        Show
        jira-bot ASF subversion and git services added a comment - Commit d75693ea94de8595b69fcf8e9eb189664e115574 in couchdb-setup's branch refs/heads/master from Adrien Vergé [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=d75693e ] add_node: Don't fail if node name != "couchdb" or "node1" 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
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit b2b93c17754cb4169bf9e922d9be702eb6d0f0d5 in couchdb-setup's branch refs/heads/master from Jan Lehnardt
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=b2b93c1 ]

        Merge remote-tracking branch 'adrienverge/COUCHDB-3119'

        • adrienverge/COUCHDB-3119:
          add_node: Don't fail if node name != "couchdb" or "node1"
        Show
        jira-bot ASF subversion and git services added a comment - Commit b2b93c17754cb4169bf9e922d9be702eb6d0f0d5 in couchdb-setup's branch refs/heads/master from Jan Lehnardt [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=b2b93c1 ] Merge remote-tracking branch 'adrienverge/ COUCHDB-3119 ' adrienverge/ COUCHDB-3119 : add_node: Don't fail if node name != "couchdb" or "node1"
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit b2b93c17754cb4169bf9e922d9be702eb6d0f0d5 in couchdb-setup's branch refs/heads/master from Jan Lehnardt
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=b2b93c1 ]

        Merge remote-tracking branch 'adrienverge/COUCHDB-3119'

        • adrienverge/COUCHDB-3119:
          add_node: Don't fail if node name != "couchdb" or "node1"
        Show
        jira-bot ASF subversion and git services added a comment - Commit b2b93c17754cb4169bf9e922d9be702eb6d0f0d5 in couchdb-setup's branch refs/heads/master from Jan Lehnardt [ https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=b2b93c1 ] Merge remote-tracking branch 'adrienverge/ COUCHDB-3119 ' adrienverge/ COUCHDB-3119 : add_node: Don't fail if node name != "couchdb" or "node1"

          People

          • Assignee:
            Unassigned
            Reporter:
            adrienverge Adrien Vergé
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development