Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-5702

[DSG] error message when items creation fails should be more descriptive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHODS_1.20.0_GA
    • RHODS_1.19.0_GA
    • UI
    • RHODS 1.20

      Description of problem:

      if a user tries to create 2 projects with the same resource name UI returns an error saying "Error crearing project" and user won't know the reason. The user may not be aware of other projects with the same name so it would be difficult to troubleshoot and would make the issue happening frequently (e.g., students may have project like "my first project" or "test" or "first" or "hello world" etc) 

      It happens for PV storages too, with a slight difference in the error message: 

      Error crearing storage
      Cannot read properties of null (reading 'metadata')

       

      Prerequisites (if any, like setup, operators/versions):

      Create a data science project called "My Project" (resource name would be: my-project)

      Steps to Reproduce

      1. go to RHODS Dashboard > Data Science Projects
      2. create a project called "MyProject" (resource name would be "my-project")
      3. you get the error message

      similarly, you can try creating 2 PV storages with the same name (or different names leading to same k8s resource name)

      Actual results:

      error message is too vague

      Expected results:

      error message says the chosen resource name is not available or something that explains user where the problem is

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      tested using local dashboard deployment, but the same changes should be in build v1.19.0-3. I will check

      Workaround:

      Additional info:

       

       

       

       

       

       

              aballantyne Andrew Ballantyne
              rhn-support-bdattoma Berto D'Attoma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: