From 7b4091ad4a20c2fe0d3e9b7204e5e038dc502971 Mon Sep 17 00:00:00 2001 From: Vitaly Gridnev Date: Thu, 28 Jul 2016 14:06:39 +0300 Subject: [PATCH] labels for MapR plugin 1. MapR plugin is only enabled plugin 2. MapR 5.0.0.mrv2 is now deprecated. It's supposed to be removed in Ocata release, since it's not so stable, and based on non-stable hadoop versions. Change-Id: I9d8fccfb955ff0302af4780bd79d8b6b956fa789 bp: plugin-management-api --- releasenotes/notes/mapr-labels-5cc318616db59403.yaml | 7 +++++++ sahara/plugins/mapr/plugin.py | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 releasenotes/notes/mapr-labels-5cc318616db59403.yaml diff --git a/releasenotes/notes/mapr-labels-5cc318616db59403.yaml b/releasenotes/notes/mapr-labels-5cc318616db59403.yaml new file mode 100644 index 00000000..b9b402e4 --- /dev/null +++ b/releasenotes/notes/mapr-labels-5cc318616db59403.yaml @@ -0,0 +1,7 @@ +--- +features: + - MapR 5.1.0.mrv2 is now Enabled. +deprecations: + - MapR 5.0.0.mrv2 is now Deprecated. It is not + recommended for usage. It is better to use MapR 5.1.0.mrv2 + instead. This version of plugin will be removed in Ocata release. diff --git a/sahara/plugins/mapr/plugin.py b/sahara/plugins/mapr/plugin.py index c8003587..d1e2ff34 100644 --- a/sahara/plugins/mapr/plugin.py +++ b/sahara/plugins/mapr/plugin.py @@ -34,6 +34,16 @@ class MapRPlugin(p.ProvisioningPluginBase): def get_description(self): return MapRPlugin.description + def get_labels(self): + return { + 'plugin_labels': {'enabled': {'status': True}}, + 'version_labels': { + '5.1.0.mrv2': {'enabled': {'status': True}}, + '5.0.0.mrv2': {'enabled': {'status': False}, + 'deprecated': {'status': True}} + } + } + def get_versions(self): return vhf.VersionHandlerFactory.get().get_versions()