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

error when running - admin-role-manage with switch --get-roles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • tools
    • Untriaged
    • Ubuntu 64-bit
    • Yes

    Description

      Execute the following command:

       

      root@node1-cb450-ubuntu14:/opt/couchbase/bin# ./couchbase-cli admin-role-manage --cluster=localhost -u Administrator -p password --get-roles

      DEPRECATED: Please use the user-manage command instead

      Traceback (most recent call last):

        File "/opt/couchbase/lib/python/couchbase-cli", line 20, in <module>

          main()

        File "/opt/couchbase/lib/python/couchbase-cli", line 15, in main

          cli.execute(args)

        File "/opt/couchbase/lib/python/cbmgr.py", line 336, in execute

          opts.klass().execute(opts)

        File "/opt/couchbase/lib/python/cbmgr.py", line 461, in execute

          data, errors = rest.get_roles()

      AttributeError: 'ClusterManager' object has no attribute 'get_roles'

       

      Even though admin-role-manage is deprecated, there should not be any error in command execution. 

       

      Attachments

        For Gerrit Dashboard: MB-22771
        # Subject Branch Project Status CR V

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            ritam.sharma Ritam Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty