Bug 1389670

Summary: Should give error info telling user can not create PV
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: aos-bugs, jforrest, jokerman, mmccomas, tdawson
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-12 14:38:27 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:
Embargoed:

Description Yadan Pei 2016-10-28 07:53:46 UTC
Description of problem:
When create PV through Import YAML/JSON option, it didn't give any error info
However when create quota, limits through Import YAML/JSON option, it gives reasonable error message "Failed to process the resource.User "<user>" cannot create resourcequotas/limitranges in project "<project>"

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

How reproducible:
Always

Steps to Reproduce:
1.Download test file
# wget https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/nfs/auto/pv.json
2.Add to project -> Import YAML/JSON -> Upload pv.json through Browse or Copy/Paste pv.json content
3.Hit on Create

Actual results:
3.403 (Forbidden) code returned, but didn't give any error on web console telling user could not create pv in current project

Expected results:
3.Should give error info like:
Failed to process the resource.
User "<user>" cannot create persistentvolume in project "<project>"

Additional info:

Comment 1 Jessica Forrester 2016-10-28 14:21:05 UTC
@jhadvig assigning this to you since its the import yaml page

Comment 2 Troy Dawson 2016-11-02 18:00:35 UTC
This has been merged into ose and is in OSE v3.4.0.19 or newer.

Comment 4 Yadan Pei 2016-11-03 02:37:07 UTC
Checked against v3.4.0.19+346a31d

When create PV on web console, it will give error info at the bottom:
Unable to create the persistent volume '<pv_name>'.User "<user>" cannot create persistentvolumes in project "<project>"

Move to VERIFIED