Bug 1397788 - [userinterface_public_806]Confusing error message during adding config files
Summary: [userinterface_public_806]Confusing error message during adding config files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 11:09 UTC by Yadan Pei
Modified: 2017-05-30 12:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-30 12:48:58 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yadan Pei 2016-11-23 11:09:09 UTC
Description of problem:
There is confusing error message on page when adding config files with wrong settings
= An error occurred attaching the persistent volume claim to the deployment config
= spec.template.spec.containers[0].volumeMounts[0].name: Not found: "volume-o3aut"]


Version-Release number of selected component (if applicable):
openshift v1.5.0-alpha.0+7b7a447-55

How reproducible:
Always

Steps to Reproduce:
1.Create app from image
Add to project -> Browse Catalog -> php:5.6 -> Set Name: php,  Git Repository URL: https://github.com/openshift/cakephp-ex.git  -> Create
2.Go to dc/php page, click on Add config files
3.Select one secret such as "default-token-*" from list
Set "/data/secret" as Mount Path
Select "Select specific keys and paths"
Pick key "token", set Path: /config/secret.token
Click Add

Actual results:
3. Since we set Path with a absolute path "/config/secret.token", so there will be error when submitting the request, but there is confusing message included also 
= An error occurred attaching the persistent volume claim to the deployment config
= spec.template.spec.containers[0].volumeMounts[0].name: Not found: "volume-o3aut"]

Expected results:
3.Should show correct error message 
= An error occurred attaching the persistent volume claim to the deployment config is not correct because we're not adding PVC to DC
=spec.template.spec.containers[0].volumeMounts[0].name: Not found: "volume-jtue5"]" is not correct, should remove I think

Comment 1 Yadan Pei 2016-11-23 11:09:56 UTC
Update Expected results:
3.Should show correct error message 
=spec.template.spec.containers[0].volumeMounts[0].name: Not found: "volume-jtue5"]" is not correct, should remove I think

Comment 3 Yadan Pei 2016-11-24 05:49:11 UTC
Checked against openshift v1.5.0-alpha.0+33a69c5-73

Since user are not allowed to submit the adding request if there is error on page, there is no such kind of error message any more

Move to VERIFIED


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