Add Ceph commands and status handling

This commit is contained in:
2018-10-27 18:11:58 -04:00
parent 4422eb8941
commit 103ae95fb9
3 changed files with 126 additions and 6 deletions

View File

@ -24,10 +24,6 @@ import uuid
import lxml
import math
import kazoo.client
import paramiko
import hashlib
import dns.resolver
import dns.flags
import client_lib.zkhandler as zkhandler
@ -305,6 +301,11 @@ def findTargetNodeVMs(zk_conn, dom_uuid):
# Connect to the primary host and run a command
def runRemoteCommand(node, command, become=False):
import paramiko
import hashlib
import dns.resolver
import dns.flags
# Support doing SSHFP checks
class DnssecPolicy(paramiko.client.MissingHostKeyPolicy):
def missing_host_key(self, client, hostname, key):