コード例 #1
0
 def _send_progress_end(self, context, backup, object_meta):
     object_meta['backup_percent'] = 100
     volume_utils.notify_about_backup_usage(context,
                                            backup,
                                            "createprogress",
                                            extra_usage_info=
                                            object_meta)
コード例 #2
0
 def _send_progress_notification(self, context, backup, object_meta,
                                 total_block_sent_num, total_volume_size):
     backup_percent = total_block_sent_num * 100 / total_volume_size
     object_meta['backup_percent'] = backup_percent
     volume_utils.notify_about_backup_usage(context,
                                            backup,
                                            "createprogress",
                                            extra_usage_info=object_meta)
コード例 #3
0
 def _send_progress_notification(self, context, backup, object_meta,
                                 total_block_sent_num, total_volume_size):
     backup_percent = total_block_sent_num * 100 / total_volume_size
     object_meta['backup_percent'] = backup_percent
     volume_utils.notify_about_backup_usage(context,
                                            backup,
                                            "createprogress",
                                            extra_usage_info=
                                            object_meta)
コード例 #4
0
 def _notify_about_backup_usage(self,
                                context,
                                backup,
                                event_suffix,
                                extra_usage_info=None):
     volume_utils.notify_about_backup_usage(
         context, backup, event_suffix,
         extra_usage_info=extra_usage_info,
         host=self.host)
コード例 #5
0
ファイル: manager.py プロジェクト: apporc/cinder
 def _notify_about_backup_usage(self,
                                context,
                                backup,
                                event_suffix,
                                extra_usage_info=None):
     volume_utils.notify_about_backup_usage(
         context, backup, event_suffix,
         extra_usage_info=extra_usage_info,
         host=self.host)
コード例 #6
0
ファイル: chunkeddriver.py プロジェクト: yenai2009/cinder
 def _send_progress_end(self, context, backup, object_meta):
     object_meta['backup_percent'] = 100
     volume_utils.notify_about_backup_usage(context,
                                            backup,
                                            "createprogress",
                                            extra_usage_info=object_meta)