charm-neutron-gateway/unit_tests
James Page 68ea83e60d Avoid restart races for nova-api-metadata
It's possible that the nova-api-metadata will startup during the
time that the nova-conductor processes on the nova-cloud-controller
units are still starting up, resulting in a messaging timeout which
causes the daemon to exit 0.

Upstart will restart a service in this scenario, however systemd is
configured in packaging to only restart 'on-failure' so will not
attempt to restart.

This points to two other bugs - one that a messaging timeout results
in a exit code of 0, and that the OpenStack services under systemd
behave differently to under upstart.

Install an override file for systemd based installs to mimic the
behaviour of upstart, and deal with a code logic problem in the
restart_trigger handling to ensure that the charm does at least
try to restart the nova-api-metadata service at the right points
in time.

Change-Id: Ia08b7840efa33fd301d0e2c55bb30ae1a102cbfa
Closes-Bug: 1547122
2016-07-12 13:02:39 +01:00
..
__init__.py Deploy from source 2015-04-10 14:22:04 +00:00
test_actions_git_reinstall.py Add hardening support 2016-03-31 15:01:54 +01:00
test_actions_openstack_upgrade.py refactor: Drop unsupported configurations and code 2016-03-03 11:31:11 +00:00
test_actions.py Add pause/resume actions and sync charm-helpers 2016-04-10 06:54:31 +00:00
test_neutron_contexts.py Support new style (and multiple) external networks 2016-06-14 17:45:47 +01:00
test_neutron_hooks.py Avoid restart races for nova-api-metadata 2016-07-12 13:02:39 +01:00
test_neutron_utils.py Avoid restart races for nova-api-metadata 2016-07-12 13:02:39 +01:00
test_utils.py Add hardening support 2016-03-31 15:01:54 +01:00