diff options
author | 2015-08-18 19:47:50 +0200 | |
---|---|---|
committer | 2015-09-16 11:33:23 +0200 | |
commit | 49aacd62348d7edf91c5b9bbd40d31708610e1e5 (patch) | |
tree | 0dc637b67d2c56ea71c995ca26113df6c81ce16f /fuel/deploy/reap.py | |
parent | 54f12d2bdd72ae12061ebf62c5b70f357850c411 (diff) |
Autodeployer support for ODL Plugin installation + Fuel 6.1
- Opendaylight plugin installation
- Adapting Autodeployer to Fuel 6.1
- restarting blades that couldn't be discovered Fuel in time
BGS-87 Autodeployment restarts blade if that has not been discovered by Fuel
BGS-90 Fuel 6.1 and Opendaylight Fuel plugin install support for Autodeployer
Change-Id: I83aab3f8caf368a70fd3f2b67c7ba1b6191993c6
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'fuel/deploy/reap.py')
-rw-r--r-- | fuel/deploy/reap.py | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/fuel/deploy/reap.py b/fuel/deploy/reap.py index 8a8681a..1c21891 100644 --- a/fuel/deploy/reap.py +++ b/fuel/deploy/reap.py @@ -1,3 +1,13 @@ +############################################################################### +# Copyright (c) 2015 Ericsson AB and others. +# szilard.cserey@ericsson.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################### + + import common import time import os @@ -65,6 +75,7 @@ DISKS = {'fuel': '30G', 'controller': '30G', 'compute': '30G'} + class Reap(object): def __init__(self, dea_file, dha_file, comment): @@ -219,7 +230,7 @@ class Reap(object): def reap_network_settings(self): network_file = ('%s/network_%s.yaml' - % (self.temp_dir, self.env_id)) + % (self.temp_dir, self.env_id)) data = self.read_yaml(network_file) network = {} network['networking_parameters'] = data['networking_parameters'] @@ -230,7 +241,7 @@ class Reap(object): self.write_yaml(self.dea_file, {'network': network}) def reap_settings(self): - settings_file = '%s/settings_%s.yaml' % (self.temp_dir, self.env_id) + settings_file = '%s/settings_%s.yaml' % (self.temp_dir, self.env_id) settings = self.read_yaml(settings_file) self.write_yaml(self.dea_file, {'settings': settings}) @@ -302,12 +313,14 @@ class Reap(object): self.reap_settings() self.finale() + def usage(): print ''' Usage: python reap.py <dea_file> <dha_file> <comment> ''' + def parse_arguments(): parser = ArgParser(prog='python %s' % __file__) parser.add_argument('dea_file', nargs='?', action='store', @@ -320,11 +333,13 @@ def parse_arguments(): args = parser.parse_args() return (args.dea_file, args.dha_file, args.comment) + def main(): dea_file, dha_file, comment = parse_arguments() r = Reap(dea_file, dha_file, comment) r.reap() + if __name__ == '__main__': - main()
\ No newline at end of file + main() |