Add short-term workaround to Trilio bug

This commit is contained in:
Liam Young
2021-02-18 14:38:01 +00:00
parent c42c3f5651
commit f97c717ba0

View File

@@ -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"))