Did I find the right examples for you? yes no

All Samples(53)  |  Call(53)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/compute/manager.py   nova(Download)
 
            with excutils.save_and_reraise_exception():
                compute_utils.add_instance_fault_from_exc(context,
                        kwargs['instance'], e, sys.exc_info())
 
        rescheduled = False
 
        compute_utils.add_instance_fault_from_exc(context,
                instance, exc_info[1], exc_info=exc_info)
        self._notify_about_instance_usage(context, instance,
                    LOG.warning(_('Reboot failed but instance is running'),
                                context=context, instance=instance)
                    compute_utils.add_instance_fault_from_exc(context,
                            instance, error, exc_info)
                    self._notify_about_instance_usage(context, instance,
            LOG.exception(_("Error trying to reschedule"),
                          instance_uuid=instance_uuid)
            compute_utils.add_instance_fault_from_exc(context,
                    instance, error,
                    exc_info=sys.exc_info())
        if rescheduled:
            self._log_original_error(exc_info, instance_uuid)
            compute_utils.add_instance_fault_from_exc(context,
                    instance, exc_info[1], exc_info=exc_info)
            self._notify_about_instance_usage(context, instance,

src/n/o/nova-HEAD/nova/virt/xenapi/agent.py   nova(Download)
            ctxt = context.get_admin_context()
            compute_utils.add_instance_fault_from_exc(
                    ctxt, self.instance, error, exc_info=exc_info)
        except Exception:
            LOG.debug(_("Error setting instance fault."), exc_info=True)

src/n/o/nova-gce-HEAD/nova/compute/manager.py   nova-gce(Download)
        except Exception, e:
            with excutils.save_and_reraise_exception():
                compute_utils.add_instance_fault_from_exc(context,
                        kwargs['instance']['uuid'], e, sys.exc_info())
 
            LOG.error(_('Cannot reboot instance: %(exc)s'), locals(),
                      context=context, instance=instance)
            compute_utils.add_instance_fault_from_exc(context,
                    instance['uuid'], exc, sys.exc_info())
            # Fall through and reset task_state to None

src/g/a/gantt-HEAD/gantt/scheduler/utils.py   gantt(Download)
            notifications.send_update(context, old_ref, new_ref,
                    service=service)
            compute_utils.add_instance_fault_from_exc(context,
                    conductor,
                    new_ref, ex, sys.exc_info())

src/g/a/gantt-HEAD/gantt/scheduler/driver.py   gantt(Download)
    notifications.send_update(context, old_ref, new_ref,
            service="scheduler")
    compute_utils.add_instance_fault_from_exc(context,
            conductor_api.LocalAPI(),
            new_ref, ex, sys.exc_info())

src/n/o/nova-HEAD/nova/scheduler/utils.py   nova(Download)
            notifications.send_update(context, old_ref, new_ref,
                    service=service)
            compute_utils.add_instance_fault_from_exc(context,
                    new_ref, ex, sys.exc_info())
 

src/n/o/nova-HEAD/nova/scheduler/driver.py   nova(Download)
    notifications.send_update(context, old_ref, new_ref,
            service="scheduler")
    compute_utils.add_instance_fault_from_exc(context,
            new_ref, ex, sys.exc_info())
 

src/n/o/nova-gce-HEAD/nova/scheduler/manager.py   nova-gce(Download)
        for instance_uuid in request_spec.get('instance_uuids') or uuids:
            if instance_uuid:
                compute_utils.add_instance_fault_from_exc(context,
                        instance_uuid, ex, sys.exc_info())
                state = vm_state.upper()

src/n/o/nova-gce-HEAD/nova/scheduler/driver.py   nova-gce(Download)
def handle_schedule_error(context, ex, instance_uuid, request_spec):
    if not isinstance(ex, exception.NoValidHost):
        LOG.exception(_("Exception during scheduler.run_instance"))
    compute_utils.add_instance_fault_from_exc(context,
            instance_uuid, ex, sys.exc_info())

src/n/o/nova-HEAD/nova/tests/compute/test_compute.py   nova(Download)
 
        ctxt = context.get_admin_context()
        compute_utils.add_instance_fault_from_exc(ctxt,
                                                  instance,
                                                  NotImplementedError('test'),
 
        ctxt = context.get_admin_context()
        compute_utils.add_instance_fault_from_exc(ctxt,
            instance, exc, exc_info)
 
 
        ctxt = context.get_admin_context()
        compute_utils.add_instance_fault_from_exc(ctxt,
            instance, user_exc, exc_info)
 
 
        ctxt = context.get_admin_context()
        compute_utils.add_instance_fault_from_exc(ctxt,
                                                  instance,
                                                  NotImplementedError('test'))
 
        ctxt = context.get_admin_context()
        compute_utils.add_instance_fault_from_exc(ctxt,
                                                  instance,
                                                  NotImplementedError(message))

  1 | 2 | 3  Next