Adding labels support to Storm

Adding support to labels to the Storm plugin as well as marking storm
version 0.9.2 as deprecated.

Change-Id: If58ddce1324341da48fb1d1d3da3d456316c1d10
This commit is contained in:
Telles Nobrega 2017-04-04 09:29:21 -03:00
parent edde55febc
commit 55dc2d8dc2
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,3 @@
---
deprecations:
- Storm version 0.9.2 is deprecated.

View File

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import copy
from oslo_log import log as logging
import six
import yaml
@ -50,8 +52,20 @@ class StormProvider(p.ProvisioningPluginBase):
_("This plugin provides an ability to launch Storm "
"cluster without any management consoles."))
def get_labels(self):
default = {'enabled': {'status': True}, 'stable': {'status': True}}
deprecated = {'enabled': {'status': True},
'deprecated': {'status': True}}
result = {'plugin_labels': copy.deepcopy(default)}
result['version_labels'] = {
'1.1.0': copy.deepcopy(default),
'1.0.1': copy.deepcopy(default),
'0.9.2': copy.deepcopy(deprecated),
}
return result
def get_versions(self):
return ['0.9.2', '1.0.1']
return ['0.9.2', '1.0.1', '1.1.0']
def get_configs(self, storm_version):
return c_helper.get_plugin_configs()