Bug 1376383

Summary: [dev-preview-stg] Cannot delete empty environment variable on build-config edit web page
Product: OpenShift Online Reporter: Eduard Trott <etrott>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED NEXTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jokerman, mmccomas, vdinh
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-09-20 12:51:41 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
Screenshot none

Description Eduard Trott 2016-09-15 09:46:12 UTC
Created attachment 1201165 [details]
Screenshot

Description of problem:

Can't delete empty environment variable on build-config edit page.

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

dev_preview_stg
OpenShift Master:  v3.2.1.15-8-gc402626
Kubernetes Master: v1.2.0-36-g4a3f9c5 

How reproducible:
Always

Steps to Reproduce:
1. Create new app using default "dancer-mysql-example" template.
2. Go to build-config edit page
3. Click on "✕" near CPAN_MIRROR env variable.

Actual results:
Nothing happens

Expected results:
Environment variable should be deleted

Additional info:
If value is changed to non-empty then environment variable could be deleted

$ oc get template dancer-mysql-example -n openshift -o json
...
{
    "name": "CPAN_MIRROR",
    "displayName": "Custom CPAN Mirror URL",
    "description": "The custom CPAN mirror URL"
}
...

Comment 1 Eduard Trott 2016-09-15 10:34:13 UTC
Can be reproducible only until this bug is not resolved
https://bugzilla.redhat.com/show_bug.cgi?id=1376386

Comment 2 Jessica Forrester 2016-09-16 15:09:37 UTC
@bpeterse can you verify that this is fixed with the new env var editor

Comment 3 bpeterse 2016-09-16 15:10:59 UTC
Will do.

Comment 4 Vu Dinh 2016-09-19 20:16:11 UTC
We can delete ENV VAR on INT cluster which is based on v3.3.0.30.

Thanks,
Vu

Comment 5 bpeterse 2016-09-20 01:20:48 UTC
Great, thanks Vu!

Comment 6 Vu Dinh 2016-09-20 12:51:41 UTC
The INT cluster with OCP 3.3 allows users to delete ENV VAR via UI. The STG cluster will eventually upgraded to 3.3 and will have that capability as well.

Will close this bug as NEXTRELEASE.

Thanks,
Vu