tripleoclient: unit tests are failing because of missing glanceclient

Bug #1995961 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Description
===========
Currently unit tests of python-tripleoclient are consistently failing, due to missing glanceclient.

example:
https://zuul.opendev.org/t/openstack/build/42f40bbfb0104025947012c0eee7f570
https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_42f/862972/6/check/openstack-tox-py38/42f40bb/job-output.txt

2022-11-08 08:37:22.716387 | ubuntu-focal | Failed to import test module: tripleoclient.tests.v1.overcloud_image.test_overcloud_image
2022-11-08 08:37:22.716403 | ubuntu-focal | Traceback (most recent call last):
2022-11-08 08:37:22.716415 | ubuntu-focal | File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
2022-11-08 08:37:22.716426 | ubuntu-focal | module = self._get_module_from_name(name)
2022-11-08 08:37:22.716437 | ubuntu-focal | File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
2022-11-08 08:37:22.716447 | ubuntu-focal | __import__(name)
2022-11-08 08:37:22.716458 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/python-tripleoclient/tripleoclient/tests/v1/overcloud_image/test_overcloud_image.py", line 26, in <module>
2022-11-08 08:37:22.716469 | ubuntu-focal | from tripleoclient.v1 import overcloud_image
2022-11-08 08:37:22.716479 | ubuntu-focal | File "/home/zuul/src/opendev.org/openstack/python-tripleoclient/tripleoclient/v1/overcloud_image.py", line 25, in <module>
2022-11-08 08:37:22.716490 | ubuntu-focal | from glanceclient.common.progressbar import VerboseFileWrapper
2022-11-08 08:37:22.716500 | ubuntu-focal | ModuleNotFoundError: No module named 'glanceclient'
2022-11-08 08:37:22.716513 | ubuntu-focal |

The current tripleoclient requires glanceclient and the library was indirectly required by tripleo-common but we removed that dependency a while ago by [1].

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Changed in tripleo:
status: New → In Progress
Rabi Mishra (rabi)
Changed in tripleo:
importance: Undecided → High
importance: High → Critical
milestone: none → antelope-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/864023
Committed: https://opendev.org/openstack/python-tripleoclient/commit/81fbe6aa6a207db050215838b265ab3fab8ed25c
Submitter: "Zuul (22348)"
Branch: master

commit 81fbe6aa6a207db050215838b265ab3fab8ed25c
Author: rabi <email address hidden>
Date: Tue Nov 8 21:49:16 2022 +0530

    Use VerboseFileWrapper from osc

    We don't have glanceclient in requirements.

    Closes-Bug: #1995961
    Change-Id: I2a36b93bd2bc2fea0aadab05ea3d657d47ba5d93

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 20.0.0

This issue was fixed in the openstack/python-tripleoclient 20.0.0 release.

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.