masakari/releasenotes/notes
Stephen Finucane 6823ea5ed1 db: Migrate to alembic
This is easier than Cinder, Nova etc. but more difficult than Heat.
Masakari hasn't had many database migrations in recent cycles but it did
have on in Antelope. This means we need to handle people doing
skip-level upgrades and validate which version of the legacy migrations
they are currently on. We support users coming from both Zed and
Antelope and anyone else will need to go through an older version of
Masakari to update their database migrations first. Other than this
difference, the logic is pretty similar: as with other projects, we
simply determine if we're upgrading a deployment that was previously
using sqlalchemy-migrate, upgrading a deployment that has already
migrated to alembic, or deploying a new deployment, and adjust
accordingly.

In addition, we also have to consider Taskflow's migrations. These were
previously being run once as part of the legacy
006_add_persistence_tables migrations. Since Taskflow uses Alembic under
the hood, it's safe to run every time. The presence of Taskflow does
force us to use a different table name in Masakari though.

Note that one curious side-effect of this is that the order than table
rows are purged change. This appears to be happening because the
notification table is now being created in the initial Alembic
migration, which alters the return value of 'MetaData.sorted_tables'.
In any case, the fix is simply a case of adjusting this order in the
tests.

Change-Id: I5285d7cc3c6da0059c0908cedc195b2262cb1fce
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-22 07:31:12 +00:00
..
.placeholder Initial Cookiecutter Commit. 2016-06-28 13:28:27 +09:00
add_evacuate_error_instances_conf_option-5b4d1906137395f0.yaml Make 'error' instances recovery configurable 2017-08-17 10:24:52 +05:30
add_ha_enabled_config_options-54a9270a5993d20a.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
add_reserved_host_to_aggregates-5f506d08354ec148.yaml Add reserved_host to failed_host's aggregate 2017-02-16 11:57:40 +05:30
add-periodic-tasks-0c96d6f620502a75.yaml Release note for _process_unfinished_notifications periodic task 2017-02-15 11:27:54 +05:30
add-upgrade-check-framework-52268130b25317ab.yaml Add framework for masakari-status upgrade check 2018-11-08 13:19:06 +00:00
adopt-oslo-config-generator-cf2fdb17cf7f13db.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
auto_priority_and_rh_priority_recovery_methods-b88cc00041fa2c4d.yaml Fix files to pass linting 2020-09-11 17:24:16 +00:00
blueprint-add-vmoves-348fd430aa936721.yaml releasenote for Masakari VMove 2023-03-07 18:10:45 +08:00
blueprint-support-nova-system-scope-policies-c4dbd244dd3fcf1a.yaml Add support for system-scoped tokens 2021-03-12 16:48:53 +00:00
bp-mutable-config-57efdd467c01aa7b.yaml Enable mutable config in Masakari 2018-05-11 16:10:46 +05:30
bug-1685145-3d93145bfc76c660.yaml Fix response of microversions API 2021-03-15 20:42:56 +00:00
bug-1776385-0bcf0a0b3fad359e.yaml Allow segment description to be multiline 2021-02-24 12:31:28 +01:00
bug-1782517-e4dc70bad9e4e131.yaml Add missed renos 2021-01-29 21:42:46 +01:00
bug-1856164-6601a6e6280eba4d.yaml Assign all aggregates to reserved_host 2021-03-16 21:22:21 +00:00
bug-1859406-6b041a26acf6c7f6.yaml Add missed renos 2021-01-29 21:42:46 +01:00
bug-1882516-e8dc7fd2b55f065f.yaml Fix response of microversions API 2021-03-15 20:42:56 +00:00
bug-1932194-2b721860bbc26819.yaml Fix Masakari API to properly return error codes 2021-07-23 18:46:50 +00:00
bug-1960619-4c2cc73483bdff86.yaml Handle host notification without host status 2022-10-12 15:23:22 +00:00
bug-1980736-975ee013e4612062.yaml Fix stopping stopped instances 2022-09-09 11:24:41 +00:00
bug-add-missing-domain-name-5181c02f3f033a22.yaml Add missing domain name to novaclient 2017-08-16 14:34:09 +08:00
compute_search-3da97e69e661a73f.yaml Search in nova services instead of hypervisors 2020-09-16 20:06:31 +02:00
compute-disable-reason-9570734c0bb888cf.yaml Set "disabled reason" for compute service. 2021-08-17 13:11:53 +03:00
coordination_for_host_notification-a156ec5a5839a781.yaml DLM to fix host notification race. 2022-07-19 09:31:47 +00:00
correct_response_code-df8b43a201efa1b4.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
customisable-ha-enabled-instance-metadata-key-af511ea2aac96690.yaml Add ha_enabled_instance_metadata_key config option 2020-08-16 10:15:00 +02:00
db-purge-support-7a33e2ea5d2a624b.yaml Add db purge support 2018-04-18 13:03:06 +05:30
deprecate-json-formatted-policy-file-57ad537ec19cc7e0.yaml [goal] Deprecate the JSON formatted policy file 2020-12-23 00:47:36 +00:00
deprecate-topic-opt-af83f82143143c61.yaml conf: Deprecate 'masakari_topic' RPC options 2017-07-27 09:59:52 +05:30
drop-py-2-7-059d3cd5e7cb4e1a.yaml [ussuri][goal] Drop python 2.7 support and testing 2019-11-16 14:24:16 +00:00
enabled-to-segment-7e6184feb1e4f818.yaml add enabled to segment 2021-03-03 10:42:35 +08:00
evacuation_in_threads-cc9c79b10acfb5f6.yaml Fix race condition between evacuation and its confirmation 2017-06-23 13:08:03 +05:30
failover_segment_apis-f5bea1cd6d103048.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
fix-endless-periodic-f223845f3044b166.yaml Fix endless periodic looping call after failed evacuation 2020-12-25 16:37:51 +08:00
fix-notification-stuck-problem-fdb84bad8641384b.yaml Fix notfication stuck into running status when timeout 2022-12-05 10:23:01 +08:00
host-apis-46a87fcd56d8ed30.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
notifications_apis-3c3d5055ae9c6649.yaml Fix release notes formatting 2017-02-15 12:18:25 +05:30
notifications-in-masakari-f5d79838fc23cb9b.yaml Send notifications for all API changes 2019-03-05 10:46:23 +05:30
policy-in-code-8740d51624055044.yaml Register and Document policy in code 2018-07-27 12:15:14 +05:30
progress-details-recovery-workflows-5b14b7b3f87374f4.yaml Add progress details for recovery workflows 2019-03-08 10:52:51 +05:30
recovery-method-customization-3438b0e26e322b88.yaml Add hooks for recovery method customization plugins 2018-08-02 13:13:00 +05:30
reserved_host_recovery_method-d2de1f205136c8d5.yaml Add host_failure workflow for 'reserved_host' recovery_method 2017-02-16 11:33:09 +05:30
switch-to-alembic-b438de67c5b22a40.yaml db: Migrate to alembic 2023-12-22 07:31:12 +00:00
wsgi-applications-3ed7d6b89f1a5785.yaml Deploy masakari-api with uwsgi 2018-05-25 00:35:04 -07:00