charm-nova-cloud-controller/unit_tests
Alex Kavanagh fe65e12b31 Add caching for knownhost private-address lookups
This change adds caching for the host look ups associated with a
private-address of a unit.  This cache is maintained across hook
invocations, and is designed to reduce the time spent in
cloud-compute-relation-changed hooks (which occur as nova-compute units
join and update on the cloud-compute relation).

The feature has been added under an EXPERIMENTAL config flag (with the
default being "don't use the cached values") in case there are any
corner cases around DNS resolution in the deploying cloud during
deployment.

An action is included to allow clearing of the cache at unit,
application and whole relation level.  This clears the cache and
re-triggers the host resolution, and relation updates.  This is in case
of either 1) DNS changed during the deployment, 2) DNS has been altered
during the running of the cloud.

Change-Id: I5a68bf4c30bf1591184d660d50559c969822ddcf
2019-07-16 14:27:30 +01:00
..
__init__.py Switch the charm to support py3 2018-10-18 15:43:03 +01:00
test_actions.py Add caching for knownhost private-address lookups 2019-07-16 14:27:30 +01:00
test_actions_openstack_upgrade.py Switch the charm to support py3 2018-10-18 15:43:03 +01:00
test_nova_cc_contexts.py Propagate vendor_data from nova-cloud-controller 2019-06-05 10:22:56 -03:00
test_nova_cc_hooks.py Add caching for knownhost private-address lookups 2019-07-16 14:27:30 +01:00
test_nova_cc_utils.py Refactor ssh_known_hosts_lines() and ssh_authorized_keys_lines() 2019-07-03 14:18:16 +01:00
test_utils.py Switch the charm to support py3 2018-10-18 15:43:03 +01:00