Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-35592

Can't create VMs from template catalog after upgrade to CNV 4.14.0 (IDP Auth)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • CNV v4.14.4
    • CNV v4.14.0
    • CNV User Interface
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No
    • ---
    • ---
    • High

      This is a clone of issue CNV-35122. The following is the description of the original issue:

      Description of problem:

      In 4.14.0, in order to create a VM from the template catalog UI, a ConfigMap named "kubevirt-user-settings" in the default namespace should exist.
      If it's not found, the intention was that the UI tries to create it, if the user is a cluster-admin.
      
      The problem is, the user can be a cluster-admin through IdP (Identity Provider), not necessarily the user is the kubeadmin itself (it's not recommended to use this user in production clusters).
      
      When the kubeadmin user is logged in, the ConfigMap is created.
      But not if the logged in user is a cluster-admin that has been authorized by IDP Oauth.

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

      4.14.0

      How reproducible:

      100%

      Steps to Reproduce:

      1. Start with a cluster with an identity provider and log in with a user who has a cluster-admin permissions.
      2. Have CNV 4.13 on the cluster.
      3. Upgrade it to 4.14.0 from production (redhat-operators)
      4. Try to create a VM from templates catalog
      
      

      Actual results:

      The modal loading is stuck, VM can't be created.

      Expected results:

      The modal has been completely loaded, and buttons to create the VirtualMachine are available.

      Additional info:

       

            mschatzm@redhat.com Matan Schatzman
            ocohen@redhat.com Oren Cohen
            Guohua Ouyang Guohua Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: