13d73e9b4e64ac9fea8e301896a4dcabbbab4888
This change adds new 'migration_max_retries' and 'migrate_interval' configuration parameters to the [nova] section to control timeout behavior for VM migration operations. Changes: - Add a new [nova] section to the configuration file to store parameters related to the integration with nova. - Add migration_max_retries config option (default: 180) to define the max retries to check the result of VM migrations before giving up. - Add migration_interval config option (default: 5 seconds) to define the polling interval to check the VM status in migrate actions. - Update live_migrate_instance() and watcher_non_live_migrate_instance() to use configured migration_max_retries when retry parameter is None. - Add new parameter interval to the live_migrate_instance() and watcher_non_live_migrate_instance() methods. - Add comprehensive unit tests for timeout and retry functionality - Set migrate_max_retries to 120 and migration_interval to 1s in CI jobs. Closes-Bug: #2131663 Assisted-By: claude-code (claude-sonnet-4.5) Change-Id: Ifed3c058d821ce3b0741627dcc414fe054eb9dca Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
Watcher
OpenStack Watcher provides a flexible and scalable resource optimization service for multi-tenant OpenStack-based clouds. Watcher provides a robust framework to realize a wide range of cloud optimization goals, including the reduction of data center operating costs, increased system performance via intelligent virtual machine migration, increased energy efficiency and more!
- Free software: Apache license
- Wiki: https://wiki.openstack.org/wiki/Watcher
- Source: https://opendev.org/openstack/watcher
- Bugs: https://bugs.launchpad.net/watcher
- Documentation: https://docs.openstack.org/watcher/latest/
- Release notes: https://docs.openstack.org/releasenotes/watcher/
- Design specifications: https://specs.openstack.org/openstack/watcher-specs/
Description
Languages
Python
99.7%
Shell
0.3%