← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1556189] Re: Hyper-V: destroying an instance can fail, having in-use files

 

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

commit 190c9855cbf0a1572c4dd662fb7231fbb7f920c1
Author: Claudiu Belu <cbelu@xxxxxxxxxxxxxxxxxxxxxx>
Date:   Tue Oct 18 10:16:58 2016 +0300

    hyperv: stop serial console workers while deleting vm files
    
    If an instance destroy request is received really quick after it
    was powered on, destroying the instance can fail, having the
    console log files in use.
    
    This can happen if the instance power on event is received after
    the destroy operation has started, which will spawn serial console
    workers after the destroy operation tries to clean them up.
    
    We can avoid this situation by simply ensuring that while we delete
    the instance log files, the serial console workers are stopped and
    no other workers will be spawned.
    
    Change-Id: I95002f5bde435ba163d878ce5c2575dc5ca19dcc
    Closes-Bug: #1556189


** Changed in: nova
       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/1556189

Title:
  Hyper-V: destroying an instance can fail, having in-use files

Status in compute-hyperv:
  Fix Released
Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  In some cases, destroying an instance can fail, having the instance
  log files still in-use.

  This can happen in the following scenario:
  1. The vm is powered on
  2. The vm is requested to be destroyed shortly after (less than a few seconds). This driver will now attempt to stop the serial console workers, but none exist yet
  3. The instance power on event callback is run, spawning the serial console workers
  4. The instance is powered off as the destroy operation continues. The serial console workers are not explicitly stopped now. The instance serial port named pipe should be stopped now, which will cause the serial workers to stop themselves shortly after, but before this happens, the driver attempts to delete the instance files, while the console logs are still in use, which will fail.

  Trace: http://paste.openstack.org/show/490196/

  The easiest way to avoid this issue would be to simply retry deleting
  the instance files if this fails, also ensuring again that the console
  workers are stopped. Note that this is quite unlikely to happen in a
  real life deployment.

To manage notifications about this bug go to:
https://bugs.launchpad.net/compute-hyperv/+bug/1556189/+subscriptions