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

couchbase-cli: There is no description/example for cluster-edit, it is identical to cluster-init( Do we really need this duplication?)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      Description

      build 2.0.2-764

      1.I have not found any mention about cluster-edit in http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-cmdline-couchbase-cli.html
      2. help contains only:
      cluster-edit modify cluster settings
      (there is no information on the parameters)
      3. seems like parameters for cluster-edit & cluster-init are identical and are interchangeable

      [root@localhost bin]# ./couchbase-cli cluster-edit -c localhost:8091 -u Administrator -p password
      SUCCESS: init localhost
      [root@localhost bin]# ./couchbase-cli cluster-edit -c localhost:8091 -u Administrator -p password --cluster-init-password=password1
      SUCCESS: init localhost
      [root@localhost bin]# ./couchbase-cli cluster-edit -c localhost:8091 -u Administrator -p password --cluster-init-password=password1
      ERROR: unable to access the REST API - please check your username (-u) and password (-p)
      [root@localhost bin]# ./couchbase-cli cluster-edit -c localhost:8091 -u Administrator -p password1 --cluster-init-password=password
      SUCCESS: init localhost
      [root@localhost bin]# ./couchbase-cli cluster-init -c localhost:8091 -u Administrator -p password --cluster-init-password=password1
      SUCCESS: init localhost

      I believe that we need to correct such conflict

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

        Activity

        Hide
        steve Steve Yen added a comment -

        Hi Bin,
        Besides the usage/help, can you also add more info / clarity about --cluster-edit (wiki page, pointer to func spec, etc?) for tech-docs team?
        Thanks,
        Steve

        Show
        steve Steve Yen added a comment - Hi Bin, Besides the usage/help, can you also add more info / clarity about --cluster-edit (wiki page, pointer to func spec, etc?) for tech-docs team? Thanks, Steve
        Hide
        bcui Bin Cui added a comment -

        We have paragraph in spec to talk about cluster-edit.
        cluster-init / cluster-edit
        --cluster-username=Administrator same as cluster-init-username
        --cluster-password=Password same as cluster-init-password
        --cluster-port=8080 same as cluster-init-port
        --cluster-ramsize=300 same as cluster-init-ramsize

        The intention to introduce cluster-edit is to get rid of confusion about the name of cluster-init in the first place. After a cluster is created, customers are hesitate to use cluster-init again to modify any cluster-init-parameters. New set of cluster-<paarameter> options are more appropriate for both init/edit cases.

        http://review.couchbase.org/#/c/25949/

        Show
        bcui Bin Cui added a comment - We have paragraph in spec to talk about cluster-edit. cluster-init / cluster-edit --cluster-username=Administrator same as cluster-init-username --cluster-password=Password same as cluster-init-password --cluster-port=8080 same as cluster-init-port --cluster-ramsize=300 same as cluster-init-ramsize The intention to introduce cluster-edit is to get rid of confusion about the name of cluster-init in the first place. After a cluster is created, customers are hesitate to use cluster-init again to modify any cluster-init-parameters. New set of cluster-<paarameter> options are more appropriate for both init/edit cases. http://review.couchbase.org/#/c/25949/
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify / close.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify / close.
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        fixed

        Show
        andreibaranouski Andrei Baranouski added a comment - fixed

          People

          • Assignee:
            andreibaranouski Andrei Baranouski
            Reporter:
            andreibaranouski Andrei Baranouski
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes