neutron-rally-task fails on stable/rocky: SyntaxError: invalid syntax

Bug #1902775 reported by Bernard Cafarelli
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Bernard Cafarelli

Bug Description

Now that linuxbridge job is fixed on that branch, it is rally job turn. Some recent failures:
https://zuul.opendev.org/t/openstack/build/9d0eb20faf0d47128e123abda6c2f894
https://zuul.opendev.org/t/openstack/build/f04ac29742cc4750ada366ebba1f2d8b

Same error:
2020-11-03 16:47:03.768342 | controller | ++ /opt/stack/rally-openstack/devstack/plugin.sh:source:17 : echo_summary 'Initializing Rally-OpenStack'
2020-11-03 16:47:03.770975 | controller | ++ ./stack.sh:echo_summary:440 : [[ -t 3 ]]
2020-11-03 16:47:03.773583 | controller | ++ ./stack.sh:echo_summary:446 : echo -e Initializing Rally-OpenStack
2020-11-03 16:47:03.776354 | controller | ++ /opt/stack/rally-openstack/devstack/plugin.sh:source:18 : init_rally
2020-11-03 16:47:03.779017 | controller | ++ /opt/stack/rally-openstack/devstack/lib/rally:init_rally:135 : recreate_database rally utf8
2020-11-03 16:47:03.781742 | controller | ++ lib/database:recreate_database:112 : local db=rally
2020-11-03 16:47:03.784508 | controller | ++ lib/database:recreate_database:113 : recreate_database_mysql rally
2020-11-03 16:47:03.786891 | controller | ++ lib/databases/mysql:recreate_database_mysql:55 : local db=rally
2020-11-03 16:47:03.789347 | controller | ++ lib/databases/mysql:recreate_database_mysql:56 : mysql -uroot -psecretdatabase -h127.0.0.1 -e 'DROP DATABASE IF EXISTS rally;'
2020-11-03 16:47:03.793603 | controller | mysql: [Warning] Using a password on the command line interface can be insecure.
2020-11-03 16:47:03.827334 | controller | ++ lib/databases/mysql:recreate_database_mysql:57 : mysql -uroot -psecretdatabase -h127.0.0.1 -e 'CREATE DATABASE rally CHARACTER SET utf8;'
2020-11-03 16:47:03.830713 | controller | mysql: [Warning] Using a password on the command line interface can be insecure.
2020-11-03 16:47:03.863165 | controller | ++ /opt/stack/rally-openstack/devstack/lib/rally:init_rally:137 : rally --config-file /etc/rally/rally.conf db recreate
2020-11-03 16:47:04.675544 | controller | Traceback (most recent call last):
2020-11-03 16:47:04.675631 | controller | File "/usr/local/bin/rally", line 7, in <module>
2020-11-03 16:47:04.675662 | controller | from rally.cli.main import main
2020-11-03 16:47:04.675691 | controller | File "/usr/local/lib/python2.7/dist-packages/rally/cli/main.py", line 20, in <module>
2020-11-03 16:47:04.675719 | controller | from rally.cli import cliutils
2020-11-03 16:47:04.675746 | controller | File "/usr/local/lib/python2.7/dist-packages/rally/cli/cliutils.py", line 28, in <module>
2020-11-03 16:47:04.675774 | controller | from rally import api
2020-11-03 16:47:04.675801 | controller | File "/usr/local/lib/python2.7/dist-packages/rally/api.py", line 29, in <module>
2020-11-03 16:47:04.675829 | controller | from rally.common import logging
2020-11-03 16:47:04.675856 | controller | File "/usr/local/lib/python2.7/dist-packages/rally/common/logging.py", line 337
2020-11-03 16:47:04.675883 | controller | f"Module `{target}` moved to `{new_module}` since Rally v{release}. "
2020-11-03 16:47:04.675910 | controller | ^
2020-11-03 16:47:04.675949 | controller | SyntaxError: invalid syntax
2020-11-03 16:47:04.709052 | controller | + /opt/stack/rally-openstack/devstack/lib/rally:init_rally:1 : exit_trap
2020-11-03 16:47:04.711587 | controller | + ./stack.sh:exit_trap:521 : local r=1

Looks like we may need to pin some other component?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/761391

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/rocky)

Reviewed: https://review.opendev.org/761391
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=8fefd6e15ba84c6f52bc896e1b4f82f9752a25f8
Submitter: Zuul
Branch: stable/rocky

commit 8fefd6e15ba84c6f52bc896e1b4f82f9752a25f8
Author: Bernard Cafarelli <email address hidden>
Date: Wed Nov 4 11:40:12 2020 +0100

    [stable/rocky] Drop rally job

    We already had rally-openstack pinned, but not rally itself (global
    upper-constraints do not limit rally, and pinned rally-openstack only
    specifies a minimum version)
    With rally itself not supporting python 2 anymore, this causes the
    neutron-rally-task to fail on rocky. As this is an older EM branch, drop
    the job in this branch (newer branches still run rally, and queens also
    as it does not use rally-openstack)

    Change-Id: I70c5620e176bdb07346ea3875ca35e90dd6711f5
    Closes-Bug: #1902775

tags: added: in-stable-rocky
Changed in neutron:
importance: Undecided → High
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

https://review.opendev.org/761391 is merged, marking this fixed

Changed in neutron:
assignee: nobody → Bernard Cafarelli (bcafarel)
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron rocky-eol

This issue was fixed in the openstack/neutron rocky-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.