Project

General

Profile

Actions

Bug #53095

closed

tempest dependency issue with 'PrettyTable'

Added by Casey Bodley over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
tempest
Backport:
octopus pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

2021-10-28T18:39:33.480 INFO:teuthology.orchestra.run.smithi102.stdout:ERROR: invocation failed (exit code 1), logfile: /home/ubuntu/cephtest/tempest/.tox/venv/log/venv-1.log
2021-10-28T18:39:33.480 INFO:teuthology.orchestra.run.smithi102.stdout:================================== log start ===================================
2021-10-28T18:39:33.480 INFO:teuthology.orchestra.run.smithi102.stdout:/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/pip/_vendor/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
2021-10-28T18:39:33.481 INFO:teuthology.orchestra.run.smithi102.stdout:  warnings.warn(
2021-10-28T18:39:33.481 INFO:teuthology.orchestra.run.smithi102.stdout:Ignoring sphinx: markers 'python_version == "2.7"' don't match your environment
2021-10-28T18:39:33.481 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting pbr!=2.1.0,>=2.0.0
2021-10-28T18:39:33.481 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached pbr-5.6.0-py2.py3-none-any.whl (111 kB)
2021-10-28T18:39:33.481 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting cliff!=2.9.0,>=2.8.0
2021-10-28T18:39:33.482 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading cliff-3.9.0-py3-none-any.whl (80 kB)
2021-10-28T18:39:33.482 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting jsonschema>=2.6.0
2021-10-28T18:39:33.482 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
2021-10-28T18:39:33.482 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting testtools>=2.2.0
2021-10-28T18:39:33.483 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading testtools-2.5.0-py3-none-any.whl (181 kB)
2021-10-28T18:39:33.483 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting paramiko>=2.0.0
2021-10-28T18:39:33.483 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading paramiko-2.8.0-py2.py3-none-any.whl (206 kB)
2021-10-28T18:39:33.484 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting netaddr>=0.7.18
2021-10-28T18:39:33.484 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
2021-10-28T18:39:33.484 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting oslo.concurrency>=3.26.0
2021-10-28T18:39:33.484 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading oslo.concurrency-4.4.1-py3-none-any.whl (47 kB)
2021-10-28T18:39:33.484 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting oslo.config>=5.2.0
2021-10-28T18:39:33.485 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading oslo.config-8.7.1-py3-none-any.whl (128 kB)
2021-10-28T18:39:33.485 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting oslo.log>=3.36.0
2021-10-28T18:39:33.485 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading oslo.log-4.6.1-py3-none-any.whl (71 kB)
2021-10-28T18:39:33.485 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting stestr>=1.0.0
2021-10-28T18:39:33.486 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading stestr-3.2.1-py3-none-any.whl (125 kB)
2021-10-28T18:39:33.486 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting oslo.serialization!=2.19.1,>=2.18.0
2021-10-28T18:39:33.486 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading oslo.serialization-4.2.0-py3-none-any.whl (25 kB)
2021-10-28T18:39:33.486 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting oslo.utils>=3.33.0
2021-10-28T18:39:33.486 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached oslo.utils-4.11.0-py3-none-any.whl (101 kB)
2021-10-28T18:39:33.487 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting six>=1.10.0
2021-10-28T18:39:33.487 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
2021-10-28T18:39:33.487 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting fixtures>=3.0.0
2021-10-28T18:39:33.487 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached fixtures-3.0.0-py2.py3-none-any.whl (67 kB)
2021-10-28T18:39:33.488 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting PyYAML>=3.12
2021-10-28T18:39:33.488 INFO:teuthology.orchestra.run.smithi102.stdout:  Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
2021-10-28T18:39:33.488 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting python-subunit>=1.0.0
2021-10-28T18:39:33.488 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached python_subunit-1.4.0-py2.py3-none-any.whl (106 kB)
2021-10-28T18:39:33.488 INFO:teuthology.orchestra.run.smithi102.stdout:Collecting stevedore>=1.20.0
2021-10-28T18:39:33.489 INFO:teuthology.orchestra.run.smithi102.stdout:  Using cached stevedore-3.5.0-py3-none-any.whl (49 kB)
2021-10-28T18:39:33.489 INFO:teuthology.orchestra.run.smithi102.stdout:/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/pip/_vendor/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
2021-10-28T18:39:33.489 INFO:teuthology.orchestra.run.smithi102.stdout:  warnings.warn(
2021-10-28T18:39:33.489 INFO:teuthology.orchestra.run.smithi102.stdout:ERROR: Cannot install PrettyTable<0.8 and >=0.7.1 because these package versions have conflicting dependencies.
2021-10-28T18:39:33.490 INFO:teuthology.orchestra.run.smithi102.stdout:
2021-10-28T18:39:33.490 INFO:teuthology.orchestra.run.smithi102.stdout:The conflict is caused by:
2021-10-28T18:39:33.490 INFO:teuthology.orchestra.run.smithi102.stdout:    The user requested PrettyTable<0.8 and >=0.7.1
2021-10-28T18:39:33.490 INFO:teuthology.orchestra.run.smithi102.stdout:    The user requested (constraint) prettytable===2.2.1
2021-10-28T18:39:33.490 INFO:teuthology.orchestra.run.smithi102.stdout:
2021-10-28T18:39:33.491 INFO:teuthology.orchestra.run.smithi102.stdout:To fix this you could try to:
2021-10-28T18:39:33.491 INFO:teuthology.orchestra.run.smithi102.stdout:1. loosen the range of package versions you've specified
2021-10-28T18:39:33.491 INFO:teuthology.orchestra.run.smithi102.stdout:2. remove package versions to allow pip attempt to solve the dependency conflict
2021-10-28T18:39:33.491 INFO:teuthology.orchestra.run.smithi102.stdout:
2021-10-28T18:39:33.492 INFO:teuthology.orchestra.run.smithi102.stdout:ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
2021-10-28T18:39:33.492 INFO:teuthology.orchestra.run.smithi102.stdout:
2021-10-28T18:39:33.492 INFO:teuthology.orchestra.run.smithi102.stdout:=================================== log end ====================================
2021-10-28T18:39:33.492 INFO:teuthology.orchestra.run.smithi102.stdout:ERROR: could not install deps [-chttps://releases.openstack.org/constraints/upper/master, -r/home/ubuntu/cephtest/tempest/requirements.txt, -r/home/ubuntu/cephtest/tempest/doc/requirements.txt]; v = InvocationError('/home/ubuntu/cephtest/tempest/.tox/venv/bin/pip install -chttps://releases.openstack.org/constraints/upper/master -r/home/ubuntu/cephtest/tempest/requirements.txt -r/home/ubuntu/cephtest/tempest/doc/requirements.txt', 1)
2021-10-28T18:39:33.492 INFO:teuthology.orchestra.run.smithi102.stdout:___________________________________ summary ____________________________________
2021-10-28T18:39:33.493 INFO:teuthology.orchestra.run.smithi102.stdout:ERROR:   venv: could not install deps [-chttps://releases.openstack.org/constraints/upper/master, -r/home/ubuntu/cephtest/tempest/requirements.txt, -r/home/ubuntu/cephtest/tempest/doc/requirements.txt]; v = InvocationError('/home/ubuntu/cephtest/tempest/.tox/venv/bin/pip install -chttps://releases.openstack.org/constraints/upper/master -r/home/ubuntu/cephtest/tempest/requirements.txt -r/home/ubuntu/cephtest/tempest/doc/requirements.txt', 1)
2021-10-28T18:39:33.503 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-10-28T18:39:33.504 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/contextutil.py", line 31, in nested
    vars.append(enter())
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_alimaredia_ceph_454cc8a18c4c3851de5976d3e36e42644dbb1a70/qa/tasks/tempest.py", line 84, in setup_venv
    '-e', 'venv', '--notest'
  File "/home/teuthworker/src/github.com_alimaredia_ceph_454cc8a18c4c3851de5976d3e36e42644dbb1a70/qa/tasks/tempest.py", line 22, in run_in_tempest_dir
    **kwargs
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/cluster.py", line 64, in run
    return [remote.run(**kwargs) for remote in remotes]
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/cluster.py", line 64, in <listcomp>
    return [remote.run(**kwargs) for remote in remotes]
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/remote.py", line 509, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/run.py", line 455, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/orchestra/run.py", line 183, in _raise_for_status
    node=self.hostname, label=self.label
teuthology.exceptions.CommandFailedError: Command failed on smithi102 with status 1: 'cd /home/ubuntu/cephtest/tempest && /home/ubuntu/cephtest/tox-venv/bin/tox -e venv --notest'

example: http://qa-proxy.ceph.com/teuthology/amaredia-2021-10-28_18:15:55-rgw-master-distro-basic-smithi/6465230/teuthology.log


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #53224: octopus: tempest dependency issue with 'PrettyTable'ResolvedCory SnyderActions
Copied to rgw - Backport #53225: pacific: tempest dependency issue with 'PrettyTable'ResolvedCory SnyderActions
Actions #1

Updated by Casey Bodley over 2 years ago

  • Assignee set to Casey Bodley
Actions #2

Updated by Casey Bodley over 2 years ago

The conflict is caused by:
The user requested PrettyTable<0.8 and >=0.7.1
The user requested (constraint) prettytable===2.2.1

ERROR: could not install deps [-chttps://releases.openstack.org/constraints/upper/master, -r/home/ubuntu/cephtest/tempest/requirements.txt, -r/home/ubuntu/cephtest/tempest/doc/requirements.txt]

the requirements in /home/ubuntu/cephtest/tempest/requirements.txt and /home/ubuntu/cephtest/tempest/doc/requirements.txt come from the tempest repo at commit d43223773d75d2e82fb33a1281038e611c41d0f3. from that requirements.txt:

PrettyTable<0.8,>=0.7.1 # BSD

but this tox command is also pulling in https://releases.openstack.org/constraints/upper/master from the master branch, which pins:

prettytable===2.4.0
Actions #3

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 43847
Actions #4

Updated by Laura Flores over 2 years ago

Actions #5

Updated by Casey Bodley over 2 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to octopus pacific
Actions #6

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53224: octopus: tempest dependency issue with 'PrettyTable' added
Actions #7

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53225: pacific: tempest dependency issue with 'PrettyTable' added
Actions #8

Updated by Loïc Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF