k8s upgrade via Horizon - Remove fields not usable when "Apply to" is subcloud

Bug #1973210 reported by Agustin Carranza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Agustin Carranza

Bug Description

Brief Description
-----------------

k8s upgrade via Horizon - Remove fields not usable when "Apply to" is subcloud

When you select a single subcloud you still see the fields: "subcloud apply type" and "max. parallel subcloud".

Severity
-----------------

<Minor: System/Feature is usable with minor issue>

Steps to Reproduce
-----------------

deploy a DC system with at least one subcloud
create a kube upgrade strategy for a subcloud
select "subcloud" to "Apply to" field
Expected Behavior

Only usable parameters should be presented to the user when selected an option to "Apply to" field

Actual Behavior
-----------------

Not usable fields are presented when selected "subcloud" to "Apply to" field.
Those fields are:

subcloud apply type
maximum parallel subclouds

Reproducibility
-----------------

100% reproducible

System Configuration
-----------------

DC systems

Branch/Pull Time/Commit
-----------------

stx 6.0 / 2022-01-06_23-30-06

Test Activity
-----------------

Feature Testing

Changed in starlingx:
assignee: nobody → Agustin Carranza (acarranz)
tags: added: stx.gui
Changed in starlingx:
status: New → In Progress
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/+/842143

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

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

commit 2dd7455be5bc681aae8f83663720f802f343aa85
Author: Agustin Carranza <email address hidden>
Date: Tue May 17 11:24:34 2022 -0400

    Fix for 'Apply to' and 'Force' fields behavior

    On 'Create Strategy' form the following fields are not usable when
    selecting a subcloud:
    * subcloud apply type
    * maximum parallel subclouds
    Now they are hidden in such case.

    Input element for subcloud name was changed to a dropdown list.
    If 'All subclouds' is selected, the strategy is applied to all
    subclouds and the fields mentioned are hidden. If any other
    subloud name is selected, such fields are shown.

    It was created another 'force' element for kubernetes strategy
    which shows a help message that is consistent with the expected
    behavior. The original element is left for 'upgrade' strategy only.

    Test Plan
    PASS:
    Build package
    Install package on DC with at least one subcloud
    Open gui on a browser and navigate to Distributed Cloud Admin ->
    Orchestration -> Orchestration Stragegy -> Create Strategy:
    * Check 'force' parameter is hidden for 'Patch' and 'Firmware' strategy
      types.
    * Check 'force' help text describes actual behavior.
    * Check 'subcloud' field is a dropdown menu and shows available
      subclouds.
    * Check 'subcloud apply type' and 'maximum parallel subclouds' fields
      are not shown when a single subcloud is selected in the dropdown
      menu.

    Closes-bug: 1973210
    Closes-bug: 1973805

    Signed-off-by: Agustin Carranza <email address hidden>
    Change-Id: I909bb548f9b6454f6e556109165565394ec63114

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