Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7020

Modify MTR tests for Ubuntu 20.04 to include python2 (python 2.6 or higher) and python3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.6.x, 5.7.x, 8.0.x
    • Fix Version/s: 5.6.48-88.0, 5.7.30-33
    • Component/s: None
    • Labels:
      None

      Description

      MySQLdb for python2 is not available for Ubuntu Focal.
      Focal has only python3-mysqldb available.
      We need to convert MTR tests from python2 to python3.

      CURRENT_TEST: innodb_stress.innodb_stress
      sh: 1: python2: not found
      mysqltest: In included file ./suite/innodb_stress/include/innodb_stress.inc at line 85:
      included from /tmp/results/PS/mysql-test/suite/innodb_stress/t/innodb_stress.test at line 37:
      At line 85: command "$exec" failed
      
      Output from before failure:
      exec of 'python2 /tmp/results/PS//mysql-test/suite/innodb_stress/t/load_generator.py /tmp/results/PS/mysql-test/var/2/run/mysqld.1.pid 0 1000  2 10 root 127.0.0.1 13031 test 0 4096 /tmp/results/PS/mysql-test/var/tmp/2/load_generator 0 0 0' failed, error: 32512, status: 127, errno: 0
      
      worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
      [100%] innodb_stress.innodb_stress_blob         [ fail ]
              Test ended at 2020-04-30 15:22:05
      CURRENT_TEST: innodb_stress.innodb_stress_blob
      Traceback (most recent call last):
        File "/tmp/results/PS//mysql-test/suite/innodb_stress/t/load_generator.py", line 3, in <module>
          import MySQLdb
      ImportError: No module named MySQLdb
      mysqltest: In included file ./suite/innodb_stress/include/innodb_stress.inc at line 85:
      included from /tmp/results/PS/mysql-test/suite/innodb_stress/t/innodb_stress_blob.test at line 37:
      At line 85: command "$exec" failed
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              przemyslaw.skibinski Przemyslaw Skibinski
              Reporter:
              przemyslaw.skibinski Przemyslaw Skibinski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h