Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1804708

Summary: project.spec.projectRequestMessage not applied in all places
Product: OpenShift Container Platform Reporter: Robb Hamilton <rhamilto>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, hasha, jokerman, nmukherj, obockows, rhamilto, spadgett, yapei
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Users without the ability to create projects still see the "Create Project" action. Consequence: Users can try to create a project, but will be met with an error message stating they can not create projects. Fix: The "Create Project" action should not be visible to users without the ability to create projects. Result: Users without the ability to create projects never see the error message (customized or otherwise) as the "Create Project" action is not visible.
Story Points: ---
Clone Of: 1802577 Environment:
Last Closed: 2020-04-30 01:28:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1806585    
Bug Blocks:    

Comment 1 Robb Hamilton 2020-02-25 19:15:13 UTC
*** Bug 1807189 has been marked as a duplicate of this bug. ***

Comment 5 shahan 2020-04-20 08:22:59 UTC
1. Disabling project self-provisioning
# oc patch clusterrolebinding.rbac self-provisioners -p '{"subjects": null}'
clusterrolebinding.rbac.authorization.k8s.io/self-provisioners patched
# oc patch clusterrolebinding.rbac self-provisioners -p '{ "metadata": { "annotations": { "rbac.authorization.kubernetes.io/autoupdate": "false" } } }'
# oc describe clusterrolebinding.rbac self-provisioners
Name:         self-provisioners
Labels:       <none>
Annotations:  rbac.authorization.kubernetes.io/autoupdate: false
Role:
  Kind:  ClusterRole
  Name:  self-provisioner
Subjects:
  Kind  Name  Namespace
  ----  ----  ---------
2. Customize project request message
# oc edit project.config.openshift.io/cluster
project.config.openshift.io/cluster edited
# oc get project.config.openshift.io/cluster -o yaml
apiVersion: config.openshift.io/v1
kind: Project
metadata:
  annotations:
    release.openshift.io/create-only: 'true'
  creationTimestamp: '2020-04-19T23:14:39Z'
  generation: 1
  managedFields:
    - apiVersion: config.openshift.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:release.openshift.io/create-only': {}
        'f:spec': {}
      manager: cluster-version-operator
      operation: Update
      time: '2020-04-19T23:14:39Z'
  name: cluster
  resourceVersion: '1837'
  selfLink: /apis/config.openshift.io/v1/projects/cluster
  uid: 602ef193-d6fe-4782-9dcc-7eb511c28558
spec:
  projectRequestMessage: ask hasha to request project

3. goto podlist page with the user owned a project, and click the project dropdown, there will not have a entry to create the new project.
4.3.0-0.nightly-2020-04-18-075046

Comment 7 errata-xmlrpc 2020-04-30 01:28:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1529