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)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      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

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

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Steve,

        is cbclusterstat compatible with python 2.4 ?

        Show
        farshid Farshid Ghods (Inactive) added a comment - Steve, is cbclusterstat compatible with python 2.4 ?
        Hide
        steve Steve Yen added a comment -

        bug-scrub - let's remove cbclusterstats from 2.0 since the plan is to include cbhealthcheck into 2.0.1/2.0.2.

        Show
        steve Steve Yen added a comment - bug-scrub - let's remove cbclusterstats from 2.0 since the plan is to include cbhealthcheck into 2.0.1/2.0.2.
        Show
        bcui Bin Cui added a comment - http://review.couchbase.org/#/c/22831/

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            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