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
ca716ce4dd and
685c16041c not
being in Pike.
Change-Id: I34b1d99a9d0d2aca80f094a79ec1656abaf762dc
Partial-Bug: #1739318
(cherry picked from commit f9a06c4253)