charm-neutron-api/unit_tests
Edward Hope-Morley 2c21ad14ab Add db initialised detection
Currently whenever the shared-db hook fires we call
migrate_neutron_database() which will always (unless unit
is paused) do a migration and restart the neutron-server
service. This is unnecessary and disruptive so we avoid
doing this by first checking whether we have already
initialised and and skipping migrate and restart if we
have already initialised. We also add support to override
this logic if an upgrade is in progress.

Change-Id: Ia4c104ff21d10a0d24ac3038bb75a5a9dc67ca94
Closes-Bug: 1708459
2017-08-23 15:45:47 +01:00
..
__init__.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00
test_actions_git_reinstall.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00
test_actions_openstack_upgrade.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00
test_actions.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00
test_neutron_api_context.py Add support for setting sriov_supported_pci_vendor_devs 2017-08-02 09:45:35 +01:00
test_neutron_api_hooks.py Add db initialised detection 2017-08-23 15:45:47 +01:00
test_neutron_api_utils.py Add db initialised detection 2017-08-23 15:45:47 +01:00
test_utils.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00