Wrong handling of Instance expected_task_state

Bug #1225659 reported by Kravchenko Pavel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Kravchenko Pavel

Bug Description

When Instance.save called the expected_task_state parameter passed to it in order to specify what is instance expected task state.
There many cases when we would expect that there no task state for the vm (task_state=None in db). The expected_task_state=None is overwritten by the default substitution in the save() arguments and due to this not passed correctly to the db.instance_update_and_get_original method call.

Changed in nova:
assignee: nobody → Kravchenko Pavel (kravchenko-pavel)
status: New → In Progress
Revision history for this message
Kravchenko Pavel (kravchenko-pavel) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/46649
Committed: http://github.com/openstack/nova/commit/84a797ec8c801057fef7a3c30ab74426e4c3fbdc
Submitter: Jenkins
Branch: master

commit 84a797ec8c801057fef7a3c30ab74426e4c3fbdc
Author: Kravchenko Pavel <email address hidden>
Date: Mon Oct 28 22:09:43 2013 +0200

    Wrong handling of Instance expected_task_state

    When Instance.save called the expected_task_state parameter can be
    passed to it in order to specify what is the expected task state.
    There many cases when we would expect that there no task state
    for the vm (task_state=None in db). Currently the
    expected_task_state=None is overwritten by the default substitution in
    the save() arguments and due to this not passed correctly to the
    db.instance_update_and_get_original method call.

    Closes-Bug: #1225659

    Change-Id: I84fd2f7e2c50c5f34c84f713d6afc040524a8078

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
importance: Undecided → Medium
tags: added: havana-backport-potential
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.