Volume attach /detach should be blocked during some opertaions

Bug #1274627 reported by Phil Day
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Phil Day

Bug Description

Currently volume attach, detach, and swap check on vm_state but not task_state. This means that, for example, volume attach is allowed during a reboot, rebuild, or migration.

As with other operations the check should be against a task state of "None"

Phil Day (philip-day)
Changed in nova:
assignee: nobody → Phil Day (philip-day)
milestone: none → icehouse-3
Matt Riedemann (mriedem)
tags: added: api compute volumes
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → icehouse-rc1
Tracy Jones (tjones-i)
Changed in nova:
milestone: icehouse-rc1 → next
tags: added: icehouse-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/70377
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a70c5eb83d14541c2297b6d834dff1c0ac00962e
Submitter: Jenkins
Branch: master

commit a70c5eb83d14541c2297b6d834dff1c0ac00962e
Author: Phil Day <email address hidden>
Date: Fri Jan 31 16:53:35 2014 +0000

    Volume operations should be blocked for non-null task state

    Currently volume attach, detach, and swap check on vm_state but
    not task_state. This means that, for example, volume attach is
    allowed even when other operations such as migration are in
    progress. As with other operations the check should be against
    a task state of "None"

    This change also refactors the volume_attach() method a little
    so that the cells api can include the state decorator checks.

    Change-Id: I0c4d697cf9d9e431a050c3c1b03e46b8629d182a
    Closes-Bug: #1274627

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: next → none
status: Fix Committed → Fix Released
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.