py27 zuul test fails due to new release of stestr

Bug #1869777 reported by Gerry Kopec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Gerry Kopec

Bug Description

Encountered zuul py27 failure when pushing change to starlingx/fault repo:
https://review.opendev.org/#/c/715769/1

tox -epy27 -c fm-rest-api/fm/tox.ini

non-zero return code

py27 create: /home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/.tox/py27
py27 installdeps: -r/home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/test-requirements.txt, -e/home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/../../..//config/tsconfig/tsconfig, -e/home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/../../..//config/sysinv/cgts-client/cgts-client, -e/home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/../../..//fault/fm-api, -e/home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/../../..//fault/fm-rest-api/fm
py27 installed: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support,alembic==1.4.2,amqp==2.5.2,appdirs==1.4.3,Babel==2.8.0,backports.functools-lru-cache==1.6.1,bashate==0.6.0,beautifulsoup4==4.8.2,cachetools==3.1.1,certifi==2019.11.28,cffi==1.14.0,-e git+file:///dev/null@16477935845e1c27b4c9d31743e359b0aa94a948#egg=cgtsclient&subdirectory=sysinv/cgts-client/cgts-client,chardet==3.0.4,cliff==2.18.0,cmd2==0.8.9,configparser==4.0.2,contextlib2==0.6.0.post1,cryptography==2.8,Cython==0.29.16,debtcollector==1.22.0,decorator==4.4.2,dnspython==1.16.0,dogpile.cache==0.9.0,entrypoints==0.3,enum34==1.1.10,eventlet==0.25.1,extras==1.0.0,fasteners==0.15,fixtures==3.0.0,flake8==2.5.5,-e git+file:///dev/null@2b0842337832cc49b98ef505026981fe8b498456#egg=fm&subdirectory=fm-rest-api/fm,-e git+file:///dev/null@2b0842337832cc49b98ef505026981fe8b498456#egg=fm_api&subdirectory=fm-api,funcsigs==1.0.2,future==0.18.2,futures==3.3.0,futurist==1.10.0,greenlet==0.4.15,hacking==0.12.0,httplib2==0.17.0,idna==2.9,importlib-metadata==1.6.0,ipaddress==1.0.23,iso8601==0.1.12,Jinja2==2.11.1,jmespath==0.9.5,jsonpatch==1.25,jsonpointer==2.0,keyring==18.0.1,keystoneauth1==3.18.0,keystonemiddleware==8.0.0,kombu==4.6.8,linecache2==1.0.0,logutils==0.3.5,Mako==1.1.2,MarkupSafe==1.1.1,mccabe==0.2.1,mock==3.0.5,monotonic==1.5,msgpack==1.0.0,munch==2.5.0,netaddr==0.7.19,netifaces==0.10.9,openstacksdk==0.45.0,os-client-config==2.0.0,os-service-types==1.7.0,osc-lib==2.0.0,oslo.cache==1.38.1,oslo.concurrency==3.31.0,oslo.config==7.0.0,oslo.context==2.23.0,oslo.db==6.0.0,oslo.i18n==3.25.1,oslo.log==3.45.2,oslo.messaging==10.5.0,oslo.middleware==3.38.1,oslo.policy==2.4.1,oslo.serialization==2.29.2,oslo.service==1.41.1,oslo.utils==3.42.1,oslo.versionedobjects==1.37.0,Paste==3.4.0,PasteDeploy==2.1.0,pathlib2==2.3.5,pathspec==0.7.0,pbr==5.4.4,pecan==1.3.3,pep8==1.5.7,prettytable==0.7.2,pycadf==2.10.0,pycparser==2.20,pyflakes==0.8.1,pyinotify==0.9.6,pyparsing==2.4.6,pyperclip==1.8.0,python-dateutil==2.8.1,python-editor==1.0.4,python-keystoneclient==3.22.0,python-mimeparse==1.6.0,python-neutronclient==7.1.0,python-subunit==1.4.0,pytz==2019.3,PyYAML==5.3.1,repoze.lru==0.7,requests==2.23.0,requestsexceptions==1.4.0,rfc3986==1.3.2,Routes==2.4.1,scandir==1.10.0,SecretStorage==2.3.1,simplegeneric==0.8.1,simplejson==3.17.0,singledispatch==3.4.0.3,six==1.14.0,soupsieve==1.9.5,SQLAlchemy==1.3.15,sqlalchemy-migrate==0.13.0,sqlparse==0.3.1,statsd==3.3.0,stestr==3.0.0,stevedore==1.32.0,subprocess32==3.5.4,Tempita==0.5.2,testresources==2.0.1,testscenarios==0.5.0,testtools==2.4.0,traceback2==1.4.0,-e git+file:///dev/null@16477935845e1c27b4c9d31743e359b0aa94a948#egg=tsconfig&subdirectory=tsconfig/tsconfig,unicodecsv==0.14.1,unittest2==1.1.0,urllib3==1.25.8,vine==1.3.0,voluptuous==0.11.7,waitress==1.4.3,wcwidth==0.1.9,WebOb==1.8.6,WebTest==2.0.34,wrapt==1.12.1,WSME==0.9.3,yamllint==1.21.0,yappi==1.2.3,zipp==1.2.0
py27 run-test-pre: PYTHONHASHSEED='4016148929'
py27 run-test: commands[0] | stestr run
Usage: run.py discover [options]

run.py discover: error: no such option: --list

=========================
Failures during discovery
=========================

================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
ERROR: InvocationError for command /home/zuul/src/opendev.org/starlingx/fault/fm-rest-api/fm/.tox/py27/bin/stestr run (exited with code 100)
___________________________________ summary ____________________________________
ERROR: py27: commands failed

