Zuul/Tox: distcloud: Tests fail with TypeError

Bug #2073917 reported by Leonardo Fagundes Luz Serrano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Leonardo Fagundes Luz Serrano

Bug Description

Brief Description
-----------------
Some tests fail due to missing STX deps

In this case. distcloud repo zuul tests failing with:
TypeError: float() argument must be a string or a number, not 'tuple'

which is due to tests not installing:
https://opendev.org/starlingx/upstream/src/branch/master/openstack/python-keystoneauth1

Severity
--------
<Major: System/Feature is usable but degraded>
Reviews that depend on STX packages cannot be properly tested

Steps to Reproduce
------------------
Post review to distcloud with code depending on a STX custom pkg

Expected Behavior
------------------
STX deps are installed before tests

Actual Behavior
----------------
STX deps are not installed before test

Reproducibility
---------------
Reproducible

System Configuration
--------------------
NA

Branch/Pull Time/Commit
-----------------------
master - July 23th 2024

Last Pass
---------
This is a new test scenario

Timestamp/Logs
--------------
https://zuul.opendev.org/t/openstack/build/9b370022e0be4f3c8634b4ac05d1d890

Test Activity
-------------
Zuul test after posting review

Workaround
----------
Unknown

Changed in starlingx:
assignee: nobody → Leonardo Fagundes Luz Serrano (lfagunde)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/924676
Committed: https://opendev.org/starlingx/distcloud/commit/aef84c86460abfe9dcd1874ce978b1a09056f4f6
Submitter: "Zuul (22348)"
Branch: master

commit aef84c86460abfe9dcd1874ce978b1a09056f4f6
Author: Leonardo Fagundes Luz Serrano <email address hidden>
Date: Mon Jul 22 16:35:15 2024 -0300

    Zuul/Tox: Install custom python3-keystoneauth1

    Some packages available upstream have custom versions
    in STX repos. Tests need to be against these custom
    dependencies. In this case, distcloud repo requires
    python3-keystoneauth1.

    This commit adds logic for installing the latest
    available STX build of test dependencies.

    Test Plan:
    pass - Install bindep deps and requirements, then run
           the ansible playbook to install STX deps
           tools/gate/playbooks/install-stx-custom-deps.yaml
           tox -epy39 -c distributedcloud/tox.ini

    Closes-Bug: 2073917

    Change-Id: I1c025de9699ca3b388b81a5d77e2c0cd46ce9d7a
    Signed-off-by: Leonardo Fagundes Luz Serrano <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
tags: added: stx.10.0 stx.zuul
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.