INNER CODE UNIT · Python

out

LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:148

def out(cmd):
    return _run(cmd, check=True, capture=True).stdout


CONTROLLER_URI = "linstor://localhost"

_linstor_conn = []


def linstor_api():
    """A connected python-linstor client for the controller on this node.

    The library is imported here and not at the top: preflight() may still have
    to install linstor-client (which brings python-linstor with it), so at
    import time it is not necessarily there yet.

    The controller is always local -- the script only runs where it is active --
    and only until move_db() stops it, which is why every call has to happen

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…