Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7854

add documentation about the manual failover REST API to the docs

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Currently there is no page that describes the REST API for manually failing over a node.

      The end point is http://Administrator:Password@192.168.0.XX:8091/controller/failover

      The "otpNode" parameter is required and specifies the node to be failed over.

      Create one similar to the rebalance / add node or remove node pages.

      Adding nodes
      http://www.couchbase.com/docs/couchbase-manual-2.0/restapi-create-new-node.html

      Rebalancing the cluster
      http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-rebalance.html

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        kzeller kzeller added a comment -

        Hi,

        Can you give me the correct endpoint and parameters. I try

        Karens-MacBook-Pro:docs kzeller$ curl -v -X -u Administrator:password http://10.3.3.63:8091/controller/failover -d optNode

        • Could not resolve host: Administrator; nodename nor servname provided, or not known
        • Closing connection #0
          curl: (6) Could not resolve host: Administrator; nodename nor servname provided, or not known
        • About to connect() to 10.3.3.63 port 8091 (#0)
        • Trying 10.3.3.63... connected
        • Connected to 10.3.3.63 (10.3.3.63) port 8091 (#0)
          > -u /controller/failover HTTP/1.1
          > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
          > Host: 10.3.3.63:8091
          > Accept: /
          > Content-Length: 7
          > Content-Type: application/x-www-form-urlencoded
          >
          < HTTP/1.1 405 Method Not Allowed
          < Server: Couchbase Server 2.0.0-1976-rel-enterprise
          < Pragma: no-cache
          < Date: Tue, 19 Mar 2013 17:50:04 GMT
          < Content-Length: 18
          < Cache-Control: no-cache
          <
        • Connection #0 to host 10.3.3.63 left intact
        • Closing connection #0

        Thanks!

        Show
        kzeller kzeller added a comment - Hi, Can you give me the correct endpoint and parameters. I try Karens-MacBook-Pro:docs kzeller$ curl -v -X -u Administrator:password http://10.3.3.63:8091/controller/failover -d optNode Could not resolve host: Administrator; nodename nor servname provided, or not known Closing connection #0 curl: (6) Could not resolve host: Administrator; nodename nor servname provided, or not known About to connect() to 10.3.3.63 port 8091 (#0) Trying 10.3.3.63... connected Connected to 10.3.3.63 (10.3.3.63) port 8091 (#0) > -u /controller/failover HTTP/1.1 > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 > Host: 10.3.3.63:8091 > Accept: / > Content-Length: 7 > Content-Type: application/x-www-form-urlencoded > < HTTP/1.1 405 Method Not Allowed < Server: Couchbase Server 2.0.0-1976-rel-enterprise < Pragma: no-cache < Date: Tue, 19 Mar 2013 17:50:04 GMT < Content-Length: 18 < Cache-Control: no-cache < Connection #0 to host 10.3.3.63 left intact Closing connection #0 Thanks!
        Hide
        Aliaksey Artamonau Aliaksey Artamonau added a comment -

        curl -X POST -u Administrator:asdasd http://127.0.0.1:9000/controller/failOver -d otpNode=n_2@10.17.40.207

        Show
        Aliaksey Artamonau Aliaksey Artamonau added a comment - curl -X POST -u Administrator:asdasd http://127.0.0.1:9000/controller/failOver -d otpNode=n_2@10.17.40.207
        Show
        kzeller kzeller added a comment - Fixed: https://github.com/couchbase/docs/commit/d00de51b9fcb00f2ae3dade19bdfa0567195a71e
        Show
        kzeller kzeller added a comment - Fixed: https://github.com/couchbase/docs/commit/d00de51b9fcb00f2ae3dade19bdfa0567195a71e
        Hide
        dipti Dipti Borkar added a comment -

        can't find this in the manual yet. Can you please point to the page in the manual? Thanks !

        Show
        dipti Dipti Borkar added a comment - can't find this in the manual yet. Can you please point to the page in the manual? Thanks !
        Show
        kzeller kzeller added a comment - Couple days ago: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-failover-node.html

          People

          • Assignee:
            kzeller kzeller
            Reporter:
            dipti Dipti Borkar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes