Bug 1495455 - [trello o6UiTkxv] Informational message is unstable to automatically show up in drawer when resource meet max quota
Summary: [trello o6UiTkxv] Informational message is unstable to automatically show up ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: David Taylor
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-26 05:41 UTC by XiaochuanWang
Modified: 2017-11-10 21:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-10 21:34:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiaochuanWang 2017-09-26 05:41:17 UTC
Description of problem:
Create ResourceQuota for project, check on Overview page and then scale up resource to meet the max quota,  informational message is unstable to automatically appear in message drawer without refreshing browser

Version-Release number of selected component (if applicable):
OpenShift Master:     v3.7.0-alpha.1+11e88a4-637
Kubernetes Master:    v1.7.0+80709908fd 

How reproducible:
Always

Steps to Reproduce:
1. Cluster admin create ResourceQuota as below:
apiVersion: v1
kind: ResourceQuota
metadata:
  name: myquota
spec:
  hard:
    pods: "2"

2. Create resource to meet max of quota:
# oc run mydc --image=aosqe/hello-openshift 
Login on Overview, scale up pods to 2,

3. Check message drawer without refreshing browser.

Actual results:
3. Sometimes the informational message does not show up automatically in drawer unless browser is refreshed

Expected results:
3. The informational message shoule show up automatically in drawer "Your project is at quota. It is using 2 of 2 pods."

Additional info:

Comment 1 Samuel Padgett 2017-09-26 12:40:59 UTC
We only poll quota once a minute, which means the message can take up to a minute to show up. Is it possible you didn't wait long enough?

Comment 2 XiaochuanWang 2017-09-27 03:17:10 UTC
Tried again for several times, it's unstable to reproduce. It's not "always" for "How reproducible:", it's "sometimes".

Tested on Origin
OpenShift Master:     v3.7.0-alpha.1+fa1def6-696
Kubernetes Master:    v1.7.0+80709908fd

Comment 3 Samuel Padgett 2017-09-27 11:39:56 UTC
Sorry, I'm still not clear. If you wait a minute or two, does the message always appear? Or are there times when it never appears at all even after waiting?

Comment 4 XiaochuanWang 2017-09-28 09:27:40 UTC
I can still reproduced it with the 2nd project as below. (step 1~3 are same with description, step 4 can reproduce the issue)

1. cluster-admin create quota for project 1
2. Project user deploy 1 pod, login on web-console, mark the message "Deployment Created" as read
3. On web-console, user scale up to 2 pods(wait and check drawer, not it will show the message "Your project is at quota. It is using 2 of 2 pods.")
4. Create the 2nd project, repeat above steps, the message is never show automatically unless user refresh browser.

Comment 5 Yadan Pei 2017-09-30 08:22:56 UTC
I couldn't reproduce in testing today on FF & Chrome, the message will finally show up.

Comment 6 Yadan Pei 2017-09-30 08:23:29 UTC
Change to low severity

Comment 7 Yadan Pei 2017-09-30 08:35:24 UTC
Sorry, comment 4 reproduced while steps in "steps to reproduce" not reproduced

Comment 8 Samuel Padgett 2017-10-02 13:06:59 UTC
Dave, can you take a look at the scenario when switching projects?

Comment 9 Samuel Padgett 2017-10-06 16:11:05 UTC
The following PR fixes the case where the user switches projects:

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

Comment 10 XiaochuanWang 2017-10-11 02:32:16 UTC
This does not reproduce again in a new project now, thanks for the PR.
Verified on:
OpenShift Master:     v3.7.0-alpha.1+e610f2a-1003
Kubernetes Master:    v1.7.6+a08f5eeb62


Note You need to log in before you can comment on or make changes to this bug.