This is used to optimize the SchedulerReportClient
delete_resource_provider method when deleting a compute
node and its related resource provider which happens
in both the API when a compute service is deleted and
in the compute service in the update_available_resource
method for orphan nodes (so the new InstanceList query
method needs to be remotable).
The actual DB query stuff in here is tested in the
nova.tests.functional.wsgi.test_services code.
Reviewed: https:/ /review. opendev. org/657070 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=4adface8b9c 1cdb04f9401d4bb d1c2dc795f94a5
Committed: https:/
Submitter: Zuul
Branch: master
commit 4adface8b9c1cdb 04f9401d4bbd1c2 dc795f94a5
Author: Matt Riedemann <email address hidden>
Date: Fri May 3 18:03:39 2019 -0400
Optimize SchedulerReport Client. delete_ resource_ provider
This is used to optimize the SchedulerReport Client resource_ provider method when deleting a compute available_ resource
delete_
node and its related resource provider which happens
in both the API when a compute service is deleted and
in the compute service in the update_
method for orphan nodes (so the new InstanceList query
method needs to be remotable).
The actual DB query stuff in here is tested in the tests.functiona l.wsgi. test_services code.
nova.
Change-Id: Id033e8f95f853c cfc34bd350be6df 11c1bfb1b7d
Related-Bug: #1811726