Call generate_image_url only for legacy notification
The legacy instance.exists notification includes the full url of the glance
image of the given instance. But the versioned notification only includes
the image uuid. Generating the full url can be a costly operation as it
needs to talk to Keystone.
So this patch makes sure that generate_image_url only called when the
generated information will be used.
Reviewed: https:/ /review. openstack. org/584969 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=59075b8243e 869774e29bd3b37 8723947c0b3a20
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 59075b8243e8697 74e29bd3b378723 947c0b3a20
Author: Balazs Gibizer <email address hidden>
Date: Thu Apr 26 16:55:15 2018 +0200
Call generate_image_url only for legacy notification
The legacy instance.exists notification includes the full url of the glance
image of the given instance. But the versioned notification only includes
the image uuid. Generating the full url can be a costly operation as it
needs to talk to Keystone.
So this patch makes sure that generate_image_url only called when the
generated information will be used.
Conflicts: compute/ utils.py notifications/ base.py tests/unit/ notifications/ test_base. py
nova/
nova/
nova/
NOTE( elod.illes) : conflict caused by parameter system_metadata which is not
there on master anymore.
Change-Id: I78c2a34b3d0343 8457cc968cd0a38 b8131e4f6e6 969f67e43875ce0 8e5d420b8a)
Closes-Bug: #1757407
(cherry picked from commit 93b897348bde072