Make Vanilla 2.3.0 plugin deprecated
Change-Id: Ib6b47a5d8ef80646cf32de9c31c4b82e0b323da8
This commit is contained in:
parent
44f37ef189
commit
ebde2feaeb
|
@ -250,3 +250,10 @@ class TimeoutException(SaharaException):
|
|||
|
||||
def __init__(self, timeout):
|
||||
self.message = self.message % timeout
|
||||
|
||||
|
||||
class DeprecatedException(SaharaException):
|
||||
code = "DEPRECATED"
|
||||
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
|
|
|
@ -17,6 +17,8 @@ from oslo.config import cfg
|
|||
|
||||
from sahara import conductor
|
||||
from sahara import context
|
||||
from sahara import exceptions as ex
|
||||
from sahara.i18n import _
|
||||
from sahara.openstack.common import log as logging
|
||||
from sahara.plugins.general import utils
|
||||
from sahara.plugins.vanilla import abstractversionhandler as avm
|
||||
|
@ -53,7 +55,10 @@ class VersionHandler(avm.AbstractVersionHandler):
|
|||
}
|
||||
|
||||
def validate(self, cluster):
|
||||
vl.validate_cluster_creating(self.pctx, cluster)
|
||||
raise ex.DeprecatedException(
|
||||
_("The Vanilla 2.3.0 plugin is now deprecated and will be removed"
|
||||
" in the Kylo release. The Vanilla 2.4.1 plugin remains and"
|
||||
" continues to be supported."))
|
||||
|
||||
def update_infra(self, cluster):
|
||||
pass
|
||||
|
|
|
@ -84,7 +84,7 @@ class ValidationTest(base.SaharaTestCase):
|
|||
lst.append(self.ng[i])
|
||||
|
||||
return tu.create_cluster("cluster1", "tenant1", "vanilla",
|
||||
"2.3.0", lst, **kwargs)
|
||||
"2.4.1", lst, **kwargs)
|
||||
|
||||
def _validate_case(self, *args):
|
||||
cl = self._create_cluster(*args)
|
||||
|
|
Loading…
Reference in New Issue