Comment 7 for bug 1491027

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/7.0)

Reviewed: https://review.openstack.org/221077
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=dab70b2098a9133145bb5c1bf088c3479d93626b
Submitter: Jenkins
Branch: stable/7.0

commit dab70b2098a9133145bb5c1bf088c3479d93626b
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:

    * update /etc/hiera/nodes.yaml
    * update /etc/hosts

    Closes-Bug: #1475363
    Closes-Bug: #1491027

    Change-Id: Ie9ecc5cd1b7cc185a1fc694e728d8ecc571df23d
    Signed-off-by: Igor Kalnitsky <email address hidden>
    (cherry picked from commit c77efaaf1d8f29eff79d25f3f7d6bd3a496ae263)