INNER CODE UNIT · Python
ipaddr2_package
LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:400
def ipaddr2_package():
"""The package that carries the IPaddr2 OCF agent here. Ask the package
manager instead of guessing from the distribution family: guessing gets
Ubuntu 20.04 wrong, where the -base split does not exist yet."""
for package in IPADDR2_PACKAGES:
if pkg_known(package):
return package
return IPADDR2_PACKAGES[-1]
def missing_requirements(vip=None):
"""[(what, package)] for everything this node still needs. The controller
itself is not listed — the script only runs where it is already active."""
needed = []
# "linstor" stands in for the whole linstor-client package: the script
# imports its python-linstor library, and writes a CLI config for the
# operator to use afterwards.
for tool, pkg in (("linstor", "linstor-client"),