Example #1
0
 def verify_software(self):
     super(AbstractSSHHost, self).verify_software()
     try:
         autodir = autotest._get_autodir(self)
         if autodir:
             self.check_diskspace(autodir,
                                  self.AUTOTEST_GB_DISKSPACE_REQUIRED)
     except error.AutoservHostError:
         raise           # only want to raise if it's a space issue
     except Exception:
         # autotest dir may not exist, etc. ignore
         logging.debug('autodir space check exception, this is probably '
                       'safe to ignore\n' + traceback.format_exc())
Example #2
0
    def verify(self):
        super(AbstractSSHHost, self).verify_hardware()

        logging.info('Pinging host ' + self.hostname)
        self.ssh_ping()

        if self.is_shutting_down():
            raise error.AutoservHostIsShuttingDownError("Host is shutting down")

        super(AbstractSSHHost, self).verify_software()

        try:
            autodir = autotest._get_autodir(self)
            if autodir:
                self.check_diskspace(autodir,
                                     self.AUTOTEST_GB_DISKSPACE_REQUIRED)
        except error.AutoservHostError:
            raise           # only want to raise if it's a space issue
        except Exception:
            pass            # autotest dir may not exist, etc. ignore