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

remove cbclusterstats from 2.0 (cbclusterstats doesn't work with python version less then 2.6)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • 2.0
    • tools
    • Security Level: Public
    • None

    Description

      [root@cen-2708 tools]# ./cbclusterstats -c 10.3.121.63:8091 -u Administrator -p password
      /opt/couchbase/lib/python
      bucket: bucket0
      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/collector.py", line 144, in get_bucketlist
      c = buckets.BucketStats(bucket_name)
      File "/opt/couchbase/lib/python/buckets.py", line 140, in _init_
      self.rest_cmd = rest_cmds['bucket-stats'].format(bucket_name)
      AttributeError: 'str' object has no attribute 'format'
      [root@cen-2708 tools]# python
      Python 2.4.3 (#1, Feb 22 2012, 16:05:45)
      [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
      Type "help", "copyright", "credits" or "license" for more information.

      string format was added in python2.6

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            andreibaranouski Andrei Baranouski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty