X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel%2Fdeploy%2Finstall_fuel_master.py;h=0e3c1c044bc402f9469203a3dcbc43839b5adb00;hb=563547b4a9f44090f32c0e17d040114854563760;hp=b4e12d4ca80a776ac9815689964fe81a956915bd;hpb=53cee12e3767a2a8e31dbefaa68a3fc2881abde2;p=genesis.git diff --git a/fuel/deploy/install_fuel_master.py b/fuel/deploy/install_fuel_master.py index b4e12d4..0e3c1c0 100644 --- a/fuel/deploy/install_fuel_master.py +++ b/fuel/deploy/install_fuel_master.py @@ -24,6 +24,7 @@ TRANSPLANT_FUEL_SETTINGS = 'transplant_fuel_settings.py' BOOTSTRAP_ADMIN = '/usr/local/sbin/bootstrap_admin_node' FUEL_CLIENT_CONFIG = '/etc/fuel/client/config.yaml' PLUGINS_DIR = '~/plugins' +LOCAL_PLUGIN_FOLDER = '/opt/opnfv' class InstallFuelMaster(object): @@ -91,7 +92,7 @@ class InstallFuelMaster(object): self.delete_deprecated_fuel_client_config_from_fuel_6_1() - self.upload_plugin_files() + self.collect_plugin_files() self.install_plugins() @@ -99,12 +100,15 @@ class InstallFuelMaster(object): log('Fuel Master installed successfully !') - def upload_plugin_files(self): + def collect_plugin_files(self): with self.ssh as s: s.exec_cmd('mkdir %s' % PLUGINS_DIR) if self.fuel_plugins_dir: for f in glob.glob('%s/*.rpm' % self.fuel_plugins_dir): s.scp_put(f, PLUGINS_DIR) + else: + s.exec_cmd('cp %s/*.rpm %s' % (LOCAL_PLUGIN_FOLDER, + PLUGINS_DIR)) def install_plugins(self): log('Installing Fuel Plugins') @@ -115,7 +119,7 @@ class InstallFuelMaster(object): r, e = s.exec_cmd('fuel plugins --install %s' % f, False) if e and 'does not update installed package' not in r: raise Exception('Installation of Fuel Plugin %s ' - 'failed' % f) + 'failed: %s' % (f, e)) def wait_for_node_up(self): WAIT_LOOP = 60