def verify_data_files(self): session = self.clone_vm.wait_for_login() try: for tag, info in self.disks_info.items(): logging.debug("mount target disk in VM!") utils_disk.mount(info[0], info[1], session=session) backup_utils.verify_file_md5(self.clone_vm, info[1], "data") finally: session.close()
def verify_data_files(self): """ Verify temp file's md5sum in all data disks """ session = self.clone_vm.wait_for_login() try: for tag, info in self.disks_info.items(): if tag != 'image1': logging.debug("mount target disk in VM!") utils_disk.mount(info[0], info[1], session=session) for data_file in self.files_info[tag]: backup_utils.verify_file_md5( self.clone_vm, info[1], data_file) finally: session.close()
def verify_data_file(self): for info in self.files_info: mount_point, filename = info[0], info[1] backup_utils.verify_file_md5(self.clone_vm, mount_point, filename)
def verify_data_file(self): for idx, tag in enumerate(self.snapshot_tags): for info in self.files_info: mount_point, filename = info[0], info[1] backup_utils.verify_file_md5(self.main_vm, mount_point, filename)