I think removing that block of code makes sense.

However, a few lines below, I would add a try/except around the call to
self.driver.destroy().   It looks like it could raise if the instance is
not created at the driver level, which could be the case for an instance
that's in ERROR state.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/954692

Title:
  cannot detach volume from terminated instance

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to