90009aac84934232f81be1ba46607c1c4eb7f6eb
Currently, when there is a volume_migrate action and migration_type is `retype`, watcher assumes that the retype always triggers a migration and checks the result of the retype based on the fields related to the migration action (actually, it uses the same function to check the result when `migration_type` is `retype` or `migrate`. This creates problem in different scenarios: - Actions keep in ONGOING status forever for volumes which have never being migrated as the migration fields of the volume are empty. - Actions which were migrated anytime before, still have the old values so it may report the status of te retype actions wrongly. This patch is implementing an entirely new function to check the result of a retype action based on the final type and the status field of the volume. This should be valid for any kind of retype action, with or without migration. The criteria for successfull retype is that the type for the volume is the destination one in the action and the status is available or in-use. Closes-Bug: #2112100 Change-Id: I76e91ed99e7a814a43a6dd906b6bcc150d471624 Signed-off-by: jgilaber <jgilaber@redhat.com>
=======
Watcher
=======
.. image:: https://governance.openstack.org/tc/badges/watcher.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
..
Except where otherwise noted, this document is licensed under Creative
Commons Attribution 3.0 License. You can view the license at:
https://creativecommons.org/licenses/by/3.0/
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%