Bug 1388841 - [userinterface_public_691] There is always one pull secret that still exists after removing all pull secrets on DC editor page
Summary: [userinterface_public_691] There is always one pull secret that still exists ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-26 09:47 UTC by Xingxing Xia
Modified: 2017-03-08 18:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Adding a two pull secret on the DC editor, saving the DC and removing them in the editor and saving again. Consequence: One pull secret still exists. Fix: Work with the copy of the pull secrets, not directly with the object itself. Result: All pull secrets are removed.
Clone Of:
Environment:
Last Closed: 2017-03-08 18:34:31 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Xingxing Xia 2016-10-26 09:47:54 UTC
Description of problem:
After clicking the "X" buttons of all pull secrets (even if the sum of pull secrets is 1) and Save on DC editor page, there is always one that still exists if we check the DC again (both in CLI and editor page)

Version-Release number of selected component (if applicable):
openshift v3.4.0.15

How reproducible:
Always

Steps to Reproduce:
1. Create dc
$ oc new-app openshift/hello-openshift
2. Create pull secrets:
$ oc secrets new-dockercfg dockerhub --docker-server=private.registry.com --docker-username=any --docker-password=12345678 --docker-email=any
$ oc secrets new-dockercfg newdockerhub --docker-server=private.registry.com --docker-username=any --docker-password=12345678 --docker-email=any

3. Add the pull secrets to DC:
on DC editor page, click "advanced image options" --> pick pull secret dockerhub, pick another pull secret newdockerhub, Save

4. On DC editor page again, click the "X" buttons beside above pull secrets to remove all pull secrets, Save

5. Check pull secrets in DC via CLI or editor page

Actual results:
5. The pull secret dockerhub still exists in DC

Expected results:
5. All pull secrets should be removed

Additional info:

Comment 1 openshift-github-bot 2016-10-27 12:23:03 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/d50209f3cede961b2596ec5af7030e380ae7ceb0
Bug 1388841 - Fix DC editor pullSecrets variable updated

Comment 2 Xingxing Xia 2016-11-01 07:56:31 UTC
Verified with openshift v3.4.0.18+ada983f. Now all pull secrets can be removed on DC editor page. Thanks!


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