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

Multiple tools broken on Ubuntu16 default builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.0.0
    • 5.0.0
    • build
    • None
    • Untriaged
    • Ubuntu 64-bit
    • Unknown

    Description

      On basic Ubuntu16 installs, by default there is nothing linked to 'python' (tested on both a vagrant VM and an EC2 Ubuntu16 install).

      The following python binaries are installed by default:

      $ ls /usr/bin/py*
      /usr/bin/py3clean    /usr/bin/py3versions  /usr/bin/pydoc3    /usr/bin/pygettext3    /usr/bin/python3    /usr/bin/python3.5m        /usr/bin/python3-jsonpatch    /usr/bin/python3m
      /usr/bin/py3compile  /usr/bin/pybuild      /usr/bin/pydoc3.5  /usr/bin/pygettext3.5  /usr/bin/python3.5  /usr/bin/python3-jsondiff  /usr/bin/python3-jsonpointer
      

      Ubuntu16 took the decision to not symlink python3 to python (as this would break a lot of existing tools), although in future releases (perhaps 18) they will do this.
      Python2 is not even installed at all, although it is available as an apt package.

      All of our python tools use '/usr/bin/env python' (system python) to run, below are a notable few:

      • cbcollect_info
      • cbbackup
      • cbrestore
      • cbstats
      • couchbase_cli

      These tools are therefore completely useless by default.
      Unfortunately the existing code will not work with python3, so we need a way of ensuring that python2 is installed for these platforms.

      I guess in future we'd have to work towards converting all of these tools to Python3 too, although that's probably a way off yet.

      Attachments

        Issue Links

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

          Activity

            People

              matt.carabine Matt Carabine (Inactive)
              matt.carabine Matt Carabine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty