Add deprecation warning on st2ctl start if st2/python is python 2.x
@@ -87,6 +87,11 @@ function st2start() {
for COM in ${COMPONENTS}; do
service_manager ${COM} start
done
+ PYTHON_VERSION=$(/opt/stackstorm/st2/bin/python --version 2>&1 | awk '{print $2'} | awk -F"." '{print $1}')
+ if [ "${PYTHON_VERSION}" = "2" ]; then
+ echo -e "\e[33mDeprecation warning: Support for python 2 will be removed in future StackStorm releases. Please ensure that all packs used are python 3 compatible. Your StackStorm installation may be upgraded from python 2 to python 3 in future platform releases. It is recommended to plan the manual migration to a python 3 native platform, e.g. Ubuntu 18.04 LTS or CentOS/RHEL 8. \e[0m\n"
+ fi
+
}
function st2stop() {
