test_kube_get_version_states_ignore_unknown_version unit test sometimes fail

Bug #2018127 reported by Kaustubh Dhokte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Kaustubh Dhokte

Bug Description

Brief Description
-----------------
test_kube_get_version_states_ignore_unknown_version unit test in test_kubernetes.py fails intermittently with assertion error. See this https://zuul.opendev.org/t/openstack/build/e2387230c96c4069bca14b3ae3532e7f

Severity
--------
Minor

Steps to Reproduce
------------------
Run unit tests

Expected Behavior
------------------
test_kube_get_version_states_ignore_unknown_version passes everytime.

Actual Behavior
----------------
test_kube_get_version_states_ignore_unknown_version fails intermittently

Reproducibility
---------------
intermittent

System Configuration
--------------------
Dev Env

Branch/Pull Time/Commit
-----------------------
Stx master

Last Pass
---------

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

Test Activity
-------------
Unit testing

Workaround
----------
--

Changed in starlingx:
assignee: nobody → Kaustubh Dhokte (kdhokte)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/881895

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/881895
Committed: https://opendev.org/starlingx/config/commit/dbcc10507cecbeb9a3ba7932d0310f5ee76a284c
Submitter: "Zuul (22348)"
Branch: master

commit dbcc10507cecbeb9a3ba7932d0310f5ee76a284c
Author: kaustubh dhokte <email address hidden>
Date: Sat Apr 29 01:19:17 2023 +0000

    unknown kube version unit test: set system mode as duplex

    This change https://opendev.org/starlingx/config/commit/8c359198c8fc1d811d15f98fa3546fbfbd247d69
    added a condition to mark kube versions to be available if they
    are newer than the current version for AIO-SX.

    The unit test to ignore unknown kube version fails intermittently
    due to this change.
    One such run: https://zuul.opendev.org/t/openstack/build/e2387230c96c4069bca14b3ae3532e7f

    Setting system mode as duplex will never let
    the unit test fail.

    Test Plan:
    PASS: All unit tests pass

    Closes-Bug: 2018127

    Signed-off-by: kaustubh dhokte <email address hidden>
    Change-Id: Ie26a12459d90c9a050276f6ea829e255d3e96807

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