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 recreate that bug by simulating the situation by
inserting the records to the database directly.
Reviewed: https:/ /review. openstack. org/613304 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=95d0ebc3d89 6a1af95c369d5d1 2b413e36c1c8d9
Committed: https:/
Submitter: Zuul
Branch: master
commit 95d0ebc3d896a1a f95c369d5d12b41 3e36c1c8d9
Author: Tetsuro Nakamura <email address hidden>
Date: Fri Oct 19 23:09:33 2018 +0900
Add recreate test for bug 1799892
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 recreate that bug by simulating the situation by
inserting the records to the database directly.
Change-Id: Iaed912314f3e8f ef2f46453a6bf12 011702ae1dd Bug:#1799892
Related-