Bug 1368415

Summary: Web console prompts wrong scope when creating cluster scope resouce from file
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: RFEAssignee: Samuel Padgett <spadgett>
Status: CLOSED WONTFIX QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, jforrest, jokerman, mmccomas, pweil, trankin
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: 2019-06-12 11:57:09 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:

Description Xingxing Xia 2016-08-19 10:26:32 UTC
Description of problem:
When creating cluster scope resource from "Import YAML/JSON" tab on web console '/create' page, the error message thinks it is a project scope resource.
E.g., for pv, it prompts:
An error occurred checking if the persistent volume nfs already exists.Reason: User "xxia" cannot get persistentvolumes in project "xxia-proj"

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

How reproducible:
Always

Steps to Reproduce:
1. From "Import YAML/JSON" tab on web console '/create' page, paste the following in the ACE editor:
{
  "apiVersion": "v1",
  "kind": "PersistentVolume",
  "metadata": {
    "name": "nfs"
  },
  "spec": {
    "capacity": {
        "storage": "5Gi"
    },
    "accessModes": [ "ReadWriteMany" ],
    "nfs": {
        "path": "/",
        "server": "#NFS-Service-IP#"
    },
    "persistentVolumeReclaimPolicy": "Recycle"
  }
}


2. Then click "Create"

Actual results:
2. Its prompt thinks cluster resource is in project scope:
An error occurred checking if the persistent volume nfs already exists.Reason: User "xxia" cannot get persistentvolumes in project "xxia-proj" 
Expected results:
2. Considering web console first checks if the resource exists when creating it, it should prompt similar to CLI `oc get pv` and `oc create -f pv.json`: 
An error occurred checking if the persistent volume nfs already exists.Reason: User "xxia" cannot list all persistentvolumes in the cluster

Additional info:

Comment 1 Jessica Forrester 2016-08-19 12:40:33 UTC
The console only supports creating project scoped resources today, marking this RFE.

Comment 2 Xingxing Xia 2016-08-23 02:21:17 UTC
(In reply to Jessica Forrester from comment #1)
> The console only supports creating project scoped resources today, marking
> this RFE.

Thanks. In fact, tried and saw pv creation in web console with cluster-admin, which prompts "Failed to process the resource. the server could not find the requested resource"

Comment 7 Kirsten Newcomer 2019-06-12 11:57:09 UTC
With the introduction of OpenShift 4, Red Hat has delivered or roadmapped a substantial number of features based on feedback by our customers.  Many of the enhancements encompass specific RFEs which have been requested, or deliver a comparable solution to a customer problem, rendering an RFE redundant.

This bz (RFE) has been identified as a feature request not yet planned or scheduled for an OpenShift release and is being closed. 

If this feature is still an active request that needs to be tracked, Red Hat Support can assist in filing a request in the new JIRA RFE system, as well as provide you with updates as the RFE progress within our planning processes. Please open a new support case: https://access.redhat.com/support/cases/#/case/new 

Opening a New Support Case: https://access.redhat.com/support/cases/#/case/new 

As the new Jira RFE system is not yet public, Red Hat Support can help answer your questions about your RFEs via the same support case system.