Пример #1
0
 def _do_backup(self, backup_nodes, bitmaps):
     extra_options = {"sync": "none", "wait_job_complete": False}
     backup_utils.blockdev_batch_backup(self.main_vm, self.source_images,
                                        backup_nodes, bitmaps,
                                        **extra_options)
     self.backup_jobs = [
         job['id'] for job in job_utils.query_jobs(self.main_vm)
     ]
 def do_incremental_backup(self):
     extra_options = {
         "sync": "none",
         "disabled_bitmaps": self.disabled_bitmaps,
         "wait_job_complete": False
     }
     backup_utils.blockdev_batch_backup(self.main_vm, self.source_images,
                                        self.inc_backups,
                                        self.inc_backup_bitmaps,
                                        **extra_options)
     self.backup_jobs = [
         job['id'] for job in job_utils.query_jobs(self.main_vm)
     ]
 def do_full_backup(self):
     super(BlockdevIncBackupPullModePoweroffVMTest, self).do_full_backup()
     self._job = [job['id'] for job in query_jobs(self.main_vm)][0]