This patchset refactors the update_ssh_keys_and_notify_compute_units()
into two separate halves: one is "update keys and hosts from a specified
unit on a relation (or the current relation/unit for the hook)" and the
other is update the relation_set data for the relation with the found
keys/hosts.
This is a precusor patch to reducing the number of dns queries and
setting of relation data, and to eliminate repeated operations on the
same data/result (which currently happens).
Reviewed: https:/ /review. opendev. org/668190 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=0c96b7177ac 3c19665d2b8205d ac32ac2096098d
Committed: https:/
Submitter: Zuul
Branch: master
commit 0c96b7177ac3c19 665d2b8205dac32 ac2096098d
Author: Alex Kavanagh <email address hidden>
Date: Fri Jun 28 16:20:49 2019 +0100
Refactor update_ ssh_keys_ and_notify_ compute_ units()
This patchset refactors the update_ ssh_keys_ and_notify_ compute_ units()
into two separate halves: one is "update keys and hosts from a specified
unit on a relation (or the current relation/unit for the hook)" and the
other is update the relation_set data for the relation with the found
keys/hosts.
This is a precusor patch to reducing the number of dns queries and
setting of relation data, and to eliminate repeated operations on the
same data/result (which currently happens).
Change-Id: I45bc9a88996879 6572a61c199ac25 d543c064670
Related-Bug: 1833420