libvirt: release serial console ports when destroying guests
The part of code responsible to release serial ports does not cover
all the cases. This commit moves that part inside the method _destroy
which is responsible for destroying the guest from a libvirt
perspective which is when we want to release ports.
(cherry picked from commit 95da4e87881424524c8ddda6a546764d43eb755e)
Reviewed: https:/ /review. openstack. org/314207 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=26364b206dd c39770079f519e4 b463f06e06a475
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 26364b206ddc397 70079f519e4b463 f06e06a475
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Mon Apr 4 10:24:23 2016 -0400
libvirt: release serial console ports when destroying guests
The part of code responsible to release serial ports does not cover
all the cases. This commit moves that part inside the method _destroy
which is responsible for destroying the guest from a libvirt
perspective which is when we want to release ports.
(cherry picked from commit 95da4e878814245 24c8ddda6a54676 4d43eb755e)
Change-Id: I24f2a1fa3b7ef3 f2a3196f3689e5f 2ba7d49bd87
Closes-Bug: #1489853