=== modified file 'lava_dispatcher/device/highbank.py'
@@ -232,21 +232,14 @@
@contextlib.contextmanager
def _as_master(self):
self.bootcontrol.power_on_boot_master()
-
- # Two reboots seem to be necessary to ensure that pxe boot is used.
- # Need to identify the cause and fix it
- self.proc.expect("Hit any key to stop autoboot:")
- self.proc.sendline('')
- self.bootcontrol.power_reset_boot_master()
-
self.proc.expect("\(initramfs\)")
self.proc.sendline('export PS1="%s"' % self.MASTER_PS1)
self.proc.expect(self.MASTER_PS1_PATTERN, timeout=180, lava_no_logging=1)
runner = HBMasterCommandRunner(self)
runner.run(". /scripts/functions")
- device = "eth0"
- runner.run("DEVICE=%s configure_networking" % device)
+ runner.run("DEVICE=%s configure_networking" %
+ self.config.default_network_interface)
# we call dhclient even though configure_networking above already
# picked up a IP address. configure_networking brings the interface up,
=== modified file 'lava_dispatcher/ipmi.py'
@@ -56,7 +56,6 @@
def reset(self):
self.__ipmi("chassis power reset")
-
class IpmiPxeBoot(object):
"""
This class provides a convenient object-oriented API that can be
@@ -70,16 +69,10 @@
def power_on_boot_master(self):
self.ipmitool.set_to_boot_from_pxe()
self.ipmitool.power_on()
- self.ipmitool.reset()
-
- def power_reset_boot_master(self):
- self.ipmitool.set_to_boot_from_pxe()
- self.ipmitool.reset()
def power_on_boot_image(self):
self.ipmitool.set_to_boot_from_disk()
self.ipmitool.power_on()
- self.ipmitool.reset()
def power_off(self):
self.ipmitool.power_off()