Servers get rebuilt during a stack update following new image rollout

Bug #1609020 reported by Zane Bitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Triaged
Medium
Rabi Mishra
Mitaka
Confirmed
Undecided
Unassigned
Newton
Triaged
Medium
Rabi Mishra
tripleo
Fix Released
Critical
Thomas Herve
tripleo-common
Fix Released
Undecided
Unassigned

Bug Description

The fix for the Heat bug 1514680 introduced a translation rule that means that the OS::Nova::Server resource now sees only the UUID of the image, even when the image is passed by name. This means that servers will be rebuilt on the next update after uploading new images.

TripleO always keeps the same name when uploading images with the expectation that this will not result in existing servers being rebuilt (however new servers will be created with the latest image).

Zane Bitter (zaneb)
Changed in tripleo-common:
status: New → Confirmed
assignee: nobody → Zane Bitter (zaneb)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

Changed in tripleo-common:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-common (master)

Change abandoned by Zane Bitter (<email address hidden>) on branch: master
Review: https://review.openstack.org/350145
Reason: Ah yeah, I didn't notice that when the translation rule was added, the code to look up the UUID before creating the server was removed. That's much more difficult to surgically work around in a subclass :(

Zane Bitter (zaneb)
Changed in tripleo-common:
assignee: Zane Bitter (zaneb) → nobody
Revision history for this message
Jiří Stránský (jistr) wrote :

Here's a fix from Thomas which fell under the radar upstream and didn't get merged:

https://review.openstack.org/#/c/350778

Marius hit this problem when testing Newton, assigning the rc2 milestone, and also mitaka-backport-potential.

tags: added: mitaka-backport-potential
Changed in tripleo:
importance: Undecided → Critical
assignee: nobody → Thomas Herve (therve)
milestone: none → newton-rc2
status: New → In Progress
Changed in tripleo:
status: In Progress → Fix Released
Changed in tripleo-common:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/350778
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=eaf00514412cbc5f369aed2477857e75c1a4a208
Submitter: Jenkins
Branch: master

commit eaf00514412cbc5f369aed2477857e75c1a4a208
Author: Thomas Herve <email address hidden>
Date: Wed Aug 3 22:35:43 2016 +0200

    Ignore changes to images in nova servers

    Override all changes to the image in OS::Nova::Server, so that we don't
    accidently rebuild them.

    Change-Id: I2ec318b9776239b166d9537e5ca10c851d1d219a
    Closes-Bug: #1609020

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 5.2.0

This issue was fixed in the openstack/tripleo-common 5.2.0 release.

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.