Exemplo n.º 1
0
def getRemoteConsole(name, ipmiuser=None, ipmipass=None, ipmidomain=None,
                     logfile=None, timeout=20):
    """
    Return either VirtualConsole or PhysicalConsole depending on name.
    """
    if teuthology.lock.query.is_vm(name):
        try:
            return console.VirtualConsole(name)
        except Exception:
            return None
    return console.PhysicalConsole(
        name, ipmiuser, ipmipass, ipmidomain, logfile, timeout)
Exemplo n.º 2
0
def getRemoteConsole(name,
                     ipmiuser=None,
                     ipmipass=None,
                     ipmidomain=None,
                     logfile=None,
                     timeout=20):
    """
    Return either VirtualConsole or PhysicalConsole depending on name.
    """
    if misc.is_vm(name):
        return console.VirtualConsole(name)
    return console.PhysicalConsole(name, ipmiuser, ipmipass, ipmidomain,
                                   logfile, timeout)