commit c77efaaf1d8f29eff79d25f3f7d6bd3a496ae263
Author: Igor Kalnitsky <email address hidden>
Date: Sat Sep 5 11:29:08 2015 +0300
Update nodes.yaml and /etc/hosts on node removal
Currently Nailgun doesn't support declarative scale-down mechanism, and
therefore there's no way to trigger some task execution if some node has
been removed from the environment, and that's incredibly annoying for
plugin developers.
Plugin developers could come up with a workaround, and have a deal with
/etc/hiera/nodes.yaml. Unfortunately, this file isn't updated on node
removal event. This commit is going to fix it, and send two tasks on
execution if case of node removal:
Reviewed: https:/ /review. openstack. org/220731 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=c77efaaf1d8 f29eff79d25f3f7 d6bd3a496ae263
Committed: https:/
Submitter: Jenkins
Branch: master
commit c77efaaf1d8f29e ff79d25f3f7d6bd 3a496ae263
Author: Igor Kalnitsky <email address hidden>
Date: Sat Sep 5 11:29:08 2015 +0300
Update nodes.yaml and /etc/hosts on node removal
Currently Nailgun doesn't support declarative scale-down mechanism, and
therefore there's no way to trigger some task execution if some node has
been removed from the environment, and that's incredibly annoying for
plugin developers.
Plugin developers could come up with a workaround, and have a deal with hiera/nodes. yaml. Unfortunately, this file isn't updated on node
/etc/
removal event. This commit is going to fix it, and send two tasks on
execution if case of node removal:
* update /etc/hiera/ nodes.yaml
* update /etc/hosts
Closes-Bug: #1475363
Closes-Bug: #1491027
Change-Id: Ie9ecc5cd1b7cc1 85a1fc694e728d8 ecc571df23d
Signed-off-by: Igor Kalnitsky <email address hidden>