Cannot select other available k8s versions using Horizon

Bug #2043514 reported by Christopher de Oliveira Souza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Christopher de Oliveira Souza

Bug Description

Brief Description
---------------------
From the CLI, we can select any k8s version to be upgraded using "--to-version" option.

Using the Horizon (SystemController region), it seems only the latest version is available to upgrade k8s on the subclouds.

Severity
----------------------
Major

Steps to Reproduce
----------------------
1. Install System Controller with k8s v1.21.8

2. Deploy subclouds with k8s v1.21.8

3. Perform k8s upgrade on the System Controller
3.1 Given multi-version K8s ugprade is only supported on AIO-SX (standalone/subclouds), upgrade to a k8s version at a time.
$ system health-query-kube-upgrade
$ sw-manager kube-upgrade-strategy create --to-version v1.22.5 --worker-apply-type parallel --max-parallel-worker-hosts 2 --alarm-restriction relaxed
$ sw-manager kube-upgrade-strategy apply
$ sw-manager kube-upgrade-strategy delete
3.2 Follow the same steps for v1.23.1 and finally to v1.24.4.

4. Once the System Controller is running the latest, v1.24.4, create orchestration using Horizon
4.1 Select the SystemController region
4.2 Select Distributed Cloud Admin > Orchestration
4.3 On the Orchestration page, select the Orchestration Strategy tab.
4.4 Create a new strategy
4.5 Select a version to be applied for strategy.

Expected Behavior
------------------------------------
K8s available versions in the drop-down menu.

Actual Behavior
------------------------------------
It seems only the latest applied on the System Controller is been displayed.

Reproducibility
------------------------------------
100%

System Configuration
------------------------------------
DC

Load info (eg: 2022-03-10_20-00-07)
------------------------------------
22.12.

Last Pass
------------------------------------
1st time.

Timestamp/Logs
------------------------------------

// subcloud has other versions that can be used.

$ system kube-version-list
+---------+--------+-----------+
| version | target | state |
+---------+--------+-----------+
| v1.21.8 | True | active |
| v1.22.5 | False | available |
| v1.23.1 | False | available |
| v1.24.4 | False | available |
+---------+--------+-----------+

Alarms
------------------------------------
None

Test Activity
------------------------------------
Feature Testing

Workaround
------------------------------------
Create the strategy through CLI.

Changed in starlingx:
assignee: nobody → Christopher de Oliveira Souza (cdeolive)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gui (master)

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

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

Reviewed: https://review.opendev.org/c/starlingx/gui/+/900947
Committed: https://opendev.org/starlingx/gui/commit/e113545cbcd830055e2be38888f26026fba4d5c4
Submitter: "Zuul (22348)"
Branch: master

commit e113545cbcd830055e2be38888f26026fba4d5c4
Author: Christopher Souza <email address hidden>
Date: Tue Nov 14 19:00:47 2023 -0300

    Update to_version field to return all kube versions

    In this commit, the to_version field was updated to return
    all kube versions and allow the user to install older versions.

    Test Case:
    PASS - Using Horizon, check all k8s are available under
    drop-down menu.
    PASS - Using Horizon, create and apply kube orchestration
    with --to-version selecting a version available and verify
    that the kube was upgraded to the correct version.

    Closes-bug: 2043514

    Change-Id: I72d5edd33188935e706649c8561b0d6eb7b9b6c6
    Signed-off-by: Christopher Souza <email address hidden>

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