update multiregion stack failed

Bug #1428979 reported by Ethan Lynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Ethan Lynn

Bug Description

I create a simple multiregion stack with below template:
[elynn@localhost 20150306-multiregion]$ cat update.yaml
heat_template_version: 2013-05-23
parameters:
 flavor:
    type: string
    default: m1.nano
 image:
    type: string
    default: cirros-0.3.2-x86_64-uec
resources:
   stack:
    type: OS::Heat::Stack
    properties:
      context:
        region_name: RegionOne
      template: {get_file: web.yaml}
      parameters:
        flavor: {get_param: flavor}
        image: {get_param: image}

I create a stack using command
heat stack-create mr -f update.yaml

then update it without any change
heat stack-update mr -f update.yaml

Update will failed
[elynn@localhost 20150306-multiregion]$ heat stack-list
+--------------------------------------+-----------------------+-----------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+-----------------------+-----------------+----------------------+
| 90579e37-6bfc-45b6-b757-c7f7b2b00931 | mr | UPDATE_FAILED | 2015-03-06T15:29:17Z |
| a3ccb32a-7340-4c09-9ea3-e83c342bc242 | mr-stack-ocpwszutlrle | CREATE_COMPLETE | 2015-03-06T15:29:18Z |
+--------------------------------------+-----------------------+-----------------+----------------------+

And reason is:
ResourceUnknownStatus: Resource failed - Unknown status CREATE_COMPLETE due to "Resource action mismatch detected: expected=UPDATE actual=CREATE"

Ethan Lynn (ethanlynn)
Changed in heat:
assignee: nobody → Ethan Lynn (ethanlynn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/162053

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/162053
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=4cbd1431ee103dd24852bb3b0780cd933e64e158
Submitter: Jenkins
Branch: master

commit 4cbd1431ee103dd24852bb3b0780cd933e64e158
Author: Ethan Lynn <email address hidden>
Date: Fri Mar 6 23:54:43 2015 +0800

    Always update remote_stack

    Always update remote_stack even though properties didn't change,
    and let the let the individual resources in it decide if they
    need updating

    Closes-Bug: #1428979
    Change-Id: Id0898683b86e3a72e539f2432f521c7ee70afe26

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.