In I18e7483ec9a484a660e1d306fdc0986e1d5f952b BDM was added to the instance
notifications. In general to add BDM to the payload an exta DB query is
needed. However the BDM is already locaded before the
notify_about_instance_create is called to send the notification. In this cases
loading the BDM again is unnecessary as the already loaded BDM can be reused.
This patch makes sure that notify_about_instance_create is called with the
already loaded BDM.
The remaining instance related versioned notification calls does not have
BDM already loaded.
Reviewed: https:/ /review. openstack. org/483969 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ad33ae5771d e3a90472ca836a7 b2292c6334fe9e
Committed: https:/
Submitter: Jenkins
Branch: master
commit ad33ae5771de3a9 0472ca836a7b229 2c6334fe9e
Author: Balazs Gibizer <email address hidden>
Date: Fri Jul 14 17:19:03 2017 +0200
use already loaded BDM in instance.create
In I18e7483ec9a484 a660e1d306fdc09 86e1d5f952b BDM was added to the instance about_instance_ create is called to send the notification. In this cases
notifications. In general to add BDM to the payload an exta DB query is
needed. However the BDM is already locaded before the
notify_
loading the BDM again is unnecessary as the already loaded BDM can be reused.
This patch makes sure that notify_ about_instance_ create is called with the
already loaded BDM.
The remaining instance related versioned notification calls does not have
BDM already loaded.
Change-Id: Ic25de45c183482 06f0309da6d4997 f4bf336acb2
Closes-Bug: #1718226