** Also affects: nova
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
Hyper-V: destroying an instance can fail, having in-use files
Status in compute-hyperv:
Status in OpenStack Compute (nova):
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
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
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:
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp