summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-01-31 10:57:09 -0500
committerRussell Teague <rteague@redhat.com>2017-01-31 11:37:29 -0500
commit4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2 (patch)
tree61253a2ce85bda5757ea5208e8c1db758581df1d
parentfca215887b2e4224779b58e8fd1b7662ec993f83 (diff)
downloadopenshift-4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2.tar.gz
openshift-4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2.tar.bz2
openshift-4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2.tar.xz
openshift-4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2.zip
Fail on Ansible version 2.2.1.0
Due to issues with Ansible 2.2.1.0, the version verification has been updated to fail when attempting to use that version.
-rw-r--r--callback_plugins/aa_version_requirement.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/callback_plugins/aa_version_requirement.py b/callback_plugins/aa_version_requirement.py
index 1cca19a45..40affb18b 100644
--- a/callback_plugins/aa_version_requirement.py
+++ b/callback_plugins/aa_version_requirement.py
@@ -30,7 +30,12 @@ else:
# Set to minimum required Ansible version
REQUIRED_VERSION = '2.2.0.0'
-DESCRIPTION = "Supported versions: %s or newer" % REQUIRED_VERSION
+DESCRIPTION = "Supported versions: %s or newer (except 2.2.1.0)" % REQUIRED_VERSION
+FAIL_ON_2_2_1_0 = "There are known issues with Ansible version 2.2.1.0 which " \
+ "are impacting OpenShift-Ansible. Please use Ansible " \
+ "version 2.2.0.0 or a version greater than 2.2.1.0. " \
+ "See this issue for more details: " \
+ "https://github.com/openshift/openshift-ansible/issues/3111"
def version_requirement(version):
@@ -58,3 +63,9 @@ class CallbackModule(CallbackBase):
'FATAL: Current Ansible version (%s) is not supported. %s'
% (__version__, DESCRIPTION), color='red')
sys.exit(1)
+
+ if __version__ == '2.2.1.0':
+ display(
+ 'FATAL: Current Ansible version (%s) is not supported. %s'
+ % (__version__, FAIL_ON_2_2_1_0), color='red')
+ sys.exit(1)