Bug 2056839

Summary: Conflicting dependencies - "Cannot install PrettyTable<0.8 and >=0.7.1"
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: python-glanceclientAssignee: Cyril Roelandt <cyril>
Status: CLOSED ERRATA QA Contact: msava
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: apevec, athomas, eglynn, msava, tshefi
Target Milestone: gaKeywords: Triaged
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-glanceclient-3.3.0-0.20220315161905.f802c71 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:19:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arie Bregman 2022-02-22 07:32:16 UTC
We are unable to run successfully CI for python-glanceclient OSP 17 due to conflicting dependencies:

"""
ERROR: Cannot install PrettyTable<0.8 and >=0.7.1 because these package versions have conflicting dependencies.

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

To reproduce:

1. Clone python-glanceclient
2. Checkout OSP 17 branch
3. Run tox

Comment 2 Cyril Roelandt 2022-02-28 22:21:59 UTC
$ tox -epy3   # OK (uses py39)
$ tox -epy39  # OK
$ tox -epy310 # OK
$ tox -epy38  # Fails
$ tox -epep8  # Fails if I use Python3.8 as basepython


Not sure what is happening with Python 3.8 here, but this seems valid.

Unfortunately, the downstream glanceclient CI for OSP17 is broken (flake8 is not installed). Is there any way for you to try and cherry-pick de0e9d9510e997c5d49fc28e7175e326f216b038 , see if it helps?

Comment 5 Cyril Roelandt 2022-03-23 20:40:12 UTC
@Arie: Can you confirm your CI works with the latest RPM? If so, we can mark this bug as VERIFIED.

Comment 7 msava 2022-06-15 11:03:43 UTC
Successfully verified .Looks Good


stack@undercloud-0 python-glanceclient]$ rpm -qa | grep glanceclient
python3-glanceclient-3.3.0-0.20220315170831.f802c71.el9ost.noarch

[stack@undercloud-0 python-glanceclient]$ git checkout remotes/origin/stable/yoga
Note: switching to 'remotes/origin/stable/yoga'.

pyenv local 3.8.0 3.10.0

tox output:
py3: commands succeeded
  py38: commands succeeded
  py39: commands succeeded
  py310: commands succeeded
  pep8: commands succeeded
  congratulations :)

Comment 8 msava 2022-06-15 12:05:35 UTC
py310 test not passed ((

Comment 9 msava 2022-06-15 12:41:06 UTC
Verified


1.[stack@undercloud-0 python-glanceclient]$ rpm -qa | grep glanceclient
    Python3-glanceclient-3.3.0-0.20220315170831.f802c71.el9ost.noarch

2.git clone "https://code.engineering.redhat.com/gerrit/python-glanceclient"
  git checkout remotes/origin/rhos-17.0-patches

3.pyenv local 3.8.0 3.10.0

4.Tox output:
  py3: commands succeeded
  py38: commands succeeded
  py39: commands succeeded
  py310: commands succeeded
  pep8: commands succeeded
  congratulations :)

Looks Good.

Comment 13 errata-xmlrpc 2022-09-21 12:19:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543