There are cases where ``root_provider_id`` of a resource provider is
set to NULL just after it is upgraded to the Rocky release. In such
cases getting allocation candidates raises a Keyerror.
This patch fixes that bug for cases there is no sharing or nested
providers in play.
Reviewed: https:/ /review. openstack. org/613305 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cdbedac920f 407e102a6916f2d 943e50a1b0943d
Committed: https:/
Submitter: Zuul
Branch: master
commit cdbedac920f407e 102a6916f2d943e 50a1b0943d
Author: Tetsuro Nakamura <email address hidden>
Date: Fri Oct 19 23:12:20 2018 +0900
Consider root id is None in the database case
There are cases where ``root_ provider_ id`` of a resource provider is
set to NULL just after it is upgraded to the Rocky release. In such
cases getting allocation candidates raises a Keyerror.
This patch fixes that bug for cases there is no sharing or nested
providers in play.
Change-Id: I9639d852078c95 de506110f24d3f3 5e7cf5e361e Bug:#1799892
Closes-