Uploaded image for project: 'OpenStack Strategy'
  1. OpenStack Strategy
  2. RHOSSTRAT-936

Openstack Watcher: Failed to create cluster maintenance audit from horizon

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhos-18.0.14 FR 4
    • rhos-18.0 FR 2 (Mar 2025)
    • None
    • Important
    • Not Selected
    • False
    • False
    • Hide

      None

      Show
      None
    • 0
    • 0% To Do, 67% In Progress, 33% Done
    • rhos-workloads-evolution

      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
              rh-ee-abkarim Abakar KARIM (Inactive)
              Edu Alcaniz Edu Alcaniz
              rhos-workloads-evolution
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: