Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-676

[OCM-UI]The error is not clear for deleting machine_pool if there is no access to delete

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      [OCM-UI]The error is not clear for deleting machine_pool if there is no access to delete

      How reproducible:
      Always
      Steps to Reproduce:
      1.Prepare an addon with the requirement and

      "requirements": [
      {
            "resource": "machine_pool",
            "data": {
              "compute.cpu": 20,
              "compute.memory": 53687091200,
              "replicas": 3
            },
            "id": "mp-requirements",
            "enabled": true
          }],
      "managed_service": true
      

       

      2.Create managed service with the addon

      {
        "service": "test-fake-qe",//addon name
        "parameters": [//If there is no parameter for addon,it can omit
          {
            "id":"size-test",
            "value": "2"
          }
        ],
        "cluster":
         {
          "name":"ms-01",
          
          "region":{
              "id":"us-east-2"
          },
       
          "properties":{
              "rosa_creator_arn":"xxx"
          },
          "aws":{
              "account_id":"301721915996",
              "access_key_id":"xxx",
              "secret_access_key":"xxx"
          }
           
        }
      }

      3.Wait for the cluster is ready and the resource(machine_pool) is created
      4.Delete the machine_pool on UI console
      Actual result:
      It meets error .Please refer to attachment

      Expect result:
      It should show the error returned from API

        1. 20220728165354.png
          41 kB
          Ying Zhang
        2. 20220902082352.png
          53 kB
          Ying Zhang
        3. screenshot-1.png
          113 kB
          Ying Zhang

              Unassigned Unassigned
              rhn-support-yingzhan Ying Zhang
              Ying Zhang Ying Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: