← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1158942] Re: Volume detach fails after unrescuing a instance after trying to detach while instance in rescue state doesn't work.

 

Reviewed:  https://review.openstack.org/26166
Committed: http://github.com/openstack/tempest/commit/e4f2b2ec7805275559def1a085b1ead0b565ef73
Submitter: Jenkins
Branch:    master

commit e4f2b2ec7805275559def1a085b1ead0b565ef73
Author: Joe Gordon <jogo@xxxxxxxxxxxxxxxx>
Date:   Thu Apr 4 15:54:10 2013 -0700

    Re-enable detach volume from unrescued VM
    
    Fix syntax around calling wait_for_volume_status. If don't include
    parameters on the same line, the function doesn't get evaluated.
    
    Fix bug 1158942
    
    Change-Id: I3ad3b8ee07f79bc440d9b26489777510340af2f9


** Changed in: tempest
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1158942

Title:
  Volume detach fails after unrescuing a instance after trying to detach
  while instance in rescue state doesn't work.

Status in OpenStack Compute (Nova):
  In Progress
Status in Tempest:
  Fix Released

Bug description:
  When an instance with a volume attached is brought into a rescue mode
  and a negative test is run against it to detach the volume it returns
  the expected error code. However if you attempt to detach the volume
  again after unrescuing the vm it will not detach properly. The volume
  state goes from detaching to in-use, and it is never detached.

  Steps to reproduce:

  1. Create a server and wait for it to get to ACTIVE state
  2. Create a volume and wait for it to get to AVAILABLE state
  3. Attach the volume to the server and wait for the volume to get to "IN USE" state
  4. Rescue the VM and wait for the VM to get to the "RESCUE" state
  5. Detach the volume from the server, which should fail with 409
  6. Unrescue the VM and wait for it to get to ACTIVE state
  7. Try to detach the volume from the Volume again from the server

  Watching the status of the volume it will go from detaching to in-use
  and remain there.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1158942/+subscriptions