From 01d465dd385e1a30d3e6d60d8f5cdc5831aff25b Mon Sep 17 00:00:00 2001 From: Telles Nobrega Date: Wed, 10 Oct 2018 17:38:14 -0300 Subject: [PATCH] Fixing image validation for Ambari 2.3 Changing ambari version for image validation. Story: #2003996 Task: #26942 Change-Id: I54a1370c482a3a2862f1c8313a984fece25efbd2 --- sahara/plugins/ambari/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sahara/plugins/ambari/plugin.py b/sahara/plugins/ambari/plugin.py index f5203db563..8bcbcd0cfb 100644 --- a/sahara/plugins/ambari/plugin.py +++ b/sahara/plugins/ambari/plugin.py @@ -284,6 +284,10 @@ class AmbariPluginProvider(p.ProvisioningPluginBase): def validate_images(self, cluster, test_only=False, image_arguments=None): image_arguments = self.get_image_arguments(cluster['hadoop_version']) + if cluster['hadoop_version'] == '2.3': + for arguments in image_arguments: + if arguments.name == 'ambari_version': + arguments.default = '2.4.3.0' if not test_only: instances = plugin_utils.get_instances(cluster) else: