stx-tools: minikube profiles interfere with each other

Bug #2006622 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Davlet Panech

Bug Description

Brief Description
-----------------
Helm doesn't work correctly with minikube when there are multiple running profiles.

Severity
--------
Critical

Steps to Reproduce
------------------
* Stop all minikube profiles using "minikube profile list" and "minikube profile stop $PROFILE"
* Create 2 different project environments using minikube.
* Enter the 1st environment and start it (stx-init-env)
* In 1st environment, check helm chart status ("stx control status")
* Start the 2nd environment and start it
* In 2nd environment, check helm chart status ("stx control status")
===> Command returns empty list (no pods etc)
* Go back to the 1st environment and check helm chart status again
===> Command shows pod errors

Expected Behavior
------------------
Environments should remain completely independent and all helm & "stx control" commands should work as expected.

Actual Behavior
----------------
Helm-related commands interfere between environments.

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

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
master 2023-02-08
r/stx.8.0 2023-02-08

Last Pass
---------
Never

Timestamp/Logs
--------------
N/A

Test Activity
-------------
N/A

Workaround
----------
None

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

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

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (r/stx.8.0)

Fix proposed to branch: r/stx.8.0
Review: https://review.opendev.org/c/starlingx/tools/+/873167

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/873161
Committed: https://opendev.org/starlingx/tools/commit/714bb7cbf677d703b85f81a4361b02e8b348eeb8
Submitter: "Zuul (22348)"
Branch: master

commit 714bb7cbf677d703b85f81a4361b02e8b348eeb8
Author: Davlet Panech <email address hidden>
Date: Wed Feb 8 12:36:49 2023 -0500

    Avoid minikube profile interference

    The "stx" script calls helm without specifying which minikube profile to
    use, so it ends up using whichever profile was started last.

    TESTS
    =============================
    * Create 2 different build environments
    * Make sure "stx-init-env" and "stx control start/stop/status" don't
      interfere with each other in different environments

    Closes-Bug: 2006622
    Signed-off-by: Davlet Panech <email address hidden>
    Change-Id: Ic92d7792f4a1baf374e9e8ce25b88d6aee7d2b62

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (r/stx.8.0)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/873167
Committed: https://opendev.org/starlingx/tools/commit/a1a02a7373515761c98da01191df1180e05c29d3
Submitter: "Zuul (22348)"
Branch: r/stx.8.0

commit a1a02a7373515761c98da01191df1180e05c29d3
Author: Davlet Panech <email address hidden>
Date: Wed Feb 8 12:36:49 2023 -0500

    Avoid minikube profile interference

    The "stx" script calls helm without specifying which minikube profile to
    use, so it ends up using whichever profile was started last.

    TESTS
    =============================
    * Create 2 different build environments
    * Make sure "stx-init-env" and "stx control start/stop/status" don't
      interfere with each other in different environments

    Closes-Bug: 2006622
    Signed-off-by: Davlet Panech <email address hidden>
    Change-Id: Ic92d7792f4a1baf374e9e8ce25b88d6aee7d2b62
    (cherry picked from commit 714bb7cbf677d703b85f81a4361b02e8b348eeb8)

Ghada Khalil (gkhalil)
tags: added: in-r-stx80 stx.8.0 stx.build
Changed in starlingx:
importance: Undecided → Critical
assignee: nobody → Davlet Panech (dpanech)
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.