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

CLONE - cbupgrade can fail due to incorrect use of .format for older python runtime

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      cbupgrade has a number of print statements which will trigger failure on older (old python) systems (certainly seen on centos6)

      print("message {}".format(thing)) can yield the following error

         '{}'.format(thing))
      ValueError: zero length field name in format
      

      Code was added by MB-26377 which adds the faulty prints

      The older python runtime requires the {} to be indexed e.g.

      print("message

      {0}

      ".format(thing)) is safe

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            thuan Thuan Nguyen
            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