Merge pull request #507 from gnuoy/trilio-ussuri-workaround

Add short-term workaround to Trilio bug
This commit is contained in:
Aurelien Lourot
2021-02-18 16:03:27 +01:00
committed by GitHub
@@ -81,3 +81,17 @@ def basic_setup():
else:
logging.error("Unable to find Trilio License file")
def python2_workaround():
"""Workaround for Bug #1915914.
Trilio code currently has a bug which assumes an executable called 'python'
will be on the path. To workaround this install a package which adds a
symlink to python
"""
for unit in zaza_model.get_units('trilio-wlm'):
zaza_model.run_on_unit(
unit.entity_id,
("apt install --yes python-is-python3; "
"systemctl restart wlm\\*.service"))