Bug 1382917

Summary: [userinterface_public_716]Duplicated words are in quota warning info when pods/cpu/memory quota are met/exceeded
Product: OKD Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Yanping Zhang <yanpzhan>
Severity: low Docs Contact:
Priority: low    
Version: 3.xCC: aos-bugs, mmccomas
Target Milestone: ---   
Target Release: ---   
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: 2016-12-09 21:51:36 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:
Attachments:
Description Flags
warning-info none

Description Yanping Zhang 2016-10-08 10:09:36 UTC
Description of problem:
Set quota/limits on project, make pods, cpu or memory be consumed to met the quota, then try to create resource from image/template or deploy from image on web console, check the warning info on the page, the word "can" is shown double times in the warning info.

Version-Release number of selected component (if applicable):
openshift v1.4.0-alpha.0+b1ed662
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

How reproducible:
Always

Steps to Reproduce:
1.Set quota/limits on project
#oc create -f  https://raw.githubusercontent.com/openshift/origin/master/examples/project-quota/quota.yaml -n <projectname>
#oc create -f  https://raw.githubusercontent.com/openshift/origin/master/examples/project-quota/limits.yaml -n <projectname>

2.Consume pod to met the pods quota.
#oc run testpod --image=aosqe/hello-openshift --limits="cpu=20m,memory=50Mi"
#oc scale dc/testpod --replicas=10

3.Create app from image on web console, after click "Create", check the warning info on the page.

Actual results:
3.In the warning info, word "can" is shown double times:
"You are at your quota for pods on pods.You can can still create deployment config 'frontend' but no pods will be created until resources are freed. View Quota"

Expected results:
3.The warning info should be:
"You are at your quota for pods on pods.You can still create deployment config 'frontend' but no pods will be created until resources are freed. View Quota"

Additional info:

Comment 1 Yanping Zhang 2016-10-08 10:10:28 UTC
Created attachment 1208315 [details]
warning-info

Comment 2 Jessica Forrester 2016-11-08 14:50:07 UTC
this was fixed

Comment 3 Yanping Zhang 2016-11-09 04:40:19 UTC
Checked on v1.4.0-alpha.1+64f88d7-121, the warning info is updated correctly. The bug has been fixed, so move it to Verified.