Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-19291

[Downstream Backport]Openstack Watcher: Failed to create cluster maintenance audit from horizon

XMLWordPrintable

    • Workloads Evolution Sprint 8, Workload Evolution Sprint 9, Workload Evolution Sprint 10
    • 3
    • Important

      Attempting to create a cluster maintenance audit via Horizon fails with an HTTP 500 error due to a missing required property: maintenance_node.

       

      Steps to Reproduce:

      1. Navigate to the Horizon dashboard.
      2. Go to the "Admin" Project.
      3. Go to the "Optimization"  section.
      4. Go to the "Audit Template"  section.
      5. Create an audit template: Goal=cluster_maintaining, Strategie=host_maintenance
      6. Go to the "Audit"  section.
      7. Attempt to create an audit, with the audit template created before(you can't explicitly specifying a maintenance_node)

       

      Observed Behavior:
      The system returns the following error message:

       

      Error: Failed to create audit.
      'maintenance_node' is a required property
      Failed validating 'required' in schema:
      {
        'properties': {
          'backup_node':

      {       'description': 'The name of the compute node which will backup the maintenance node.',       'type': 'string'     }

      ,
          'maintenance_node':

      {       'description': 'The name of the compute node which need maintenance',       'type': 'string'     }

        },
        'required': ['maintenance_node']
      }
      On instance: {} (HTTP 500)

       

      Expected Behavior:
      The UI should validate the form and prevent submission if the required maintenance_node field is missing. A user-friendly error message should be displayed instead of returning an HTTP 500 error.

      Impact:
      This issue prevents users from creating maintenance audits via the Horizon UI and may lead to confusion due to the unclear error feedback.

      Suggested Fix:
      Implement client-side validation to ensure the maintenance_node field is required before submission, and handle missing data more gracefully on the backend to avoid 500 errors.

              rhn-engineering-chkumar Chandan Kumar
              rhn-engineering-chkumar Chandan Kumar
              David Sanz Moreno David Sanz Moreno
              rhos-workloads-evolution
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: