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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0.0
    • 5.5.0
    • tools
    • Untriaged
    • Centos 64-bit
    • Unknown

    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)
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty