Comment 3 for bug 1459719

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/kilo)

Reviewed: https://review.openstack.org/226221
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=382d038892be3df4ea984a000c18182e749abea5
Submitter: Jenkins
Branch: stable/kilo

commit 382d038892be3df4ea984a000c18182e749abea5
Author: Rico Lin <email address hidden>
Date: Wed Jun 10 14:14:54 2015 +0800

    Stack updated error if creation fails

    template https://github.com/openstack/heat-templates/blob/
    67301b6ff45b9f1c220ee0a0ab3aecd3a415032b/cfn/F17/
    AutoScalingCeilometer.yaml
    can have update error when execute on some resources
    which did not even created due to creation failed.

    Add check logic in _needs_update to make sure even resource still
    stay in init complete state can proceed update process by
    raise resource.UpdateReplace.

    For nested stack, StackResource should have the same status check
    logic in _needs_update method to avoid this error occur(nested()
    is None due to resource in failed state after create failed).

    Change-Id: I3fa6a61436e79409fe7f28cf66dfdfd9f609b576
    Closes-Bug: #1459719
    (cherry picked from commit 878473d92280a1c1823bb3318e4bf89d6df1f87f)