Appears that a new version of stestr (3.0.0) was release Mar. 26 and does not support py27.
https://pypi.org/project/stestr/#history
https://pypi.org/project/stestr/3.0.0/
stestr v2.x.x release series will be the last series that supports Python 2. Support for Python 2.7 was dropped in stestr release 3.0.0.

We'll need to use an earlier version for py27 tests.
I hit this in starlingx/fault but this may impact other starlingx repos that use py27 and stestr.

Revision history for this message
Al Bailey (albailey1974) wrote :

Note: many of the starlingX repos use upper constraints from stein, which caps at 2.2.0

  https://github.com/openstack/requirements/blob/stable/stein/upper-constraints.txt#L297

Changed in starlingx:
assignee: nobody → Gerry Kopec (gerry-kopec)
Revision history for this message
Gerry Kopec (gerry-kopec) wrote :

Proposed fix for starlingx/fault:
https://review.opendev.org/#/c/716045/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fault (master)

Reviewed: https://review.opendev.org/716045
Committed: https://git.openstack.org/cgit/starlingx/fault/commit/?id=b70b9b5220940325844f4fb19d6e8a13c5e5bb1a
Submitter: Zuul
Branch: master

commit b70b9b5220940325844f4fb19d6e8a13c5e5bb1a
Author: Gerry Kopec <email address hidden>
Date: Mon Mar 30 14:43:36 2020 -0400

    Fix stestr version so py27 tox can pass

    stestr was upgraded to 3.0.0 on Mar. 26 and it does not support py27.
    Update test requirements accordingly so py27 tests will use earlier version.

    Change-Id: Ia481a4609d81ad4d225aeb6ec3ab0cc3a9e18ae5
    Closes-Bug: 1869777
    Signed-off-by: Gerry Kopec <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fault (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/716591

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / high priority - this failure would prevent code merges in the fault repo

tags: added: stx.4.0 stx.fault stx.zuul
Changed in starlingx:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fault (f/centos8)
Download full text (4.4 KiB)

Reviewed: https://review.opendev.org/716591
Committed: https://git.openstack.org/cgit/starlingx/fault/commit/?id=4dc4325ab032fa3ce40d5b12ee78670370f71017
Submitter: Zuul
Branch: f/centos8

commit b70b9b5220940325844f4fb19d6e8a13c5e5bb1a
Author: Gerry Kopec <email address hidden>
Date: Mon Mar 30 14:43:36 2020 -0400

    Fix stestr version so py27 tox can pass

    stestr was upgraded to 3.0.0 on Mar. 26 and it does not support py27.
    Update test requirements accordingly so py27 tests will use earlier version.

    Change-Id: Ia481a4609d81ad4d225aeb6ec3ab0cc3a9e18ae5
    Closes-Bug: 1869777
    Signed-off-by: Gerry Kopec <email address hidden>

commit ce56ce7ea57c06f4d1660c61221caf3fc32952da
Author: albailey <email address hidden>
Date: Tue Mar 10 16:22:44 2020 -0500

    Adding pylint zuul and tox target

    Adding a pylint tox target which only suppresses
    the error codes that are currently failing.
    This will prevent any of the passing checks from being
    broken by future submissions.
    The currently suppressed codes can be fixed by subsequent
    commits.

    Adds a zuul pylint target to invoke the new tox target.

    Unified the install_command in tox.ini to ensure
    the upper constraints are used.

    Change-Id: Id2fb8cbb7ce63f844a06403410d461c601822ad6
    Story: 2007082
    Task: 39020
    Signed-off-by: albailey <email address hidden>

commit 8fcd1cbe0346d9f28e5afe79373e16551838b926
Author: SidneyAn <email address hidden>
Date: Wed Jan 15 09:45:53 2020 +0800

    add test case for migration sync and version

    add test class DbSyncTestCase
    add test case for migration database sync

    Story: 2007082
    Task: 38152
    Depends-on: https://review.opendev.org/#/c/702823/
    Signed-off-by: SidneyAn <email address hidden>
    Signed-off-by: chenyan <email address hidden>
    Change-Id: I8121dedae7e4319a454dc128a591f74ef066c149

commit 170d4fefb72d3b48bc5ddeabb8daa67945b658c6
Author: SidneyAn <email address hidden>
Date: Thu Jan 16 16:46:44 2020 +0800

    Add test case to create alarm into database

    Add test class DbAlarmTestCase, DbTestCase
    Add fake database in tests/base.py.
    Add test case test_create_alarm

    Story: 2007082
    Task: 38085

    Depends-on: https://review.opendev.org/#/c/702175/
    Depends-on: https://review.opendev.org/#/c/702347/
    Change-Id: I906edc894c97fdeb8c52730e00fba765d33edc0f
    Signed-off-by: SidneyAn <email address hidden>

commit d73ba874571bdaeba24f856fb785749954a23c55
Author: SidneyAn <email address hidden>
Date: Fri Jan 17 13:56:12 2020 +0800

    add test framework for rest api tests

    this patch include:
    fake pecan app for api tests
    4 test cases:
      bad url
      setup
      get_root
      get_v1_root

    Story: 2007082
    Task: 38158
    Change-Id: I3f933b43aede43f25abca3327a9638a6fa88914c
    Signed-off-by: SidneyAn <email address hidden>

commit b1dfa14f0bcd6cc2460b589095d9695b794686d5
Author: albailey <email address hidden>
Date: Mon Mar 2 10:57:58 2020 -0600

    Fix py27 and py35 zuul jobs failing to setup

    As of March 1, when jobs run on ubuntu-xenial, they fail
...

Read more...

tags: added: in-f-centos8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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