Bug 1507822

Summary: [trello Q53Gxe4v]Plan info is not updated automatically after change plan
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Jeff Phillips <jephilli>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, pweil, spadgett
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-06 12:37:40 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:

Description Yanping Zhang 2017-10-31 09:12:21 UTC
Description of problem:
On a provisioned service page, it's using plan one, click "Edit" button, choose another plan, it updated successfully. but it still shows plan one on privisioned service, and won't automatically update, need refresh the page manually.

Version-Release number of selected component (if applicable):
OpenShift Master:
    v3.7.0-0.184.0
Kubernetes Master:
    v1.7.6+a08f5eeb62 

How reproducible:
Always

Steps to Reproduce:
1.Provision service from service class "PostgreSQL (APB)", when provisioning, select the first plan.
2.After service instance is ready, on provisioned service page, update first plan to second plan by "Edit" button.
3.After close the update panel, wait the status become ready, check plan info on provision page.

Actual results:
2.It updates successfully.
3.It still show first plan, second plan shows up only when we refresh the page or access other page then access provisioned service page again.

Expected results:
3. Should show the second plan automatically.

Additional info:
If update parameters on "Configuration" stage, it will show the updated parameters immediately, no need to refresh.

PS: if the issue comes from lack of watch of this resource? we also found that seems no watch of quota in quota page, no watch of secret in secrets page until fresh

Comment 1 Jessica Forrester 2017-10-31 15:01:53 UTC
Quota was intentional since we can't watch appliedclusterquota, but I think next release we will update that to poll once a minute so that we get some updates.

Secrets is a bug, they should have been watches, both on the list of secrets and when viewing a particular secret. @jhadvig is going to fix this part

Comment 2 Samuel Padgett 2017-10-31 20:54:58 UTC
The original problem is fixed by this PR:

https://github.com/openshift/origin-web-console/pull/2409

Comment 3 Jeff Phillips 2017-11-01 10:49:44 UTC
Addressed by https://github.com/openshift/origin-web-console/pull/2409

Comment 5 Yanping Zhang 2017-11-03 06:45:01 UTC
Tested on ocp 3.7 env with version blew:
OpenShift Master:
    v3.7.0-0.190.0
Kubernetes Master:
    v1.7.6+a08f5eeb62 
On provisioned page, after update plan, the new plan info can show up immediately without manually refresh.
And new secret also shows up automatically on secrets page when secret is created by cli.
The bug is fixed, so move it to Verified.