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

Zone migration strategy sets destination host as required when docs says no

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • openstack-watcher-10.0.1-18.0.20250605155112.c014f81.el9ost
    • rhos-workloads-evolution
    • None
    • Hide
      .The `dst_node` parameter is now optional for the Zone migration strategy

      Before this update, the implementation of the Zone migration strategy was affected by the `dst_node` parameter. Now the implementation is in line with API schema and the `dst_node` parameter is optional. If you do not specify a value for `dst_node`, the Nova scheduler selects an appropriate host automatically.
      Show
      .The `dst_node` parameter is now optional for the Zone migration strategy Before this update, the implementation of the Zone migration strategy was affected by the `dst_node` parameter. Now the implementation is in line with API schema and the `dst_node` parameter is optional. If you do not specify a value for `dst_node`, the Nova scheduler selects an appropriate host automatically.
    • Enhancement
    • Done
    • New Test Coverage
    • Workload Evolution Sprint 4
    • 1
    • Important

      To Reproduce Steps to reproduce the behavior:

      1. $ openstack optimize audit create -a ZoneMigration -p compute_nodes='[
        {"src_node": "compute1.ctlplane.localdomain"}

        ]' --auto-trigger
        -------------{}----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

        Field         Value                                                                                                                                                                  

      -------------{}----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      UUID           0d9263d1-78a7-40e0-a3f9-eff990caef9a                                                                                                                                  
      Name           zone_migration-2025-06-02T14:35:39.494348                                                                                                                              
      Created At     2025-06-02T14:35:39.507308+00:00                                                                                                                                      
      Updated At     None                                                                                                                                                                  
      Deleted At     None                                                                                                                                                                  
      State         PENDING                                                                                                                                                                
      Audit Type     ONESHOT                                                                                                                                                                
      Parameters     {'compute_nodes': [\{'src_node': 'compute1.ctlplane.localdomain'}

      ], 'parallel_total': 6, 'parallel_per_node': 2, 'parallel_per_pool': 2, 'with_attached_volume': False}

      Interval       None                                                                                                                                                                  
      Goal           hardware_maintenance                                                                                                                                                  
      Strategy       zone_migration                                                                                                                                                        
      Audit Scope   []                                                                                                                                                                    
      Auto Trigger   True                                                                                                                                                                  
      Next Run Time None                                                                                                                                                                  
      Hostname       None                                                                                                                                                                  
      Start Time     None                                                                                                                                                                  
      End Time       None                                                                                                                                                                  
      Force         False                                                                                                                                                                  

      -------------{}----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      $ openstack optimize audit list
      ------------------------------------{}---------------------------------------{}+{}--------{}{}----{}{}------------------{}{}------------{}+{}------------

      UUID                                 Name                                       Audit Type State   Goal                 Strategy       Auto Trigger

      ------------------------------------{}---------------------------------------{}+{}--------{}{}----{}{}------------------{}{}------------{}+{}------------

      0d9263d1-78a7-40e0-a3f9-eff990caef9a zone_migration-2025-06-02T14:35:39.494348 ONESHOT     FAILED hardware_maintenance zone_migration True        

      ------------------------------------{}---------------------------------------{}+{}--------{}{}----{}{}------------------{}{}------------{}+{}------------

       

      Logs from decision engine:

      2025-06-02 14:48:29.055 1 ERROR watcher.decision_engine.audit.base [None req-22b61c7e-cf59-4eb6-940c-24e2eff81b09 279a128054e04120a51e519824628779 341af89df12b4468b67d8453038891c0 default - - -] Field `input_parameters[destination_node]' cannot be None: ValueError: Field `input_parameters[destination_node]' cannot be None

              jgilaber@redhat.com Joan Francesc Gilabert Navarro
              rhn-support-dsanzmor David Sanz Moreno
              David Sanz Moreno David Sanz Moreno
              rhos-workloads-evolution
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: