Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-37448

selected project is not automatically persisted when creating namespaced network policy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.17
    • Management Console
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when normal user tries to create namespace scoped network policy, selected project in project selection dropdown was not taken

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

      4.17.0-0.nightly-2024-07-17-183402    

      How reproducible:

      Always    

      Steps to Reproduce:

      1. normal user with a project view networkpolicy page
      /k8s/ns/yapei1-1/networkpolicies/~new/form
      2. Hit on 'affected pods' in Pod selector section OR keep everything with default value and click on 'Create'     

      Actual results:

      2. User will see following error when click on 'affected pods'
      Can't preview pods
      r: pods is forbidden: User "yapei1" cannot list resource "pods" in API group "" at the cluster scope  
      
      User will see following error when click on 'Create' button
      An error occurrednetworkpolicies.networking.k8s.io is forbidden: User "yapei1" cannot create resource "networkpolicies" in API group "networking.k8s.io" at the cluster scope  

      Expected results:

      2. switching to 'YAML view' we can see that the selected project name was not auto populated in YAML  

      Additional info:

          

              upalatuc@redhat.com Ugo Palatucci
              rhn-support-yapei YaDan Pei
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: