commit 7f8a14dbc88f8bb99d6a9da8eab8b16b067603ee
Author: Matt Riedemann <email address hidden>
Date: Tue Dec 19 18:40:31 2017 -0500
Workaround missing RequestSpec.project_id when moving an instance
The online data migration routine to create request specs for old
instances used an admin context which has an empty project_id,
so when scheduling (moving) one of these, if we try to PUT /allocations
in placement using the FilterScheduler we'll fail because the project_id
is None.
This works around that by putting the instance.project_id on the request
spec before calling the scheduler to pick a node and claim resources
against it.
A later change will need to add some sort of online data migration
routine so that we properly update and persist the fix for these
older records.
Reviewed: https:/ /review. openstack. org/529385 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7f8a14dbc88 f8bb99d6a9da8ea b8b16b067603ee
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 7f8a14dbc88f8bb 99d6a9da8eab8b1 6b067603ee
Author: Matt Riedemann <email address hidden>
Date: Tue Dec 19 18:40:31 2017 -0500
Workaround missing RequestSpec. project_ id when moving an instance
The online data migration routine to create request specs for old
instances used an admin context which has an empty project_id,
so when scheduling (moving) one of these, if we try to PUT /allocations
in placement using the FilterScheduler we'll fail because the project_id
is None.
This works around that by putting the instance.project_id on the request
spec before calling the scheduler to pick a node and claim resources
against it.
A later change will need to add some sort of online data migration
routine so that we properly update and persist the fix for these
older records.
Conflicts:
nova/ conductor/ manager. py
nova/ conductor/ tasks/live_ migrate. py
nova/ conductor/ tasks/migrate. py
nova/ tests/unit/ conductor/ test_conductor. py
NOTE(mriedem): The conflicts are due to 12e864886998a24 e111e7d6e05848 and e84fb0861b9b183 3fc6c3cc372d05 not
ca716ce4dd5
685c16041c7
being in Pike.
Change-Id: I34b1d99a9d0d2a ca80f094a79ec16 56abaf762dc bba92c793afd947 073352f850)
Partial-Bug: #1739318
(cherry picked from commit f9a06c42535ef7e