diff options
author | Jonas Bjurel <jonas.bjurel@ericsson.com> | 2016-06-15 17:19:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-15 17:19:54 +0000 |
commit | 3cddf277c5966c5cc584a493d5923cc5dcdc7820 (patch) | |
tree | 2370a47da81ae080c195bff7e74815386413076a /deploy/install_fuel_master.py | |
parent | f09f2e3c661b8fcb1c82151e1ad17eea7275b417 (diff) | |
parent | e9838d6a94d3b49c8a85d42fbf5cddc69af6cdc5 (diff) |
Merge "virtual_fuel: initial support for remote libvirt"
Diffstat (limited to 'deploy/install_fuel_master.py')
-rw-r--r-- | deploy/install_fuel_master.py | 8 |
1 files changed, 6 insertions, 2 deletions
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']) |