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.
Reviewed: https:/ /review. openstack. org/413060 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=5b04acb4e25 efbea58de998278 e390fb64d7c575
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b04acb4e25efbe a58de998278e390 fb64d7c575
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.
Change-Id: Ibd6c18acf6f3f2 4cf9bf16a524127 850968062bc
Closes-Bug: #1651084