Files
nova/nova/objects
Balazs Gibizer dcf2e3c962 Update InstanceNUMACell version in more cases
The data migration of InstanceNUMACell 1.4 to 1.5 only moved the data to
the new pcpuset field but does not update the ovo version string of the
object in the DB. The previous patch added the missing version update
logic. However it only fixes the issue if the data is not already "half"
migrated to the new structure. So this patch adds logic to also do the
right thing if the wrong data migration already happened.

At the end the solution needs to consider multiple scenarios:
* data is never migrated to the new schema so the new code needs
  to migrate it and update the version string to match the new schema.
  (done by the previous patch)
* data is half migrated by the buggy code and the new code need to
  finish the migration by stamping the version in the DB.
* data is half migrated and then further modified to use the new 1.6
  feature cpu_policy mixed.
* data version is older in the DB than we can meaningfully upgrade

Closes-Bug: #2097359
Change-Id: I10ecfa7841b15637dea3e4736e90faa5f33ddff3
(cherry picked from commit 9507b7b92f)
(cherry picked from commit c008126257)
(cherry picked from commit 882c5ebd8b)
(cherry picked from commit e3db83ce86)
2025-02-18 13:54:32 +01:00
..
2021-08-09 15:34:40 +01:00
2022-09-01 04:50:16 +08:00
2021-08-09 15:34:40 +01:00
2023-03-02 12:16:42 +01:00