def do(self): from backup.tasks import remove_snapshot_backup for volume in self.host.volumes.all(): for snapshot in volume.backups.all(): remove_snapshot_backup(snapshot, self) self.add_access(volume, self.host) self.clean_up(volume) self.destroy_volume(volume)
def do(self): from backup.tasks import remove_snapshot_backup if self.host_migrate and self.host_migrate.database_migrate: snapshot = self.host_migrate.snapshot else: snapshot = self.step_manager.snapshot if not snapshot: raise VolumeProviderRemoveSnapshotMigrate( 'No snapshot found on {} instance for migration'.format( self.step_manager)) remove_snapshot_backup(snapshot, self, force=1)
def do(self): from backup.tasks import remove_snapshot_backup if self.host_migrate and self.host_migrate.database_migrate: snapshot = self.host_migrate.snapshot else: snapshot = self.step_manager.snapshot if not snapshot: raise VolumeProviderRemoveSnapshotMigrate( 'No snapshot found on {} instance for migration'.format(self.step_manager) ) remove_snapshot_backup(snapshot, self, force=1)
def do(self): from backup.tasks import remove_snapshot_backup for volume in self.host.volumes.all(): for snapshot in volume.backups.all(): remove_snapshot_backup(snapshot, self) self.destroy_volume(volume)