Deprecate HDP 2.0.6 plugin

Finally marking this plugin as deprecated in Mitaka release.
We are going to remove that in Newton release.

Change-Id: I227530cca47299587897eeb8e19908a13c585862
This commit is contained in:
Vitaly Gridnev 2016-03-14 15:51:11 +03:00
parent fc7edcf61d
commit d35caf1b05
2 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
deprecations:
- The HDP 2.0.6 plugin is deprecated in Mitaka release and
will be removed in Newton release. Please, use the Ambari 2.3
instead.

View File

@ -18,6 +18,7 @@ from oslo_log import log as logging
from sahara import conductor as c
from sahara import context
from sahara import exceptions as base_exc
from sahara.i18n import _
from sahara.i18n import _LI
from sahara.plugins import exceptions as ex
@ -296,12 +297,10 @@ class AmbariPlugin(p.ProvisioningPluginBase):
'of the Hortonworks Data Platform (HDP) on OpenStack.')
def validate(self, cluster):
# creating operational config results in validation
handler = self.version_factory.get_version_handler(
cluster.hadoop_version)
handler.get_cluster_spec(cluster, self._map_to_user_inputs(
cluster.hadoop_version, cluster.cluster_configs))
raise base_exc.DeprecatedException(
_("The HDP 2.0.6 plugin is deprecated in Mitaka release and "
"will be removed in Newton release. Please, use the Ambari 2.3 "
"instead."))
def scale_cluster(self, cluster, instances):
handler = self.version_factory.get_version_handler(