Ensure to use python3 to install horizon
In function tacker_horizon_install, it is failed if your runtime
referred as `python` is python2. It is because the function runs
installer script without using $PYTHON which is defined in devstack
for referring appropriate runtime.
@@ -315,8 +315,8 @@ function tacker_horizon_install {
setup_dev_lib "tacker-horizon"
sudo cp $DEST/tacker-horizon/tacker_horizon/enabled/* $DEST/horizon/openstack_dashboard/enabled/
# make sure NFV's dashboard static files get loaded when deploying
- $DEST/tacker-horizon/manage.py collectstatic --noinput
- echo yes | $DEST/tacker-horizon/manage.py compress
+ $PYTHON $DEST/tacker-horizon/manage.py collectstatic --noinput
+ echo yes | $PYTHON $DEST/tacker-horizon/manage.py compress
restart_apache_server
}
