nova/nova
Stephen Finucane 1da542ff7a db: Compact Liberty database migrations
Compact Liberty database migrations into a single migration,
'302_liberty.py'.

Users will now need to update to Liberty before updating to Mitaka or
later.

Specific changes include:

- Drop 'volumes', 'iscsi_targets' tables
- Add 'migration_type', 'hidden' columns to 'migrations' table
- Add 'last_seen_up' column to 'services' table
- Add index for 'uuid' column of 'virtual_interfaces' table
- Add 'forced_down' column to 'services' table
- Add 'version' column to 'services' table
- Add 'migration_context' column to 'migration_context' table
- Add index for 'instance_uuid' column of 'instance_system_metadata'
  table for PostgreSQL and SQLite; this was already present for MySQL

This hits the same issue seen previously of a constraint being added to
a boolean field in a shadow table on SQLite, despite this being disabled
for the main table. As before, we can ignore this given SQLite is not a
production DB.

We also hit another case of doing something to a main table but not its
shadow table, which will have to be resolved later.

Now that we can rely on flavor records having been migrated, we can
remove the 'db migrate_flavor_data' nova-manage command. This will be
done separately.

When testing, the previous base version was 279. It is now 301.

[1] https://github.com/sqlalchemy/alembic/issues/652

Change-Id: I9933a9e9087868f1cd92100b3e82c35fe02cab09
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-01-07 11:47:43 +00:00
..
accelerator Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
api Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
cmd Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
compute Merge "Remove six.text_type (1/2)" 2020-12-22 00:45:56 +00:00
conductor Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
conf Merge "Ignore PCI devices with 32bit domain" 2020-12-23 13:26:43 +00:00
console Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
db db: Compact Liberty database migrations 2021-01-07 11:47:43 +00:00
hacking Add a hacking rule for assert_has_calls 2020-09-28 23:08:15 +09:00
image Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
keymgr
locale Imported Translations from Zanata 2020-04-26 07:51:21 +00:00
network Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
notifications virt: Remove 'get_all_bw_counters' API 2020-11-24 15:29:21 +00:00
objects Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
pci Merge "Ignore PCI devices with 32bit domain" 2020-12-23 13:26:43 +00:00
policies virt: Remove 'reset_network' API 2020-11-23 15:55:50 +00:00
privsep Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
scheduler Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
servicegroup Remove six.binary_type/integer_types/string_types 2020-12-13 11:25:14 +00:00
storage Merge "rbd: Only log import failures when the RbdDriver is used" 2020-11-09 23:51:46 +00:00
tests db: Compact Liberty database migrations 2021-01-07 11:47:43 +00:00
virt Merge "Remove six.text_type (1/2)" 2020-12-22 00:45:56 +00:00
volume Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
__init__.py
availability_zones.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
baserpc.py
block_device.py virt: Remove 'is_xenapi' helper 2020-09-11 14:09:06 +01:00
cache_utils.py trivial: Remove unused 'cache_utils' APIs 2020-02-05 17:20:28 +00:00
config.py Fix config option default value for sample config file 2020-11-25 00:05:08 +00:00
context.py Remove six.binary_type/integer_types/string_types 2020-12-13 11:25:14 +00:00
crypto.py crypto: Add support for creating, destroying vTPM secrets 2020-07-16 17:58:36 +01:00
debugger.py trivial: Remove remaining '_LW' instances 2020-05-18 17:00:41 +01:00
exception.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
exception_wrapper.py Use 'Exception.__traceback__' for versioned notifications 2020-06-08 14:38:33 +01:00
filters.py trivial: Remove remaining '_LI' instances 2020-05-18 17:00:57 +01:00
i18n.py trivial: Remove remaining '_LI' instances 2020-05-18 17:00:57 +01:00
loadables.py trivial: Remove dead code 2019-12-12 10:55:02 +00:00
manager.py Remove six.add_metaclass 2020-08-15 07:45:39 +00:00
middleware.py
monkey_patch.py Correctly disable greendns 2020-09-11 12:42:04 -04:00
policy.py Migrate default policy file from JSON to YAML 2020-09-09 08:09:38 -05:00
profiler.py
quota.py Make quotas respect instance_list_per_project_cells 2020-05-15 17:21:29 -04:00
rpc.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
safe_utils.py
service.py Restore retrying the RPC connection to conductor 2020-11-13 18:02:00 +01:00
service_auth.py
test.py Remove six.binary_type/integer_types/string_types 2020-12-13 11:25:14 +00:00
utils.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
version.py Remove six.moves 2020-11-07 03:25:02 +00:00
weights.py Remove six.add_metaclass 2020-08-15 07:45:39 +00:00
wsgi.py trivial: Remove remaining '_LI' instances 2020-05-18 17:00:57 +01:00