masakari/masakari
dineshbhor 7aef2966f5 Ignore instance recovery for 'paused' or 'rescued' instance
If masakari receives instance failure notification it fails to
recover that instance if it is in 'paused' or 'rescued' state.
As a recovery action masakari-engine gives call to nova to stop
the instance but as nova doesn't allow this it returns 409 which
result into instance recovery failure and masakari marks that
notification status as "error".

This can be solved by maintaning consistency between the vm_state
before and after recovery but it requires to start the instance
again to gain the qemu process of an instance back alive which
might change the internal state of the instance which results into
inconsistency between instance state before and after recovery.
So as a solution this patch proposes to ignore the instance recovery
and logs a warning if the instance is in 'paused' or 'rescued' state.

Closes-Bug: #1663513
Change-Id: Id1cce45aad253527bedb58ab32f3d89637e02582
2017-04-20 12:02:12 +05:30
..
api Remove log translations 2017-04-05 08:11:09 +00:00
cmd Remove log translations 2017-04-05 08:11:09 +00:00
common Add support for wsgi framework 2016-07-12 13:10:10 +05:30
compute Remove log translations 2017-04-05 08:11:09 +00:00
conf Don't pass argument sqlite_db in set_defaults() 2017-03-29 07:44:41 +00:00
db Add business rules for host and failover_segment 2017-02-01 11:39:45 +05:30
engine Ignore instance recovery for 'paused' or 'rescued' instance 2017-04-20 12:02:12 +05:30
ha Add business rules for host and failover_segment 2017-02-01 11:39:45 +05:30
hacking Remove log translations 2017-04-05 08:11:09 +00:00
objects Add business rules for host and failover_segment 2017-02-01 11:39:45 +05:30
tests Ignore instance recovery for 'paused' or 'rescued' instance 2017-04-20 12:02:12 +05:30
__init__.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
config.py Add RPC layer for masakari 2016-10-07 13:16:26 +05:30
context.py Stop logging unnecessary warning on context create 2017-01-27 11:35:01 +05:30
exception.py Ignore instance recovery for 'paused' or 'rescued' instance 2017-04-20 12:02:12 +05:30
i18n.py Remove log translations 2017-04-05 08:11:09 +00:00
manager.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
policy.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
rpc.py Set access_policy for messaging's dispatcher 2017-02-09 12:17:15 +05:30
safe_utils.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
service.py Remove log translations 2017-04-05 08:11:09 +00:00
test.py Use dict.items() and dict.values() as per guidelines 2017-01-16 18:08:15 +05:30
utils.py Remove log translations 2017-04-05 08:11:09 +00:00
version.py Remove log translations 2017-04-05 08:11:09 +00:00
wsgi.py Remove log translations 2017-04-05 08:11:09 +00:00