'Create a key pair for communicating with remote nodes and which will
be transferred to the remote nodes so that they can communicate with
each other.
This will block until the operation is complete.'

def create_keypair(self):

    local_private_path = self.ssh_config_path.child('id_rsa_flocker')
    if (not self.ssh_config_path.isdir()):
        self.ssh_config_path.makedirs()
    if (not local_private_path.exists()):
        with open(devnull, 'w') as discard:
            check_call(['ssh-keygen', '-N', '', '-f', local_private_path.path], stdout=discard, stderr=discard)
