Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/reconciliation.py   synnefo(Download)
                vm = get_locked_server(server_id)
                backend_mod.process_op_status(
                    vm=vm,
                    etime=self.event_time,
                    jobid=-0,
            vm = get_locked_server(db_server.id)
            backend_mod.process_op_status(
                vm=vm,
                etime=self.event_time,
                jobid=-0,
                if db_server.operstate == "BUILD":
                    backend_mod.process_op_status(
                        vm=vm, etime=self.event_time, jobid=-0,
                        opcode="OP_INSTANCE_CREATE", status='success',
                        logmsg='Reconciliation: simulated Ganeti event')
                fix_opcode = "OP_INSTANCE_STARTUP"\
                    if gnt_server["state"] == "STARTED"\
                    else "OP_INSTANCE_SHUTDOWN"
                backend_mod.process_op_status(
                    vm=vm, etime=self.event_time, jobid=-0,
                            "maxmem": gnt_flavor.ram}
                backend_mod.process_op_status(
                    vm=vm, etime=self.event_time, jobid=-0,
                    opcode=opcode, status='success',
                    job_fields={"beparams": beparams},

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/servers.py   synnefo(Download)
                    vm.id, vm.operstate)
        # Instance is not running. Mock a shutdown job to sync DB
        backend.process_op_status(vm, etime=datetime.now(), jobid=0,
                                  opcode="OP_INSTANCE_SHUTDOWN",
                                  status="success",

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/callbacks.py   synnefo(Download)
            return
 
    backend_mod.process_op_status(vm, event_time, jobID,
                                  operation, status,
                                  logmsg, nics=nics,