commit c455c82dac32f5a0313077ec3bd8aca1f7db1bcb
Author: Stephen Finucane <email address hidden>
Date: Tue Jun 21 15:47:50 2016 +0100
Don't immediately null host/node when shelving
When offloading a shelved instance, resources should be freed. However,
the ability to free resources is dependant on being able to find the
resource tracker for an instance's node. At present, the instance node
and host are nulled before attempting to update the resource tracker,
meaning the resources are never actually freed. Fix this by nullifying
these values *after* resources updates.
Change-Id: I8f91367aacca0c7c673b28b3c844c70c0d12f0a5
Related-bug: #1545675
(cherry picked from commit 59f55a14b5f5396e653d9eb1e5ded31db72f620b)
Reviewed: https:/ /review. openstack. org/337108 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c455c82dac3 2f5a0313077ec3b d8aca1f7db1bcb
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit c455c82dac32f5a 0313077ec3bd8ac a1f7db1bcb
Author: Stephen Finucane <email address hidden>
Date: Tue Jun 21 15:47:50 2016 +0100
Don't immediately null host/node when shelving
When offloading a shelved instance, resources should be freed. However,
the ability to free resources is dependant on being able to find the
resource tracker for an instance's node. At present, the instance node
and host are nulled before attempting to update the resource tracker,
meaning the resources are never actually freed. Fix this by nullifying
these values *after* resources updates.
Change-Id: I8f91367aacca0c 7c673b28b3c844c 70c0d12f0a5 e653d9eb1e5ded3 1db72f620b)
Related-bug: #1545675
(cherry picked from commit 59f55a14b5f5396