Bug 1753018

Summary: "UpdateStrategy" Descriptor is not taking/applying settings correctly
Product: OpenShift Container Platform Reporter: tony.wu
Component: Management ConsoleAssignee: Alec Merdler <amerdler>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:41:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Portworx CSV with "UpdateStrategy" added in specDescriptor none

Description tony.wu 2019-09-17 19:34:05 UTC
Created attachment 1615991 [details]
Portworx CSV with "UpdateStrategy" added in specDescriptor

Description of problem:
Apply "UpdateStrategy" Descriptor to Operator CSV file for creating the CR it owns. The creation form rendered correctly; however, the actual settings are not configured correctly into the CR YAML.

Version-Release number of selected component (if applicable):

4.2.0-0.ci-2019-09-16-092139


How reproducible:
100% reproducible with Portworx Operator (with its CSV added 'UpdateStrategy' Descriptor)

Steps to Reproduce:
1. Install Portworx Operator from OperatorHub
2. On "Installed Operators" view, add "UpdateStrategy" descriptor to Portworx's CSV file under "specDescriptor" section (see attached CSV file: clusterserviceversion-portworx-operator.v1.0.5.yaml, as the example)
3. Create "StorageCluster" CR with "Edit Form" view
4. Select "Recreate" in "UpdateStrategy" widget/field in the creation form and "Create"
5. Check "UpdateStrategy" field on "StorageCluster" details view 

Actual results:
"UpdateStrategy" field on "StorageCluster" details view shows "Unsupported", while looks fine in YAML view.

Expected results:
"UpdateStrategy" field should show the actual setting.


Additional info:

Comment 1 Alec Merdler 2019-09-17 19:53:04 UTC
This bug also affects the normal "Configure Update Strategy" modal for `Deployments`, and should be verified there as well.

Comment 3 Yadan Pei 2019-09-19 05:45:54 UTC
1. Followed the steps in "Steps to Reproduce"
Now "UpdateStrategy" field on "StorageCluster" details view shows "Recreate" correctly

2.Create Deployment, goes to Workloads -> Deployment -> Actions -> Edit Update Strategy -> check ‘Update Strategy’ on Deployment details, it shows correct and actual value


Verified on 4.2.0-0.nightly-2019-09-18-211009

Comment 4 errata-xmlrpc 2019-10-16 06:41:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922