To reset metadata for resources when mark unhealthy
Some resources do not work if their metadata is in
a wrong state, .e.g the metadata 'scaling_in_progress'
of scaling group/policy might be always True if engine
restarts while scaling.
This patch adds an interface 'handle_metadata_reset' for
resource, then the plugins can override it if needed.
We reset the metadata while marking resource healthy.
Closes-Bug: #1651084
(cherry picked from commit 5b04acb4e25efbea58de998278e390fb64d7c575)
Reviewed: https:/ /review. openstack. org/420271 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=70136e8b812 749b22737274092 6e17d893e23b7d
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 70136e8b812749b 227372740926e17 d893e23b7d
Author: huangtianhua <email address hidden>
Date: Tue Dec 20 20:29:59 2016 +0800
To reset metadata for resources when mark unhealthy
Some resources do not work if their metadata is in in_progress' metadata_ reset' for
a wrong state, .e.g the metadata 'scaling_
of scaling group/policy might be always True if engine
restarts while scaling.
This patch adds an interface 'handle_
resource, then the plugins can override it if needed.
We reset the metadata while marking resource healthy.
Closes-Bug: #1651084 a58de998278e390 fb64d7c575)
(cherry picked from commit 5b04acb4e25efbe
Conflicts: scaling/ cooldown. py tests/engine/ service/ test_stack_ resources. py 4cf9bf16a524127 850968062bc
heat/
heat/
Change-Id: Ibd6c18acf6f3f2