Go to file
Alfredo Moralejo 13d73e9b4e Make VM migrations timeout configurable and apply reasonable defaults
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>
2025-12-02 08:42:40 +01:00
2025-10-03 17:22:43 +01:00
2025-08-26 11:35:18 -03:00
2025-10-08 11:52:48 +01:00
2025-09-13 11:49:11 +09:00
2019-04-19 19:40:45 +00:00
2015-06-04 15:27:57 +02:00
2018-07-10 15:38:50 +07:00
2025-05-19 23:55:20 +00:00
2017-04-07 10:55:59 +08:00
2018-02-28 03:58:07 +00:00
2015-06-04 15:27:57 +02:00
2025-09-13 11:49:11 +09:00
2020-04-09 02:37:00 +00:00

Watcher

image

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!

Description
Resource optimization service for OpenStack.
Readme 35 MiB
Languages
Python 99.7%
Shell 0.3%