commit df6ea0412f462815cf57560e96f33f4e2ff9d072
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 23 17:27:05 2017 -0400
How about not logging errors every time we shelve offload?
The delete_allocation_for_instance method does not return
anything and "if not None" is always True, so we're always
logging an error when we shelve offload an instance, which
is not the most fun thing in the world.
This was probably caused by some confusion with how
remove_provider_from_instance_allocation works which does
return a boolean result.
Change-Id: I30b716b0649f6d367ea747149da5c5f921ae19c5
Closes-Bug: #1712689
(cherry picked from commit e208cbb1f122b948af91a8d11c0f45dcec5bbc76)
Reviewed: https:/ /review. openstack. org/497237 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=df6ea0412f4 62815cf57560e96 f33f4e2ff9d072
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit df6ea0412f46281 5cf57560e96f33f 4e2ff9d072
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 23 17:27:05 2017 -0400
How about not logging errors every time we shelve offload?
The delete_ allocation_ for_instance method does not return
anything and "if not None" is always True, so we're always
logging an error when we shelve offload an instance, which
is not the most fun thing in the world.
This was probably caused by some confusion with how provider_ from_instance_ allocation works which does
remove_
return a boolean result.
Change-Id: I30b716b0649f6d 367ea747149da5c 5f921ae19c5 8af91a8d11c0f45 dcec5bbc76)
Closes-Bug: #1712689
(cherry picked from commit e208cbb1f122b94