X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=deploy%2Finstall_fuel_master.py;h=5adccefbf3d466dd8e4b9ca9588b46f673c58531;hb=3cddf277c5966c5cc584a493d5923cc5dcdc7820;hp=631bf99b9c51ed972e097507c014471498e501e2;hpb=14f07bc7ecb9f166d5244abcc5789d8fd584c0dd;p=fuel.git diff --git a/deploy/install_fuel_master.py b/deploy/install_fuel_master.py index 631bf99b9..5adccefbf 100644 --- a/deploy/install_fuel_master.py +++ b/deploy/install_fuel_master.py @@ -54,8 +54,12 @@ class InstallFuelMaster(object): self.dha.node_power_off(self.fuel_node_id) - log('Zero the MBR') - self.dha.node_zero_mbr(self.fuel_node_id) + if os.environ.get('LIBVIRT_DEFAULT_URI'): + log('Upload ISO to pool') + self.iso_file = self.dha.upload_iso(self.iso_file) + else: + log('Zero the MBR') + self.dha.node_zero_mbr(self.fuel_node_id) self.dha.node_set_boot_order(self.fuel_node_id, ['disk', 'iso'])