Make vanilla 2.4.1 plugin deprecated

Change-Id: Iacb9f9121e2c0ca7dd95c2adc3a31290c4b1ce60
This commit is contained in:
Sergey Reshetnyak
2015-01-14 14:50:51 +03:00
parent 330ac5372f
commit 09fff82115
2 changed files with 7 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ from oslo_log import log as logging
from sahara import conductor
from sahara import context
from sahara import exceptions as ex
from sahara.i18n import _
from sahara.plugins import utils
from sahara.plugins.vanilla import abstractversionhandler as avm
from sahara.plugins.vanilla.hadoop2 import config as c
@@ -56,7 +58,10 @@ class VersionHandler(avm.AbstractVersionHandler):
}
def validate(self, cluster):
vl.validate_cluster_creating(self.pctx, cluster)
raise ex.DeprecatedException(
_("The vanilla 2.4.1 plugin is now deprecated and will be removed"
" in 2015.2 release. The vanilla 2.6.0 plugin remains and "
" continues to be supported."))
def update_infra(self, cluster):
pass

View File

@@ -84,7 +84,7 @@ class ValidationTest(base.SaharaTestCase):
lst.append(self.ng[i])
return tu.create_cluster("cluster1", "tenant1", "vanilla",
"2.4.1", lst, **kwargs)
"2.6.0", lst, **kwargs)
def _validate_case(self, *args):
cl = self._create_cluster(*args)