This patch series introduces a backend function for
bulk-removing SSH keys from the cluster. This is useful
to reduce the run-time complexity of renew-crypto
from quadratic to linear as no longer each key
is removed individually.

This patch series is composed similarly to the one
for bulk-*adding* keys:
- The first two patches fix some problem / mismatch
  between the ssh testutilities and the actual
  ssh manipulating functions.
- The third patch introduces the bulk-removing
  function and adds a unit test for removing master
  candidates in bulk.
- The following two patches add more unit tests
  for bulk-removing potential master candidates
  and normal nodes.
- The last but one patch makes the single-key removal
  function use the bulk-removal function in order
  to reuse code.
- The last patch makes renew-crypto finally use
  the new bulk-removal function.

Helga Velroyen (8):
  Make mock SSH file manager deal with lists
  testutils: add keys to own 'authorized_keys' file
  Bulk-removal of SSH keys
  Bulk-remove SSH keys of potential master candidates
  Bulk-removal of SSH keys of normal nodes
  Bulk-removing SSH keys of diverse set of nodes
  Use bulk-removal of SSH keys for single keys
  renew-crypto: use bulk-removal of SSH keys

 lib/backend.py                     | 307 ++++++++++++++++++++++++++-----------
 test/py/ganeti.backend_unittest.py | 144 ++++++++++++++++-
 test/py/testutils_ssh.py           | 155 ++++++++++++++++---
 3 files changed, 489 insertions(+), 117 deletions(-)

-- 
2.6.0.rc2.230.g3dd15c0

Reply via email to