Merge "Deprecate resources for inactive services"
This commit is contained in:
commit
9da45ab44b
@ -32,11 +32,15 @@ class MonascaAlarmDefinition(resource.Resource):
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Monasca project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='7.0.0',
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.UNSUPPORTED
|
||||
))
|
||||
)))
|
||||
|
||||
default_client_name = 'monasca'
|
||||
|
||||
|
@ -32,11 +32,16 @@ class MonascaNotification(resource.Resource):
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Monasca project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='7.0.0',
|
||||
status=support.SUPPORTED,
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.UNSUPPORTED
|
||||
))
|
||||
status=support.SUPPORTED
|
||||
)))
|
||||
|
||||
default_client_name = 'monasca'
|
||||
|
||||
|
@ -49,6 +49,15 @@ class SaharaCluster(resource.Resource):
|
||||
should specify a keypair.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
NAME, PLUGIN_NAME, HADOOP_VERSION, CLUSTER_TEMPLATE_ID,
|
||||
KEY_NAME, IMAGE, MANAGEMENT_NETWORK, IMAGE_ID,
|
||||
|
@ -26,7 +26,14 @@ class DataSource(resource.Resource):
|
||||
or output data and any credentials needed to access the location.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(version='5.0.0')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
NAME, TYPE, URL, DESCRIPTION, CREDENTIALS
|
||||
|
@ -26,7 +26,14 @@ class SaharaImageRegistry(resource.Resource):
|
||||
Allows to register an image in the sahara image registry and add tags.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(version='6.0.0')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
IMAGE, USERNAME, DESCRIPTION, TAGS
|
||||
|
@ -33,7 +33,14 @@ class SaharaJob(signal_responder.SignalResponder, resource.Resource):
|
||||
job binary objects. Can be launched using resource-signal.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(version='8.0.0')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='8.0.0',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
NAME, TYPE, MAINS, LIBS, DESCRIPTION,
|
||||
|
@ -29,7 +29,14 @@ class JobBinary(resource.Resource):
|
||||
credentials needed to retrieve the file.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(version='5.0.0')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='5.0.0',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
NAME, URL, DESCRIPTION, CREDENTIALS
|
||||
|
@ -44,7 +44,14 @@ class SaharaNodeGroupTemplate(resource.Resource):
|
||||
configurations for those processes.
|
||||
"""
|
||||
|
||||
support_status = support.SupportStatus(version='2014.2')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Sahara project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='2014.2',
|
||||
status=support.SUPPORTED
|
||||
))
|
||||
|
||||
PROPERTIES = (
|
||||
NAME, PLUGIN_NAME, HADOOP_VERSION, FLAVOR, DESCRIPTION,
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from heat.common.i18n import _
|
||||
from heat.engine import resource
|
||||
from heat.engine import support
|
||||
|
||||
@ -23,7 +24,13 @@ LOG = logging.getLogger(__name__)
|
||||
class BaseSenlinResource(resource.Resource):
|
||||
"""A base class for Senlin resources."""
|
||||
|
||||
support_status = support.SupportStatus(version='6.0.0')
|
||||
support_status = support.SupportStatus(
|
||||
version='22.0.0',
|
||||
status=support.DEPRECATED,
|
||||
message=_('Senlin project was marked inactive'),
|
||||
previous_status=support.SupportStatus(
|
||||
version='6.0.0',
|
||||
))
|
||||
|
||||
default_client_name = 'senlin'
|
||||
|
||||
|
@ -42,8 +42,7 @@ class ResourceTypeTest(common.HeatTestCase):
|
||||
mock_is_service_available):
|
||||
mock_is_service_available.return_value = (True, None)
|
||||
resources = self.eng.list_resource_types(self.ctx, "DEPRECATED")
|
||||
self.assertEqual(set(['OS::Aodh::Alarm']),
|
||||
set(resources))
|
||||
self.assertIn('OS::Aodh::Alarm', resources)
|
||||
|
||||
@mock.patch.object(res.Resource, 'is_service_available')
|
||||
def test_list_resource_types_supported(self,
|
||||
|
@ -0,0 +1,10 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The following resources have been deprecated, because monasca, sahara and
|
||||
senlin were marked inactive and will not get deliverables for the 2024.1
|
||||
release. These resources will be removed in ``23.0.0`` release.
|
||||
|
||||
- ``OS::Monasca::*``
|
||||
- ``OS::Sahara::*``
|
||||
- ``OS::Senlin::*``
|
Loading…
Reference in New Issue
Block a user