SYMBOL INDEX (1213 symbols across 84 files) FILE: meter/connector/master.py class master_connector (line 5) | class master_connector: method establish_vswitch (line 13) | def establish_vswitch(ovsname): method build_gre_conn (line 20) | def build_gre_conn(ovsname, ipaddr): method break_gre_conn (line 24) | def break_gre_conn(ovsname, ipaddr): method close_connection (line 28) | def close_connection(fd): method do_message_response (line 35) | def do_message_response(input_buffer): method start (line 39) | def start(): method run_forever (line 45) | def run_forever(): FILE: meter/connector/minion.py class minion_connector (line 5) | class minion_connector: method connect (line 7) | def connect(server_ip): method start (line 39) | def start(server_ip): FILE: meter/daemon/http.py class base_http_handler (line 4) | class base_http_handler(BaseHTTPRequestHandler): method load_module (line 6) | def load_module(self): method do_POST (line 9) | def do_POST(self): class master_http_handler (line 58) | class master_http_handler(base_http_handler): method load_module (line 62) | def load_module(self): class minion_http_handler (line 66) | class minion_http_handler(base_http_handler): method load_module (line 70) | def load_module(self): class http_daemon_listener (line 74) | class http_daemon_listener: method __init__ (line 76) | def __init__(self, handler_class, args = None): method listen (line 80) | def listen(self): FILE: meter/daemon/master_v1.py function http_client_post (line 3) | def http_client_post(ip, port, url, entries = {}): class case_handler (line 11) | class case_handler: method minions_list (line 15) | def minions_list(form, args): method resource_allocation (line 22) | def resource_allocation(form, args): method user_live_add (line 41) | def user_live_add(form, args): method user_live_remove (line 48) | def user_live_remove(form, args): method user_live_list (line 53) | def user_live_list(form, args): FILE: meter/daemon/minion_v1.py class case_handler (line 7) | class case_handler: method billing_increment (line 11) | def billing_increment(form, args): method cgroup_container_list (line 15) | def cgroup_container_list(form, args): method smart_quota_policy (line 19) | def smart_quota_policy(form, args): method cgroup_container_limit (line 28) | def cgroup_container_limit(form, args): method cgroup_container_sample (line 32) | def cgroup_container_sample(form, args): method system_loads (line 36) | def system_loads(form, args): method system_memsw_available (line 40) | def system_memsw_available(form, args): method system_swap_extend (line 44) | def system_swap_extend(form, args): method system_swap_clear (line 48) | def system_swap_clear(form, args): method system_total_physical_memory (line 52) | def system_total_physical_memory(form, args): FILE: meter/intra/billing.py class billing_manager (line 5) | class billing_manager: method on_lxc_acct_usage (line 9) | def on_lxc_acct_usage(uuid, prev, curr, interval): method add_usage_sample (line 19) | def add_usage_sample(uuid, sample, interval): method clean_dead_node (line 24) | def clean_dead_node(uuid): method fetch_increment_and_clean (line 28) | def fetch_increment_and_clean(uuid): FILE: meter/intra/cgroup.py class cgroup_controller (line 3) | class cgroup_controller: method read_value (line 5) | def read_value(group, uuid, item): method write_value (line 13) | def write_value(group, uuid, item, value): class cgroup_manager (line 23) | class cgroup_manager: method set_default_memory_limit (line 29) | def set_default_memory_limit(limit): method set_cgroup_prefix (line 32) | def set_cgroup_prefix(prefix = __prefix_lxc__): method auto_detect_prefix (line 35) | def auto_detect_prefix(): method get_cgroup_containers (line 47) | def get_cgroup_containers(): method get_container_pid (line 57) | def get_container_pid(uuid): method get_container_sample (line 60) | def get_container_sample(uuid): method get_container_limit (line 71) | def get_container_limit(uuid): method get_container_oom_status (line 82) | def get_container_oom_status(uuid): method set_container_oom_idle (line 86) | def set_container_oom_idle(uuid, idle): method protect_container_oom (line 89) | def protect_container_oom(uuid): method set_container_physical_memory_limit (line 102) | def set_container_physical_memory_limit(uuid, Mbytes, freeze = False): method set_container_cpu_priority_limit (line 110) | def set_container_cpu_priority_limit(uuid, ceof): FILE: meter/intra/smart.py class smart_controller (line 7) | class smart_controller: method set_policy (line 9) | def set_policy(policy): method start (line 12) | def start(interval = 4): method smart_control_forever (line 18) | def smart_control_forever(interval): FILE: meter/intra/system.py class system_manager (line 5) | class system_manager: method set_db_prefix (line 9) | def set_db_prefix(prefix): method clear_all_swaps (line 16) | def clear_all_swaps(): method extend_swap (line 20) | def extend_swap(size): method get_cpu_sample (line 41) | def get_cpu_sample(): method get_memory_sample (line 46) | def get_memory_sample(): method get_swap_sample (line 51) | def get_swap_sample(): method get_system_loads (line 56) | def get_system_loads(): method get_proc_etime (line 69) | def get_proc_etime(pid): method get_available_memsw (line 83) | def get_available_memsw(): method get_total_physical_memory_for_containers (line 105) | def get_total_physical_memory_for_containers(): FILE: meter/main.py function signal_handler (line 29) | def signal_handler(signal, frame): FILE: meter/policy/allocate.py class candidates_selector (line 1) | class candidates_selector: method select (line 3) | def select(candidates): FILE: meter/policy/quota.py class identify_policy (line 5) | class identify_policy: method get_score_by_uuid (line 7) | def get_score_by_uuid(uuid): class etime_rev_policy (line 10) | class etime_rev_policy(identify_policy): method get_score_by_uuid (line 12) | def get_score_by_uuid(uuid): class mem_usage_policy (line 17) | class mem_usage_policy(identify_policy): method get_score_by_uuid (line 19) | def get_score_by_uuid(uuid): class mem_quota_policy (line 23) | class mem_quota_policy(identify_policy): method get_score_by_uuid (line 25) | def get_score_by_uuid(uuid): class cpu_usage_policy (line 29) | class cpu_usage_policy(identify_policy): method get_score_by_uuid (line 31) | def get_score_by_uuid(uuid): class cpu_usage_rev_policy (line 35) | class cpu_usage_rev_policy(identify_policy): method get_score_by_uuid (line 37) | def get_score_by_uuid(uuid): class cpu_speed_policy (line 41) | class cpu_speed_policy(identify_policy): method get_score_by_uuid (line 43) | def get_score_by_uuid(uuid): class user_state_policy (line 49) | class user_state_policy(identify_policy): method get_score_by_uuid (line 51) | def get_score_by_uuid(uuid): FILE: src/master/beansapplicationmgr.py function send_beans_email (line 25) | def send_beans_email(to_address, username, beans): class ApplicationMgr (line 55) | class ApplicationMgr: method __init__ (line 57) | def __init__(self): method apply (line 65) | def apply(self,username,number,reason): method query (line 82) | def query(self,username): method queryUnRead (line 91) | def queryUnRead(self,*,cur_user): method agree (line 100) | def agree(self,msgid,*,cur_user): method reject (line 114) | def reject(self,msgid,*,cur_user): class ApprovalRobot (line 123) | class ApprovalRobot(threading.Thread): method __init__ (line 125) | def __init__(self,maxtime=3600): method stop (line 131) | def stop(self): method run (line 134) | def run(self): FILE: src/master/bugreporter.py function send_bug_mail (line 11) | def send_bug_mail(username, bugmessage): FILE: src/master/cloudmgr.py class AliyunMgr (line 15) | class AliyunMgr(): method __init__ (line 16) | def __init__(self): method loadClient (line 28) | def loadClient(self): method createInstance (line 46) | def createInstance(self): method startInstance (line 67) | def startInstance(self, instanceid): method createEIP (line 75) | def createEIP(self): method associateEIP (line 89) | def associateEIP(self, instanceid, eipid): method getInnerIP (line 98) | def getInnerIP(self, instanceid): method isStarted (line 108) | def isStarted(self, instanceids): method rentServers (line 119) | def rentServers(self,number): method addNode (line 146) | def addNode(self): method addNodeAsync (line 160) | def addNodeAsync(self): class EmptyMgr (line 165) | class EmptyMgr(): method addNodeAsync (line 166) | def addNodeAsync(self): class CloudMgr (line 170) | class CloudMgr(): method getSettingFile (line 172) | def getSettingFile(self): method modifySettingFile (line 182) | def modifySettingFile(self, setting): method __init__ (line 192) | def __init__(self): FILE: src/master/deploy.py function myexec (line 7) | def myexec(ssh,command): function deploy (line 22) | def deploy(ipaddr,masterip,account,password,volumename): FILE: src/master/httprest.py function post_to_user (line 46) | def post_to_user(url = '/', data={}): function login_required (line 54) | def login_required(func): function auth_key_required (line 74) | def auth_key_required(func): function beans_check (line 87) | def beans_check(func): function isalive (line 100) | def isalive(user, beans, form): function logs_list (line 107) | def logs_list(user, beans, form): function logs_get (line 113) | def logs_get(user, beans, form): function create_cluster (line 121) | def create_cluster(user, beans, form): function scaleout_cluster (line 161) | def scaleout_cluster(user, beans, form): function scalein_cluster (line 201) | def scalein_cluster(user, beans, form): function start_cluster (line 228) | def start_cluster(user, beans, form): function stop_cluster (line 251) | def stop_cluster(user, beans, form): function delete_cluster (line 273) | def delete_cluster(user, beans, form): function info_cluster (line 300) | def info_cluster(user, beans, form): function list_cluster (line 315) | def list_cluster(user, beans, form): function stopall_cluster (line 326) | def stopall_cluster(): function flush_cluster (line 350) | def flush_cluster(user, beans, form): function save_cluster (line 361) | def save_cluster(user, beans, form): function release_ulock (line 394) | def release_ulock(user, beans, form): function migrate_cluster (line 411) | def migrate_cluster(): function migrate_host (line 454) | def migrate_host(user, beans, form): function list_image (line 472) | def list_image(user, beans, form): function update_base (line 479) | def update_base(user, beans, form): function description_image (line 487) | def description_image(user, beans, form): function share_image (line 498) | def share_image(user, beans, form): function unshare_image (line 513) | def unshare_image(user, beans, form): function delete_image (line 528) | def delete_image(user, beans, form): function copy_image (line 543) | def copy_image(user, beans, form): function copytarget_image (line 562) | def copytarget_image(user, beans, form): function query_account_cloud (line 579) | def query_account_cloud(cur_user, user, form): function modify_account_cloud (line 587) | def modify_account_cloud(cur_user, user, form): function add_node_cloud (line 595) | def add_node_cloud(user, beans, form): function addproxy (line 604) | def addproxy(user, beans, form): function deleteproxy (line 618) | def deleteproxy(user, beans, form): function add_port_mapping (line 627) | def add_port_mapping(user, beans, form): function delete_port_mapping (line 653) | def delete_port_mapping(user, beans, form): function hosts_monitor (line 677) | def hosts_monitor(user, beans, form, com_id, issue): function vnodes_monitor (line 721) | def vnodes_monitor(user, beans, form, con_id, issue): function user_quotainfo_monitor (line 757) | def user_quotainfo_monitor(user, beans, form, issue): function listphynodes_monitor (line 777) | def listphynodes_monitor(user, beans, form): function pending_gpu_tasks_monitor (line 786) | def pending_gpu_tasks_monitor(user, beans, form): function billing_beans (line 795) | def billing_beans(): function parmList_system (line 804) | def parmList_system(user, beans, form): function modify_system (line 812) | def modify_system(user, beans, form): function clear_system (line 827) | def clear_system(user, beans, form): function add_system (line 841) | def add_system(user, beans, form): function delete_system (line 856) | def delete_system(user, beans, form): function resetall_system (line 870) | def resetall_system(user, beans, form): function add_job (line 884) | def add_job(user,beans,form): function list_job (line 963) | def list_job(user,beans,form): function list_all_job (line 973) | def list_all_job(user,beans,form): function info_job (line 983) | def info_job(user,beans,form): function stop_job (line 994) | def stop_job(user,beans,form): function get_output (line 1005) | def get_output(user,beans,form): function info_task (line 1019) | def info_task(user,beans,form): function batch_vnodes_list (line 1024) | def batch_vnodes_list(user,beans,form): function internal_server_error (line 1062) | def internal_server_error(error): FILE: src/master/jobmgr.py function db_commit (line 11) | def db_commit(): class BatchJob (line 19) | class BatchJob(object): method __init__ (line 20) | def __init__(self, jobid, user, job_info, old_job_db=None): method data_lock (line 79) | def data_lock(f): method get_tasks_no_dependency (line 94) | def get_tasks_no_dependency(self,update_status=False): method stop_job (line 113) | def stop_job(self): method _update_job_status (line 119) | def _update_job_status(self): method update_task_running (line 139) | def update_task_running(self, task_idx): method finish_task (line 157) | def finish_task(self, task_idx, running_time, billing): method update_task_retrying (line 205) | def update_task_retrying(self, task_idx, reason, tried_times): method update_task_failed (line 224) | def update_task_failed(self, task_idx, reason, tried_times, running_ti... method update_task_stopped (line 243) | def update_task_stopped(self, task_idx, running_time, billing): method log_status (line 264) | def log_status(self): class JobMgr (line 275) | class JobMgr(): method __init__ (line 278) | def __init__(self, taskmgr): method recover_jobs (line 293) | def recover_jobs(self): method charge_beans (line 307) | def charge_beans(self,username,billing): method add_lock (line 313) | def add_lock(f): method create_job (line 327) | def create_job(self, user, job_info): method add_job (line 335) | def add_job(self, user, job_info): method stop_job (line 351) | def stop_job(self, user, job_id): method list_jobs (line 373) | def list_jobs(self,user): method list_all_jobs (line 388) | def list_all_jobs(self): method get_job (line 405) | def get_job(self, user, job_id): method is_job_exist (line 424) | def is_job_exist(self, job_id): method gen_jobid (line 428) | def gen_jobid(self): method add_task_taskmgr (line 436) | def add_task_taskmgr(self, user, tasks): method process_job (line 447) | def process_job(self, job): method report (line 456) | def report(self, user, task_name, status, reason="", tried_times=1, ru... method get_output (line 502) | def get_output(self, username, jobid, taskid, vnodeid, issue): FILE: src/master/lockmgr.py class LockMgr (line 11) | class LockMgr: method __init__ (line 13) | def __init__(self): method acquire (line 20) | def acquire(self, lock_name): method release (line 29) | def release(self, lock_name): FILE: src/master/monitor.py function get_owner (line 35) | def get_owner(container_name): class Master_Collector (line 40) | class Master_Collector(threading.Thread): method __init__ (line 42) | def __init__(self,nodemgr,master_ip): method net_billings (line 51) | def net_billings(self, username, now_bytes_total): method run (line 68) | def run(self): method stop (line 103) | def stop(self): class Container_Fetcher (line 108) | class Container_Fetcher: method __init__ (line 109) | def __init__(self,container_name): method get_info (line 114) | def get_info(self): method get_cpu_use (line 123) | def get_cpu_use(self): method get_mem_use (line 134) | def get_mem_use(self): method get_disk_use (line 145) | def get_disk_use(self): method get_net_stats (line 155) | def get_net_stats(self): method get_user_net_stats (line 167) | def get_user_net_stats(owner): method get_basic_info (line 177) | def get_basic_info(self): class Fetcher (line 188) | class Fetcher: method __init__ (line 190) | def __init__(self,host): method get_meminfo (line 204) | def get_meminfo(self): method get_gpuinfo (line 213) | def get_gpuinfo(self): method get_cpuinfo (line 222) | def get_cpuinfo(self): method get_cpuconfig (line 231) | def get_cpuconfig(self): method get_diskinfo (line 240) | def get_diskinfo(self): method get_osinfo (line 249) | def get_osinfo(self): method get_concpuinfo (line 258) | def get_concpuinfo(self): method get_containers (line 267) | def get_containers(self): method get_status (line 276) | def get_status(self): method get_containerslist (line 288) | def get_containerslist(self): FILE: src/master/network.py function getip (line 10) | def getip(ifname): function ip_to_int (line 20) | def ip_to_int(addr): function int_to_ip (line 24) | def int_to_ip(num): function fix_ip (line 28) | def fix_ip(addr, cidr): function next_interval (line 33) | def next_interval(addr, cidr): function before_interval (line 38) | def before_interval(addr, cidr): class IntervalPool (line 57) | class IntervalPool(object): method __init__ (line 59) | def __init__(self, addr_cidr=None, copy=None): method __str__ (line 81) | def __str__(self): method printpool (line 84) | def printpool(self): method allocate (line 92) | def allocate(self, thiscidr): method overlap (line 113) | def overlap(self, addr, cidr): method inrange (line 130) | def inrange(self, addr, cidr): method free (line 138) | def free(self, addr, cidr): class EnumPool (line 177) | class EnumPool(object): method __init__ (line 178) | def __init__(self, addr_cidr=None, copy=None): method __str__ (line 196) | def __str__(self): method printpool (line 199) | def printpool(self): method acquire (line 202) | def acquire(self, num=1): method acquire_cidr (line 210) | def acquire_cidr(self, num=1): method inrange (line 216) | def inrange(self, ip): method release (line 224) | def release(self, ip_or_ips): class UserPool (line 241) | class UserPool(EnumPool): method __init__ (line 242) | def __init__(self, addr_cidr=None, copy=None): method get_gateway (line 256) | def get_gateway(self): method get_gateway_cidr (line 259) | def get_gateway_cidr(self): method inrange (line 262) | def inrange(self, ip): method printpool (line 270) | def printpool(self): class NetworkMgr (line 278) | class NetworkMgr(object): method __init__ (line 279) | def __init__(self, addr_cidr, etcdclient, mode, masterip): method load_center (line 370) | def load_center(self): method dump_center (line 375) | def dump_center(self): method load_system (line 378) | def load_system(self): method dump_system (line 383) | def dump_system(self): method load_user (line 386) | def load_user(self, username): method dump_user (line 393) | def dump_user(self, username): method load_usrgw (line 397) | def load_usrgw(self,username): method dump_usrgw (line 402) | def dump_usrgw(self, username): method printpools (line 405) | def printpools(self): method has_usrgw (line 452) | def has_usrgw(self, username): method setup_usrgw (line 456) | def setup_usrgw(self, input_rate_limit, output_rate_limit, username, u... method add_user (line 480) | def add_user(self, username, cidr, isshared = False): method del_usrgwbr (line 509) | def del_usrgwbr(self, username, uid, nodemgr): method del_user (line 526) | def del_user(self, username): method check_usergw (line 548) | def check_usergw(self, input_rate_limit, output_rate_limit, username, ... method check_usergre (line 571) | def check_usergre(self, username, uid, remote, nodemgr, distributedgw=... method has_user (line 586) | def has_user(self, username): method acquire_userips (line 590) | def acquire_userips(self, username, num=1): method acquire_userips_cidr (line 600) | def acquire_userips_cidr(self, username, num=1): method release_userips (line 612) | def release_userips(self, username, ip_or_ips): method get_usergw (line 622) | def get_usergw(self, username): method get_usergw_cidr (line 631) | def get_usergw_cidr(self, username): method acquire_sysips (line 649) | def acquire_sysips(self, num=1): method acquire_sysips_cidr (line 655) | def acquire_sysips_cidr(self, num=1): method release_sysips (line 661) | def release_sysips(self, ip_or_ips): FILE: src/master/nodemgr.py class NodeMgr (line 19) | class NodeMgr(object): method __init__ (line 20) | def __init__(self, networkmgr, etcdclient, addr, mode): method _nodelist_etcd (line 84) | def _nodelist_etcd(self, which): method _watchnewnode (line 95) | def _watchnewnode(self): method recover_node (line 158) | def recover_node(self,ip,tasks): method get_nodeips (line 168) | def get_nodeips(self): method get_batch_nodeips (line 171) | def get_batch_nodeips(self): method get_base_nodeips (line 174) | def get_base_nodeips(self): method get_allnodes (line 177) | def get_allnodes(self): method ip_to_rpc (line 180) | def ip_to_rpc(self,ip): method call_rpc_function (line 190) | def call_rpc_function(self, worker, function, args): FILE: src/master/notificationmgr.py class NotificationMgr (line 14) | class NotificationMgr: method __init__ (line 15) | def __init__(self): method query_user_notifications (line 31) | def query_user_notifications(self, user): method mail_notification (line 39) | def mail_notification(self, notify_id): method create_notification (line 88) | def create_notification(self, *args, **kwargs): method list_notifications (line 123) | def list_notifications(self, *args, **kwargs): method modify_notification (line 142) | def modify_notification(self, *args, **kwargs): method delete_notification (line 166) | def delete_notification(self, *args, **kwargs): method query_self_notification_simple_infos (line 183) | def query_self_notification_simple_infos(self, *args, **kwargs): method query_self_notifications_infos (line 209) | def query_self_notifications_infos(self, *args, **kwargs): method query_notification (line 236) | def query_notification(self, *args, **kwargs): FILE: src/master/parser.py function parse (line 6) | def parse(job_data): FILE: src/master/releasemgr.py function post_to_user (line 12) | def post_to_user(url = '/', data={}): class ReleaseMgr (line 17) | class ReleaseMgr(threading.Thread): method __init__ (line 19) | def __init__(self, vclustermgr, ulockmgr, check_interval=_ONE_DAY_IN_S... method _send_email (line 31) | def _send_email(self, to_address, username, vcluster, days, is_release... method run (line 74) | def run(self): method stop (line 136) | def stop(self): FILE: src/master/settings.py class settingsClass (line 9) | class settingsClass: method __init__ (line 11) | def __init__(self): method get (line 24) | def get(self, arg): method list (line 27) | def list(*args, **kwargs): method update (line 35) | def update(*args, **kwargs): FILE: src/master/sysmgr.py function parse_line (line 13) | def parse_line(line): class SystemManager (line 29) | class SystemManager(): method getParmList (line 31) | def getParmList(*args, **kwargs): method modify (line 83) | def modify(self, field, parm, val): method clear (line 118) | def clear(self, field, parm): method add (line 134) | def add(self, field, parm, val): method delete (line 140) | def delete(self, field, parm): method reset_all (line 154) | def reset_all(self, field): FILE: src/master/taskmgr.py function ip_to_int (line 20) | def ip_to_int(addr): function int_to_ip (line 24) | def int_to_ip(num): class Task (line 27) | class Task(): method __init__ (line 28) | def __init__(self, taskmgr, task_id, username, at_same_time, priority,... method get_billing (line 54) | def get_billing(self): method __lt__ (line 78) | def __lt__(self, other): method gen_ips_from_base (line 81) | def gen_ips_from_base(self,base_ip): method gen_hosts (line 88) | def gen_hosts(self): class SubTask (line 106) | class SubTask(): method __init__ (line 107) | def __init__(self, idx, root_task, vnode_info, command_info, max_retry... method waiting_for_retry (line 127) | def waiting_for_retry(self,reason=""): class TaskReporter (line 135) | class TaskReporter(MasterServicer): method __init__ (line 137) | def __init__(self, taskmgr): method report (line 140) | def report(self, request, context): class TaskMgr (line 146) | class TaskMgr(threading.Thread): method __init__ (line 151) | def __init__(self, nodemgr, monitor_fetcher, master_ip, scheduler_inte... method data_lock (line 196) | def data_lock(lockname): method subtask_lock (line 212) | def subtask_lock(f): method run (line 225) | def run(self): method serve (line 235) | def serve(self): method stop (line 242) | def stop(self): method sort_out_task_queue (line 250) | def sort_out_task_queue(self): method start_vnode (line 295) | def start_vnode(self, subtask): method stop_vnode (line 314) | def stop_vnode(self, subtask): method start_subtask (line 335) | def start_subtask(self, subtask): method stop_subtask (line 350) | def stop_subtask(self, subtask): method acquire_task_ips (line 367) | def acquire_task_ips(self, task): method release_task_ips (line 374) | def release_task_ips(self, task): method setup_tasknet (line 382) | def setup_tasknet(self, task, workers=None): method remove_tasknet (line 399) | def remove_tasknet(self, task): method task_processor (line 405) | def task_processor(self, task, sub_task_list): method clear_sub_tasks (line 468) | def clear_sub_tasks(self, sub_task_list): method clear_sub_task (line 472) | def clear_sub_task(self, sub_task): method lazy_stop_task (line 481) | def lazy_stop_task(self, taskid): method stop_remove_task (line 484) | def stop_remove_task(self, task): method check_task_completed (line 492) | def check_task_completed(self, task): method on_task_report (line 510) | def on_task_report(self, report): method task_scheduler (line 548) | def task_scheduler(self): method has_waiting (line 604) | def has_waiting(self, sub_task_list): method find_proper_workers (line 610) | def find_proper_workers(self, sub_task_list, all_res=False): method get_all_nodes (line 665) | def get_all_nodes(self): method is_alive (line 674) | def is_alive(self, worker): method get_worker_resource_info (line 678) | def get_worker_resource_info(self, worker_ip): method get_cpu_usage (line 690) | def get_cpu_usage(self, worker_ip): method get_gpu_usage (line 698) | def get_gpu_usage(self, worker_ip): method add_task (line 708) | def add_task(self, username, taskid, json_task, task_priority=1): method get_task_list (line 793) | def get_task_list(self): method get_pending_gpu_tasks_info (line 797) | def get_pending_gpu_tasks_info(self): method get_task_order (line 800) | def get_task_order(self, taskid): method get_task (line 807) | def get_task(self, taskid): method set_jobmgr (line 814) | def set_jobmgr(self, jobmgr): method get_user_batch_containers (line 819) | def get_user_batch_containers(self,username): FILE: src/master/testTaskCtrler.py function run (line 10) | def run(): function stop_task (line 27) | def stop_task(): FILE: src/master/testTaskMgr.py class SimulatedNodeMgr (line 10) | class SimulatedNodeMgr(): method get_batch_nodeips (line 11) | def get_batch_nodeips(self): class SimulatedMonitorFetcher (line 15) | class SimulatedMonitorFetcher(): method __init__ (line 16) | def __init__(self, ip): class SimulatedTaskController (line 29) | class SimulatedTaskController(WorkerServicer): method __init__ (line 31) | def __init__(self, worker): method start_vnode (line 34) | def start_vnode(self, vnodeinfo, context): method stop_vnode (line 38) | def stop_vnode(self, vnodeinfo, context): method start_task (line 42) | def start_task(self, taskinfo, context): method stop_task (line 47) | def stop_task(self, taskinfo, context): class SimulatedWorker (line 52) | class SimulatedWorker(threading.Thread): method __init__ (line 54) | def __init__(self): method run (line 59) | def run(self): method stop (line 83) | def stop(self): method process (line 86) | def process(self, task): class SimulatedJobMgr (line 90) | class SimulatedJobMgr(threading.Thread): method __init__ (line 92) | def __init__(self): method run (line 96) | def run(self): method stop (line 101) | def stop(self): method report (line 104) | def report(self, task): method assignTask (line 107) | def assignTask(self, taskmgr, taskid, instance_count, retry_count, tim... class SimulatedLogger (line 129) | class SimulatedLogger(): method info (line 130) | def info(self, msg): method warning (line 133) | def warning(self, msg): method error (line 136) | def error(self, msg): function test (line 140) | def test(): function test2 (line 157) | def test2(): function add (line 171) | def add(taskid, instance_count, retry_count, timeout, cpu, memory, disk,... function report (line 177) | def report(taskid, instanceid, status, token): function stop (line 186) | def stop(): FILE: src/master/testTaskWorker.py function run (line 10) | def run(): function stop_task (line 29) | def stop_task(): function stop_vnode (line 39) | def stop_vnode(): function start_task (line 48) | def start_task(): FILE: src/master/userManager.py function administration_required (line 36) | def administration_required(func): function administration_or_self_required (line 49) | def administration_or_self_required(func): function token_required (line 63) | def token_required(func): function send_activated_email (line 72) | def send_activated_email(to_address, username): function send_remind_activating_email (line 99) | def send_remind_activating_email(username): class userManager (line 139) | class userManager: method __init__ (line 140) | def __init__(self, username = 'root', password = None): method auth_local (line 209) | def auth_local(self, username, password): method auth_pam (line 230) | def auth_pam(self, username, password): method auth_external (line 259) | def auth_external(self, form, userip=""): method auth (line 325) | def auth(self, username, password, userip=""): method auth_token (line 374) | def auth_token(self, token): method set_nfs_quota_bygroup (line 383) | def set_nfs_quota_bygroup(self,groupname, quota): method set_nfs_quota (line 390) | def set_nfs_quota(self, username, quota): method query (line 402) | def query(*args, **kwargs): method selfQuery (line 466) | def selfQuery(*args, **kwargs): method selfModify (line 510) | def selfModify(*args, **kwargs): method usageQuery (line 546) | def usageQuery(self, *args, **kwargs): method usageInc (line 579) | def usageInc(self, *args, **kwargs): method usageRecover (line 616) | def usageRecover(self, *args, **kwargs): method usageRelease (line 647) | def usageRelease(self, *args, **kwargs): method initUsage (line 673) | def initUsage(*args, **kwargs): method userList (line 686) | def userList(*args, **kwargs): method groupList (line 713) | def groupList(*args, **kwargs): method change_default_group (line 733) | def change_default_group(*args, **kwargs): method groupQuery (line 746) | def groupQuery(self, *args, **kwargs): method groupListName (line 765) | def groupListName(*args, **kwargs): method groupModify (line 781) | def groupModify(self, *args, **kwargs): method modify (line 815) | def modify(self, *args, **kwargs): method chpassword (line 869) | def chpassword(*args, **kwargs): method newuser (line 878) | def newuser(*args, **kwargs): method register (line 892) | def register(self, *args, **kwargs): method quotaadd (line 923) | def quotaadd(*args, **kwargs): method groupadd (line 950) | def groupadd(*args, **kwargs): method groupdel (line 979) | def groupdel(*args, **kwargs): method lxcsettingList (line 996) | def lxcsettingList(*args, **kwargs): method chlxcsetting (line 1003) | def chlxcsetting(*args, **kwargs): method queryForDisplay (line 1015) | def queryForDisplay(*args, **kwargs): FILE: src/master/vclustermgr.py function post_to_user (line 14) | def post_to_user(url = '/', data={}): function db_commit (line 23) | def db_commit(): class VclusterMgr (line 32) | class VclusterMgr(object): method __init__ (line 33) | def __init__(self, nodemgr, networkmgr, etcdclient, addr, mode, distri... method _watchrecovering (line 78) | def _watchrecovering(self): method recover_allclusters (line 85) | def recover_allclusters(self): method mount_allclusters (line 93) | def mount_allclusters(self): method stop_allclusters (line 102) | def stop_allclusters(self): method detach_allclusters (line 111) | def detach_allclusters(self): method create_cluster (line 120) | def create_cluster(self, clustername, username, image, user_info, sett... method scale_out_cluster (line 208) | def scale_out_cluster(self,clustername,username, image,user_info, sett... method addproxy (line 264) | def addproxy(self,username,clustername,ip,port): method deleteproxy (line 280) | def deleteproxy(self, username, clustername): method count_port_mapping (line 295) | def count_port_mapping(self, username): method add_port_mapping (line 298) | def add_port_mapping(self,username,clustername,node_name,node_ip,port,... method recover_port_mapping (line 323) | def recover_port_mapping(self,username,clustername): method delete_all_port_mapping (line 335) | def delete_all_port_mapping(self, username, clustername, node_name): method delete_port_mapping (line 365) | def delete_port_mapping(self, username, clustername, node_name, node_p... method flush_cluster (line 386) | def flush_cluster(self,username,clustername,containername): method image_check (line 424) | def image_check(self,username,imagename): method create_image (line 431) | def create_image(self,username,clustername,containername,imagename,des... method delete_cluster (line 452) | def delete_cluster(self, clustername, username, user_info): method scale_in_cluster (line 486) | def scale_in_cluster(self, clustername, username, containername): method get_clustersetting (line 525) | def get_clustersetting(self, clustername, username, containername, all... method update_cluster_baseurl (line 546) | def update_cluster_baseurl(self, clustername, username, oldip, newip): method check_public_ip (line 558) | def check_public_ip(self, clustername, username): method start_cluster (line 570) | def start_cluster(self, clustername, username, user_info): method mount_cluster (line 626) | def mount_cluster(self, clustername, username): method recover_cluster_on (line 637) | def recover_cluster_on(self, host): method recover_clusters (line 646) | def recover_clusters(self, clusters_users): method recover_cluster (line 704) | def recover_cluster(self, clustername, username, uid, input_rate_limit... method stop_cluster (line 760) | def stop_cluster(self, clustername, username): method detach_cluster (line 785) | def detach_cluster(self, clustername, username): method list_clusters (line 798) | def list_clusters(self, user): method migrate_container (line 813) | def migrate_container(self, clustername, username, containername, new_... method migrate_cluster (line 881) | def migrate_cluster(self, clustername, username, src_host, new_host_li... method migrate_host (line 908) | def migrate_host(self, src_host, new_host_list, ulockmgr): method is_cluster (line 937) | def is_cluster(self, clustername, username): method get_clusterid (line 945) | def get_clusterid(self, clustername, username): method update_proxy_ipAndurl (line 954) | def update_proxy_ipAndurl(self, clustername, username, proxy_server_ip): method get_clusterinfo (line 970) | def get_clusterinfo(self, clustername, username): method get_vcluster (line 977) | def get_vcluster(self, clustername, username): method get_all_clusterinfo (line 984) | def get_all_clusterinfo(self): method _acquire_id (line 993) | def _acquire_id(self): FILE: src/protos/rpc_pb2_grpc.py class MasterStub (line 7) | class MasterStub(object): method __init__ (line 11) | def __init__(self, channel): class MasterServicer (line 24) | class MasterServicer(object): method report (line 28) | def report(self, request, context): function add_MasterServicer_to_server (line 36) | def add_MasterServicer_to_server(servicer, server): class WorkerStub (line 49) | class WorkerStub(object): method __init__ (line 53) | def __init__(self, channel): class WorkerServicer (line 81) | class WorkerServicer(object): method start_vnode (line 85) | def start_vnode(self, request, context): method start_task (line 92) | def start_task(self, request, context): method stop_task (line 99) | def stop_task(self, request, context): method stop_vnode (line 106) | def stop_vnode(self, request, context): function add_WorkerServicer_to_server (line 114) | def add_WorkerServicer_to_server(servicer, server): FILE: src/utils/env.py function getenv (line 3) | def getenv(key): FILE: src/utils/etcdlib.py function dorequest (line 17) | def dorequest(url, data = "", method = 'GET'): class Client (line 40) | class Client(object): method __init__ (line 42) | def __init__(self, server, prefix = ""): method getmembers (line 52) | def getmembers(self): method listmembers (line 60) | def listmembers(self): method clean (line 63) | def clean(self): method getkey (line 81) | def getkey(self, key): method setkey (line 89) | def setkey(self, key, value, ttl=0): method delkey (line 100) | def delkey(self, key): method isdir (line 108) | def isdir(self, dirname): method createdir (line 117) | def createdir(self, dirname): method listdir (line 127) | def listdir(self, dirname): method deldir (line 146) | def deldir(self, dirname): method watch (line 156) | def watch(self, key): method atomiccreate (line 165) | def atomiccreate(self, key, value='atom'): method lockref (line 181) | def lockref(self, key): method acquire (line 185) | def acquire(self, lockref): method release (line 192) | def release(self, lockref): FILE: src/utils/gputools.py function add_device (line 10) | def add_device(container_name, device_path): function remove_device (line 15) | def remove_device(container_name, device_path): function nvidia_smi (line 42) | def nvidia_smi(args=[]): function get_gpu_driver_version (line 56) | def get_gpu_driver_version(): function get_gpu_names (line 66) | def get_gpu_names(): function get_gpu_status (line 80) | def get_gpu_status(): function get_gpu_processes (line 98) | def get_gpu_processes(): function get_container_name_by_pid (line 118) | def get_container_name_by_pid(pid): function clean_up_processes_in_gpu (line 128) | def clean_up_processes_in_gpu(gpu_id): FILE: src/utils/imagemgr.py class ImageMgr (line 32) | class ImageMgr(): method sys_return (line 37) | def sys_return(self,command): method __init__ (line 41) | def __init__(self): method datetime_toString (line 47) | def datetime_toString(self,dt): method string_toDatetime (line 50) | def string_toDatetime(self,string): method updateinfo (line 53) | def updateinfo(self,user,imagename,description): method dealpath (line 67) | def dealpath(self,fspath): method createImage (line 73) | def createImage(self,user,image,lxc,description="Not thing", imagenum=... method prepareImage (line 103) | def prepareImage(self,user,image,fspath): method prepareFS (line 130) | def prepareFS(self,user,image,lxc,size="1000",vgname="docklet-group"): method deleteFS (line 175) | def deleteFS(self,lxc,vgname="docklet-group"): method detachFS (line 197) | def detachFS(self, lxc, vgname="docklet-group"): method checkFS (line 205) | def checkFS(self, lxc, vgname="docklet-group"): method removeImage (line 220) | def removeImage(self,user,imagename): method shareImage (line 234) | def shareImage(self,user,imagename): method unshareImage (line 260) | def unshareImage(self,user,imagename): method copyImage (line 284) | def copyImage(self,user,image,token,target): method update_basefs (line 317) | def update_basefs(self,imagename): method update_base_image (line 333) | def update_base_image(self, user, vclustermgr, image): method get_image_info (line 350) | def get_image_info(self, user, imagename, imagetype): method get_image_description (line 370) | def get_image_description(self, user, image): method get_image_size (line 383) | def get_image_size(self, image): method format_size (line 396) | def format_size(self, size_in_byte): method list_images (line 406) | def list_images(self,user): method isshared (line 463) | def isshared(self,user,imagename): FILE: src/utils/log.py function initlogging (line 14) | def initlogging(name='docklet'): class RedirectLogger (line 55) | class RedirectLogger(object): method __init__ (line 56) | def __init__(self, logger, level): method write (line 61) | def write(self, message): method flush (line 66) | def flush(self): FILE: src/utils/logs.py class logsClass (line 10) | class logsClass: method list (line 13) | def list(*args, **kwargs): method get (line 26) | def get(*args, **kwargs): FILE: src/utils/lvmtool.py function sys_run (line 7) | def sys_run(command,check=False): function new_group (line 11) | def new_group(group_name, size = "5000", file_path = "/opt/docklet/local... function recover_group (line 73) | def recover_group(group_name,file_path="/opt/docklet/local/docklet-stora... function new_volume (line 110) | def new_volume(group_name,volume_name,size): function check_group (line 125) | def check_group(group_name): function check_volume (line 132) | def check_volume(group_name,volume_name): function delete_group (line 139) | def delete_group(group_name): function delete_volume (line 153) | def delete_volume(group_name, volume_name): FILE: src/utils/model.py class User (line 66) | class User(db.Model): method __init__ (line 84) | def __init__(self, username, password, avatar="default.png", nickname ... method __repr__ (line 110) | def __repr__(self): method generate_auth_token (line 114) | def generate_auth_token(self, expiration = 3600): method verify_auth_token (line 120) | def verify_auth_token(token): class UserGroup (line 131) | class UserGroup(db.Model): method __init__ (line 139) | def __init__(self, name): method __repr__ (line 146) | def __repr__(self): class UserUsage (line 149) | class UserUsage(db.Model): method __init__ (line 156) | def __init__(self, name): method __repr__ (line 162) | def __repr__(self): class Notification (line 165) | class Notification(db.Model): method __init__ (line 173) | def __init__(self, title, content=''): method __repr__ (line 179) | def __repr__(self): class NotificationGroups (line 183) | class NotificationGroups(db.Model): method __init__ (line 189) | def __init__(self, notification_id, group_name): method __repr__ (line 193) | def __repr__(self): class UserNotificationPair (line 196) | class UserNotificationPair(db.Model): method __init__ (line 202) | def __init__(self, username, notifyid): method __repr__ (line 207) | def __repr__(self): class LoginMsg (line 210) | class LoginMsg(db.Model): method __init__ (line 217) | def __init__(self, username, userip): method __repr__ (line 222) | def __repr__(self): class LoginFailMsg (line 225) | class LoginFailMsg(db.Model): method __init__ (line 231) | def __init__(self, username): method __repr__ (line 236) | def __repr__(self): class VNode (line 239) | class VNode(db.Model): method __init__ (line 247) | def __init__(self, vnode_name): method __repr__ (line 253) | def __repr__(self): class History (line 256) | class History(db.Model): method __init__ (line 266) | def __init__(self, action, runningtime, cputime, billing): method __repr__ (line 273) | def __repr__(self): class ApplyMsg (line 276) | class ApplyMsg(db.Model): method __init__ (line 285) | def __init__(self,username, number, reason): method ch2dict (line 292) | def ch2dict(self): method __repr__ (line 302) | def __repr__(self): class Container (line 305) | class Container(db.Model): method __init__ (line 318) | def __init__(self, containername, hostname, ip, host, image, lastsave,... method __repr__ (line 329) | def __repr__(self): class PortMapping (line 332) | class PortMapping(db.Model): method __init__ (line 341) | def __init__(self, node_name, node_ip, node_port, host_port): method __repr__ (line 347) | def __repr__(self): class BillingHistory (line 350) | class BillingHistory(db.Model): method __init__ (line 359) | def __init__(self,node_name,cpu,mem,disk,port): method __repr__ (line 366) | def __repr__(self): class VCluster (line 370) | class VCluster(db.Model): method __init__ (line 388) | def __init__(self, clusterid, clustername, ownername, status, size, ne... method __repr__ (line 405) | def __repr__(self): class Image (line 428) | class Image(db.Model): method __init__ (line 438) | def __init__(self,imagename,hasPrivate,hasPublic,ownername,description): method __repr__ (line 446) | def __repr__(self): class Batchjob (line 449) | class Batchjob(db.Model): method __init__ (line 462) | def __init__(self,id,username,name,priority): method clear (line 473) | def clear(self): method __repr__ (line 479) | def __repr__(self): class Batchtask (line 495) | class Batchtask(db.Model): method __init__ (line 509) | def __init__(self, id, idx, config): method clear (line 521) | def clear(self): method __repr__ (line 530) | def __repr__(self): FILE: src/utils/nettools.py class ipcontrol (line 7) | class ipcontrol(object): method parse (line 9) | def parse(cmdout): method list_links (line 38) | def list_links(): method link_exist (line 47) | def link_exist(linkname): method link_info (line 55) | def link_info(linkname): method link_state (line 63) | def link_state(linkname): method link_ips (line 71) | def link_ips(linkname): method up_link (line 82) | def up_link(linkname): method down_link (line 90) | def down_link(linkname): method add_addr (line 98) | def add_addr(linkname, address): method del_addr (line 106) | def del_addr(linkname, address): class ovscontrol (line 126) | class ovscontrol(object): method list_bridges (line 128) | def list_bridges(): method bridge_exist (line 136) | def bridge_exist(bridge): method port_tobridge (line 144) | def port_tobridge(port): method port_exists (line 152) | def port_exists(port): method add_bridge (line 156) | def add_bridge(bridge): method del_bridge (line 164) | def del_bridge(bridge): method list_ports (line 172) | def list_ports(bridge): method del_port (line 180) | def del_port(bridge, port): method add_port (line 188) | def add_port(bridge, port): method add_port_internal (line 196) | def add_port_internal(bridge, port): method add_port_internal_withtag (line 204) | def add_port_internal_withtag(bridge, port, tag): method add_port_gre (line 212) | def add_port_gre(bridge, port, remote): method add_port_gre_withkey (line 220) | def add_port_gre_withkey(bridge, port, remote, key): method set_port_tag (line 228) | def set_port_tag(port, tag): method set_port_input_qos (line 236) | def set_port_input_qos(port, input_rate_limit): method del_port_input_qos (line 248) | def del_port_input_qos(port): method set_port_output_qos (line 258) | def set_port_output_qos(port, output_rate_limit): method del_port_output_qos (line 267) | def del_port_output_qos(port): method destroy_all_qos (line 276) | def destroy_all_qos(): class netcontrol (line 283) | class netcontrol(object): method bridge_exists (line 285) | def bridge_exists(bridge): method del_bridge (line 289) | def del_bridge(bridge): method new_bridge (line 293) | def new_bridge(bridge): method gre_exists (line 297) | def gre_exists(bridge, remote): method setup_gre (line 302) | def setup_gre(bridge, remote): method gw_exists (line 306) | def gw_exists(bridge, gwport): method setup_gw (line 310) | def setup_gw(bridge, gwport, addr, input_rate_limit, output_rate_limit): method del_gw (line 326) | def del_gw(bridge, gwport): method check_gw (line 336) | def check_gw(bridge, gwport, uid, addr, input_rate_limit, output_rate_... method recover_usernet (line 354) | def recover_usernet(portname, uid, GatewayHost, isGatewayHost): class portcontrol (line 369) | class portcontrol(object): method init_new (line 372) | def init_new(): method init_recovery (line 393) | def init_recovery(Free_Ports_str): method acquire_port_mapping (line 398) | def acquire_port_mapping(container_name, container_ip, container_port,... method release_port_mapping (line 442) | def release_port_mapping(container_name, container_ip, container_port): FILE: src/utils/proxytool.py function get_routes (line 9) | def get_routes(): function set_route (line 16) | def set_route(path, target): function delete_route (line 26) | def delete_route(path): FILE: src/utils/tools.py function loadenv (line 7) | def loadenv(configpath): function gen_token (line 22) | def gen_token(): FILE: src/utils/updatebase.py function aufs_remove (line 6) | def aufs_remove(basefs): function aufs_clean (line 15) | def aufs_clean(basefs): function aufs_merge (line 22) | def aufs_merge(image, basefs): function aufs_update_base (line 70) | def aufs_update_base(image, basefs): FILE: src/worker/container.py class Container (line 11) | class Container(object): method __init__ (line 12) | def __init__(self, addr, etcdclient): method prepare_hook_conf (line 27) | def prepare_hook_conf(self, conf_path, env_dict): method create_container (line 38) | def create_container(self, lxc_name, proxy_server_ip, username, uid, s... method delete_container (line 156) | def delete_container(self, lxc_name): method start_container (line 175) | def start_container(self, lxc_name): method start_services (line 192) | def start_services(self, lxc_name, services=[]): method mount_container (line 213) | def mount_container(self,lxc_name): method recover_container (line 222) | def recover_container(self, lxc_name): method update_baseurl (line 246) | def update_baseurl(self, lxc_name, old_ip, new_ip): method stop_container (line 260) | def stop_container(self, lxc_name): method detach_container (line 278) | def detach_container(self, lxc_name): method check_container (line 289) | def check_container(self, lxc_name): method is_container (line 299) | def is_container(self, lxc_name): method container_status (line 305) | def container_status(self, lxc_name): method list_containers (line 314) | def list_containers(self): method delete_allcontainers (line 320) | def delete_allcontainers(self): method diff_containers (line 338) | def diff_containers(self): method create_image (line 358) | def create_image(self,username,imagename,containername,description="no... method update_basefs (line 361) | def update_basefs(self,imagename): method check_allcontainers (line 365) | def check_allcontainers(self): FILE: src/worker/monitor.py function request_master (line 68) | def request_master(url,data): class Container_Collector (line 76) | class Container_Collector(threading.Thread): method __init__ (line 78) | def __init__(self,test=False): method list_container (line 113) | def list_container(self): method get_proc_etime (line 120) | def get_proc_etime(self,pid): method billing_increment (line 138) | def billing_increment(cls,vnode_name,isreal=True): method collect_net_stats (line 229) | def collect_net_stats(self): method collect_containerinfo (line 256) | def collect_containerinfo(self,container_name): method run (line 393) | def run(self): method stop (line 429) | def stop(self): class Collector (line 433) | class Collector(threading.Thread): method __init__ (line 435) | def __init__(self,test=False): method collect_meminfo (line 447) | def collect_meminfo(self): method collect_cpuinfo (line 461) | def collect_cpuinfo(self): method collect_gpuinfo (line 487) | def collect_gpuinfo(self): method collect_diskinfo (line 513) | def collect_diskinfo(self): method collect_osinfo (line 547) | def collect_osinfo(self): method run (line 560) | def run(self): method stop (line 577) | def stop(self): function workerFetchInfo (line 581) | def workerFetchInfo(master_ip): function get_owner (line 591) | def get_owner(container_name): function get_cluster (line 596) | def get_cluster(container_name): function count_port_mapping (line 600) | def count_port_mapping(vnode_name): function save_billing_history (line 604) | def save_billing_history(vnode_name, billing_history): function get_billing_history (line 624) | def get_billing_history(vnode_name): class History_Manager (line 637) | class History_Manager: method __init__ (line 639) | def __init__(self): method getAll (line 646) | def getAll(self): method log (line 651) | def log(self,vnode_name,action): method getHistory (line 696) | def getHistory(self,vnode_name): method getCreatedVNodes (line 705) | def getCreatedVNodes(self,owner): FILE: src/worker/ossmounter.py class OssMounter (line 5) | class OssMounter(object): method execute_cmd (line 9) | def execute_cmd(cmd): method mount_oss (line 20) | def mount_oss(datapath, mount_info): method umount_oss (line 26) | def umount_oss(datapath, mount_info): class AliyunOssMounter (line 30) | class AliyunOssMounter(OssMounter): method mount_oss (line 33) | def mount_oss(datapath, mount_info): method umount_oss (line 60) | def umount_oss(datapath, mount_info): FILE: src/worker/taskcontroller.py function ip_to_int (line 26) | def ip_to_int(addr): function int_to_ip (line 30) | def int_to_ip(num): class TaskController (line 33) | class TaskController(rpc_pb2_grpc.WorkerServicer): method __init__ (line 35) | def __init__(self): method acquire_ip (line 94) | def acquire_ip(self): method release_ip (line 105) | def release_ip(self,ipstr): method add_gpu_device (line 112) | def add_gpu_device(self, lxcname, gpu_need): method release_gpu_device (line 142) | def release_gpu_device(self, lxcname): method mount_oss (line 150) | def mount_oss(self, datapath, mount_info): method umount_oss (line 172) | def umount_oss(self, datapath, mount_info): method create_container (line 186) | def create_container(self,instanceid,username,image,lxcname,quota): method process_task (line 232) | def process_task(self, request, context): method write_output (line 303) | def write_output(self,lxcname,tmplogpath,filepath): method execute_task (line 315) | def execute_task(self,username,taskid,instanceid,envs,lxcname,pkgpath,... method stop_tasks (line 404) | def stop_tasks(self, request, context): method add_msg (line 411) | def add_msg(self,taskid,username,instanceid,status,token,errmsg): method report_msg (line 420) | def report_msg(self): method start_report (line 435) | def start_report(self): function TaskControllerServe (line 442) | def TaskControllerServe(): FILE: src/worker/taskworker.py class TaskWorker (line 28) | class TaskWorker(rpc_pb2_grpc.WorkerServicer): method __init__ (line 30) | def __init__(self): method stop_and_rm_containers (line 82) | def stop_and_rm_containers(self,lxcname): method rm_all_batch_containers (line 97) | def rm_all_batch_containers(self): method add_gpu_device (line 107) | def add_gpu_device(self, lxcname, gpu_need): method release_gpu_device (line 137) | def release_gpu_device(self, lxcname): method mount_oss (line 145) | def mount_oss(self, datapath, mount_info): method umount_oss (line 167) | def umount_oss(self, datapath, mount_info): method start_vnode (line 181) | def start_vnode(self, request, context): method start_task (line 259) | def start_task(self, request, context): method stop_task (line 282) | def stop_task(self, request, context): method stop_vnode (line 293) | def stop_vnode(self, request, context): method prepare_hook_conf (line 327) | def prepare_hook_conf(self, conf_path, env_dict): method create_container (line 339) | def create_container(self,taskid,vnodeid,username,image,lxcname,quota,... method write_output (line 385) | def write_output(self,lxcname,tmplogpath,filepath): method execute_task (line 397) | def execute_task(self,username,taskid,vnodeid,envs,lxcname,pkgpath,com... method add_msg (line 468) | def add_msg(self,taskid,username,vnodeid,status,token,errmsg): method report_msg (line 476) | def report_msg(self): method start_report (line 491) | def start_report(self): function TaskWorkerServe (line 497) | def TaskWorkerServe(): FILE: src/worker/worker.py function generatekey (line 42) | def generatekey(path): class ThreadXMLRPCServer (line 46) | class ThreadXMLRPCServer(ThreadingMixIn,xmlrpc.server.SimpleXMLRPCServer): class Worker (line 49) | class Worker(object): method __init__ (line 50) | def __init__(self, etcdclient, addr, port): method start (line 197) | def start(self): method sendheartbeat (line 214) | def sendheartbeat(self): FILE: tools/clean-usage.py function clean_usage (line 7) | def clean_usage(username,alluser=False): FILE: tools/update_con_network.py function post_to_user (line 12) | def post_to_user(url = '/', data={}): FILE: tools/update_v0.3.2.py function isexist (line 3) | def isexist(quotas, key): FILE: tools/upgrade.py function update_quotainfo (line 9) | def update_quotainfo(): function name_error (line 70) | def name_error(): function allquota (line 96) | def allquota(): function quotaquery (line 106) | def quotaquery(quotaname,quotas): function enable_gluster_quota (line 112) | def enable_gluster_quota(): function update_image (line 153) | def update_image(): FILE: user/stopreqmgr.py function request_master (line 14) | def request_master(url,data): class StopAllReqMgr (line 23) | class StopAllReqMgr(threading.Thread): method __init__ (line 24) | def __init__(self, maxsize=100, interval=1): method add_request (line 30) | def add_request(self,username): method run (line 33) | def run(self): method stop (line 44) | def stop(self): FILE: user/user.py function login_required (line 43) | def login_required(func): function auth_key_required (line 58) | def auth_key_required(func): function login (line 72) | def login(): function external_login (line 88) | def external_login(): function register (line 100) | def register(): function auth_token (line 150) | def auth_token(cur_user, user, form): function modify_user (line 159) | def modify_user(cur_user, user, form): function groupModify_user (line 167) | def groupModify_user(cur_user, user, form): function query_user (line 178) | def query_user(cur_user, user, form): function add_user (line 195) | def add_user(cur_user, user, form): function groupadd_user (line 209) | def groupadd_user(cur_user, user, form): function chdefault (line 220) | def chdefault(cur_user, user, form): function quotaadd_user (line 231) | def quotaadd_user(cur_user, user, form): function groupdel_user (line 242) | def groupdel_user(cur_user, user, form): function data_user (line 253) | def data_user(cur_user, user, form): function groupNameList_user (line 262) | def groupNameList_user(cur_user, user, form): function groupList_user (line 271) | def groupList_user(cur_user, user, form): function groupQuery_user (line 280) | def groupQuery_user(cur_user, user, form): function selfQuery_user (line 289) | def selfQuery_user(cur_user, user, form): function get_master_recoverinfo (line 297) | def get_master_recoverinfo(): function get_master_groupinfo (line 307) | def get_master_groupinfo(): function usageRelease_master (line 316) | def usageRelease_master(): function selfModify_user (line 331) | def selfModify_user(cur_user, user, form): function usageQuery_user (line 339) | def usageQuery_user(cur_user, user, form): function usageInc_user (line 347) | def usageInc_user(cur_user, user, form): function usageRelease_user (line 358) | def usageRelease_user(cur_user, user, form): function usageRecover_user (line 368) | def usageRecover_user(cur_user, user, form): function lxcsettingList_user (line 378) | def lxcsettingList_user(cur_user, user, form): function chlxcsetting_user (line 386) | def chlxcsetting_user(cur_user, user, form): function settings_list (line 396) | def settings_list(cur_user, user, form): function settings_update (line 401) | def settings_update(user, beans, form): function list_notifications (line 411) | def list_notifications(cur_user, user, form): function create_notification (line 420) | def create_notification(cur_user, user, form): function modify_notification (line 431) | def modify_notification(cur_user, user, form): function delete_notification (line 442) | def delete_notification(cur_user, user, form): function query_self_notification_simple_infos (line 453) | def query_self_notification_simple_infos(cur_user, user, form): function query_notification (line 462) | def query_notification(cur_user, user, form): function query_self_notifications_infos (line 471) | def query_self_notifications_infos(cur_user, user, form): function report_bug (line 479) | def report_bug(cur_user, user, form): function billing_beans (line 486) | def billing_beans(): function beans_apply (line 526) | def beans_apply(cur_user,user,form,issue): function beans_admin (line 551) | def beans_admin(cur_user,user,form,issue): function internal_server_error (line 580) | def internal_server_error(error): FILE: web/static/dist/js/app.js function _init (line 229) | function _init() { function start (line 657) | function start(box) { function done (line 664) | function done(box) { FILE: web/static/js/plot_monitor.js function processMemData (line 9) | function processMemData(data) function getMemY (line 12) | function getMemY() function processCpuData (line 16) | function processCpuData(data) function getCpuY (line 19) | function getCpuY() function processRate (line 24) | function processRate(data) function getIngressRateP (line 27) | function getIngressRateP() function getEgressRateP (line 32) | function getEgressRateP() function plot_graph (line 37) | function plot_graph(container,url,processData,getY,fetchdata=true, maxy=... function num2human (line 164) | function num2human(data) function processInfo (line 179) | function processInfo() function plot_net (line 278) | function plot_net(host,monitorurl) FILE: web/static/js/plot_monitorReal.js function processMemData (line 10) | function processMemData(data) function getMemY (line 31) | function getMemY() function processCpuData (line 38) | function processCpuData(data) function getCpuY (line 60) | function getCpuY() function processDiskData (line 69) | function processDiskData(data) function getDiskY (line 87) | function getDiskY() function plot_graph (line 92) | function plot_graph(container,url,processData,getY) { function processStatus (line 216) | function processStatus() FILE: web/web.py function home (line 70) | def home(): function login (line 74) | def login(): function external_login_func (line 79) | def external_login_func(): function external_login_callback (line 86) | def external_login_callback(): function logout (line 94) | def logout(): function register (line 101) | def register(): function activate (line 108) | def activate(): function dashboard (line 113) | def dashboard(): function redirect_dochome (line 117) | def redirect_dochome(): function config_view (line 122) | def config_view(): function reportBug (line 127) | def reportBug(): function batch_admin_job (line 133) | def batch_admin_job(): function batch_job (line 138) | def batch_job(): function create_batch_job (line 143) | def create_batch_job(): function add_batch_job (line 148) | def add_batch_job(masterip): function stop_batch_job (line 155) | def stop_batch_job(masterip,jobid): function admin_stop_batch_job (line 162) | def admin_stop_batch_job(masterip,jobid): function info_batch_job (line 169) | def info_batch_job(masterip,jobid): function output_batch_job (line 176) | def output_batch_job(masterip, jobid, taskid, vnodeid, issue): function output_batch_job_request (line 186) | def output_batch_job_request(masterip, jobid, taskid, vnodeid, issue): function addCluster (line 198) | def addCluster(): function listCluster (line 203) | def listCluster(masterip): function createCluster (line 209) | def createCluster(masterip): function scaleout (line 217) | def scaleout(clustername,masterip): function scalein (line 225) | def scalein(clustername,containername,masterip): function startClustet (line 233) | def startClustet(clustername,masterip): function stopClustet (line 240) | def stopClustet(clustername,masterip): function deleteClustet (line 247) | def deleteClustet(clustername,masterip): function detailCluster (line 254) | def detailCluster(clustername,masterip): function flushCluster (line 261) | def flushCluster(clustername,containername): function saveImage (line 268) | def saveImage(clustername,containername,masterip): function saveImage_force (line 279) | def saveImage_force(clustername,containername,masterip): function addPortMapping (line 306) | def addPortMapping(masterip): function delPortMapping (line 312) | def delPortMapping(masterip,clustername,node_name,node_port): function getmasterdesc (line 321) | def getmasterdesc(mastername): function masterdesc (line 326) | def masterdesc(mastername): function image_list (line 333) | def image_list(masterip): function descriptionImage (line 345) | def descriptionImage(image,masterip): function shareImage (line 352) | def shareImage(image,masterip): function unshareImage (line 359) | def unshareImage(image,masterip): function deleteImage (line 366) | def deleteImage(image,masterip): function copyImage (line 373) | def copyImage(image,masterip): function updatebaseImage (line 382) | def updatebaseImage(image,masterip): function hosts (line 389) | def hosts(): function hostMigrate (line 394) | def hostMigrate(hostip, masterip): function hostsRealtime (line 402) | def hostsRealtime(com_ip,masterip): function hostsConAll (line 409) | def hostsConAll(com_ip,masterip): function hostsConRealtime (line 416) | def hostsConRealtime(com_ip,node_name,masterip): function status (line 423) | def status(): function statusRealtime (line 428) | def statusRealtime(vcluster_name,node_name,masterip): function history (line 435) | def history(): function historyVNode (line 441) | def historyVNode(vnode_name,masterip): function monitor_request (line 449) | def monitor_request(comid,infotype,masterip): function monitor_user_request (line 463) | def monitor_user_request(issue,masterip): function beansapplication (line 475) | def beansapplication(): function beansapply (line 480) | def beansapply(): function beansadmin (line 486) | def beansadmin(username,msgid,cmd): function logs (line 503) | def logs(): function logs_get (line 508) | def logs_get(filename): function userlist (line 519) | def userlist(): function userLockRelease (line 524) | def userLockRelease(ulockname): function grouplist (line 534) | def grouplist(): function groupdetail (line 539) | def groupdetail(): function groupquery (line 544) | def groupquery(): function groupmodify (line 549) | def groupmodify(groupname): function userdata (line 554) | def userdata(): function useradd (line 559) | def useradd(): function usermodify (line 564) | def usermodify(): function userchange (line 569) | def userchange(): function quotaadd (line 574) | def quotaadd(): function chdefault (line 579) | def chdefault(): function chlxcsetting (line 584) | def chlxcsetting(): function groupadd (line 589) | def groupadd(): function groupdel (line 594) | def groupdel(groupname): function userinfo (line 600) | def userinfo(): function userselfQuery (line 605) | def userselfQuery(): function userquery (line 611) | def userquery(): function cloud (line 616) | def cloud(): function cloud_setting_modify (line 621) | def cloud_setting_modify(masterip): function cloud_node_add (line 627) | def cloud_node_add(masterip): function notification_list (line 634) | def notification_list(): function create_notification (line 640) | def create_notification(): function modify_notification (line 646) | def modify_notification(): function delete_notification (line 652) | def delete_notification(): function query_self_notifications (line 658) | def query_self_notifications(): function query_notification_detail (line 664) | def query_notification_detail(notify_id): function systemmodify (line 670) | def systemmodify(): function systemclearhistory (line 675) | def systemclearhistory(): function systemadd (line 680) | def systemadd(): function systemdelete (line 685) | def systemdelete(): function systemresetall (line 690) | def systemresetall(): function adminpage (line 695) | def adminpage(): function updatesettings (line 700) | def updatesettings(): function jupyter_control (line 704) | def jupyter_control(): function jupyter_prefix (line 717) | def jupyter_prefix(): function jupyter_home (line 724) | def jupyter_home(): function jupyter_login (line 728) | def jupyter_login(): function jupyter_logout (line 732) | def jupyter_logout(): function jupyter_auth (line 736) | def jupyter_auth(cookie_name, cookie_content): function not_authorized (line 745) | def not_authorized(error): function internal_server_error (line 757) | def internal_server_error(error): FILE: web/webViews/admin.py class adminView (line 7) | class adminView(normalView): method get (line 11) | def get(self): class updatesettingsView (line 22) | class updatesettingsView(normalView): method post (line 25) | def post(self): class groupaddView (line 30) | class groupaddView(normalView): method post (line 32) | def post(self): class systemmodifyView (line 36) | class systemmodifyView(normalView): method post (line 38) | def post(self): class systemclearView (line 42) | class systemclearView(normalView): method post (line 44) | def post(self): class systemaddView (line 48) | class systemaddView(normalView): method post (line 50) | def post(self): class systemdeleteView (line 54) | class systemdeleteView(normalView): method post (line 56) | def post(self): class systemresetallView (line 60) | class systemresetallView(normalView): method post (line 62) | def post(self): class quotaaddView (line 66) | class quotaaddView(normalView): method post (line 68) | def post(self): class chdefaultView (line 72) | class chdefaultView(normalView): method post (line 74) | def post(self): class chlxcsettingView (line 78) | class chlxcsettingView(normalView): method post (line 80) | def post(self): class groupdelView (line 84) | class groupdelView(normalView): method post (line 86) | def post(self): method get (line 94) | def get(self): class chparmView (line 97) | class chparmView(normalView): method post (line 99) | def post(self): class historydelView (line 102) | class historydelView(normalView): method post (line 104) | def post(self): class updatebaseImageView (line 108) | class updatebaseImageView(normalView): method get (line 110) | def get(self): class hostMigrateView (line 117) | class hostMigrateView(normalView): method post (line 119) | def post(self): FILE: web/webViews/authenticate/auth.py function login_required (line 5) | def login_required(func): function administration_required (line 21) | def administration_required(func): function activated_required (line 32) | def activated_required(func): function is_authenticated (line 43) | def is_authenticated(): function is_admin (line 48) | def is_admin(): function is_activated (line 55) | def is_activated(): FILE: web/webViews/authenticate/login.py function refreshInfo (line 22) | def refreshInfo(): class loginView (line 36) | class loginView(normalView): method get (line 40) | def get(self): method post (line 53) | def post(self): class logoutView (line 84) | class logoutView(normalView): method get (line 87) | def get(self): class external_login_callbackView (line 100) | class external_login_callbackView(normalView): method get (line 102) | def get(self): method post (line 125) | def post(self): class external_loginView (line 147) | class external_loginView(normalView): method post (line 152) | def post(self): method get (line 156) | def get(self): FILE: web/webViews/authenticate/register.py class registerView (line 5) | class registerView(normalView): method post (line 9) | def post(self): method get (line 17) | def get(self): FILE: web/webViews/batch.py class batchAdminListView (line 9) | class batchAdminListView(normalView): method get (line 13) | def get(self): class batchJobListView (line 26) | class batchJobListView(normalView): method get (line 30) | def get(self): class createBatchJobView (line 43) | class createBatchJobView(normalView): method get (line 47) | def get(self): class infoBatchJobView (line 74) | class infoBatchJobView(normalView): method get (line 81) | def get(self): class addBatchJobView (line 94) | class addBatchJobView(normalView): method post (line 99) | def post(self): class stopBatchJobView (line 107) | class stopBatchJobView(normalView): method get (line 112) | def get(self): class adminStopBatchJobView (line 121) | class adminStopBatchJobView(normalView): method get (line 126) | def get(self): class outputBatchJobView (line 135) | class outputBatchJobView(normalView): method get (line 144) | def get(self): FILE: web/webViews/beansapplication.py class beansapplicationView (line 6) | class beansapplicationView(normalView): method get (line 10) | def get(self): method post (line 15) | def post(self): class beansapplyView (line 18) | class beansapplyView(normalView): method post (line 22) | def post(self): method get (line 32) | def get(self): class beansadminView (line 35) | class beansadminView(normalView): method get (line 42) | def get(self): FILE: web/webViews/checkname.py function checkname (line 9) | def checkname(str): FILE: web/webViews/cloud.py class cloudView (line 7) | class cloudView(normalView): method post (line 11) | def post(self): method get (line 16) | def get(self): class cloudSettingModifyView (line 19) | class cloudSettingModifyView(normalView): method post (line 21) | def post(self): class cloudNodeAddView (line 25) | class cloudNodeAddView(normalView): method post (line 27) | def post(self): method get (line 33) | def get(self): FILE: web/webViews/cluster.py class addClusterView (line 8) | class addClusterView(normalView): method get (line 12) | def get(self): class createClusterView (line 54) | class createClusterView(normalView): method post (line 59) | def post(self): class descriptionMasterView (line 77) | class descriptionMasterView(normalView): method get (line 81) | def get(self): class descriptionImageView (line 84) | class descriptionImageView(normalView): method get (line 88) | def get(self): class scaleoutView (line 104) | class scaleoutView(normalView): method post (line 108) | def post(self): class scaleinView (line 124) | class scaleinView(normalView): method get (line 128) | def get(self): class listClusterView (line 140) | class listClusterView(normalView): method get (line 144) | def get(self): class startClusterView (line 153) | class startClusterView(normalView): method get (line 158) | def get(self): class stopClusterView (line 170) | class stopClusterView(normalView): method get (line 175) | def get(self): class flushClusterView (line 186) | class flushClusterView(normalView): method get (line 191) | def get(self): class deleteClusterView (line 206) | class deleteClusterView(normalView): method get (line 211) | def get(self): class detailClusterView (line 222) | class detailClusterView(normalView): method get (line 226) | def get(self): class saveImageView (line 240) | class saveImageView(normalView): method post (line 246) | def post(self): class shareImageView (line 271) | class shareImageView(normalView): method get (line 275) | def get(self): class unshareImageView (line 286) | class unshareImageView(normalView): method get (line 290) | def get(self): class copyImageView (line 301) | class copyImageView(normalView): method post (line 305) | def post(self): class deleteImageView (line 320) | class deleteImageView(normalView): method get (line 324) | def get(self): class addproxyView (line 335) | class addproxyView(normalView): method post (line 338) | def post(self): class deleteproxyView (line 351) | class deleteproxyView(normalView): method get (line 354) | def get(self): method post (line 366) | def post(self): class configView (line 369) | class configView(normalView): method get (line 371) | def get(self): method post (line 424) | def post(self): class addPortMappingView (line 427) | class addPortMappingView(normalView): method post (line 431) | def post(self): method get (line 441) | def get(self): class delPortMappingView (line 444) | class delPortMappingView(normalView): method post (line 448) | def post(self): method get (line 458) | def get(self): FILE: web/webViews/cookie_tool.py function generate_cookie (line 22) | def generate_cookie(name, securekey): function parse_cookie (line 33) | def parse_cookie(cookie, securekey): FILE: web/webViews/dashboard.py class dashboardView (line 6) | class dashboardView(normalView): method get (line 10) | def get(self): method post (line 37) | def post(self): FILE: web/webViews/dockletrequest.py function getip (line 18) | def getip(masterip): function getname (line 21) | def getname(masterip): class dockletRequest (line 25) | class dockletRequest(): method post (line 28) | def post(self, url = '/', data = {}, endpoint = "http://0.0.0.0:9000"): method getdesc (line 66) | def getdesc(self,mastername): method getalldesc (line 70) | def getalldesc(self): method post_to_all (line 79) | def post_to_all(self, url = '/', data={}): method unauthorizedpost (line 109) | def unauthorizedpost(self, url = '/', data = None): FILE: web/webViews/log.py function initlogging (line 20) | def initlogging(name='docklet'): class RedirectLogger (line 62) | class RedirectLogger(object): method __init__ (line 63) | def __init__(self, logger, level): method write (line 68) | def write(self, message): method flush (line 73) | def flush(self): FILE: web/webViews/monitor.py class statusView (line 6) | class statusView(normalView): method get (line 10) | def get(self): class statusRealtimeView (line 50) | class statusRealtimeView(normalView): method get (line 55) | def get(self): class historyView (line 64) | class historyView(normalView): method get (line 68) | def get(self): class historyVNodeView (line 78) | class historyVNodeView(normalView): method get (line 83) | def get(self): class hostsRealtimeView (line 92) | class hostsRealtimeView(normalView): method get (line 97) | def get(self): class hostsConAllView (line 111) | class hostsConAllView(normalView): method get (line 116) | def get(self): class hostsView (line 133) | class hostsView(normalView): method get (line 137) | def get(self): class monitorUserAllView (line 156) | class monitorUserAllView(normalView): method get (line 160) | def get(self): FILE: web/webViews/notification/notification.py class NotificationView (line 8) | class NotificationView(normalView): method get (line 12) | def get(cls): class CreateNotificationView (line 19) | class CreateNotificationView(normalView): method get (line 23) | def get(cls): method post (line 28) | def post(cls): class QuerySelfNotificationsView (line 34) | class QuerySelfNotificationsView(normalView): method post (line 36) | def post(cls): class QueryNotificationView (line 41) | class QueryNotificationView(normalView): method get_by_id (line 45) | def get_by_id(cls, notify_id): class ModifyNotificationView (line 54) | class ModifyNotificationView(normalView): method post (line 56) | def post(cls): class DeleteNotificationView (line 61) | class DeleteNotificationView(normalView): method post (line 63) | def post(cls): FILE: web/webViews/reportbug.py class reportBugView (line 6) | class reportBugView(normalView): method get (line 10) | def get(self): method post (line 15) | def post(self): FILE: web/webViews/syslogs.py class logsView (line 5) | class logsView(normalView): method get (line 9) | def get(self): FILE: web/webViews/user/grouplist.py class grouplistView (line 6) | class grouplistView(normalView): class groupdetailView (line 9) | class groupdetailView(normalView): method post (line 11) | def post(self): class groupqueryView (line 14) | class groupqueryView(normalView): method post (line 16) | def post(self): class groupmodifyView (line 19) | class groupmodifyView(normalView): method post (line 21) | def post(self): FILE: web/webViews/user/userActivate.py class userActivateView (line 6) | class userActivateView(normalView): method get (line 10) | def get(self): method post (line 18) | def post(self): FILE: web/webViews/user/userinfo.py class userinfoView (line 7) | class userinfoView(normalView): method get (line 11) | def get(self): method post (line 17) | def post(self): FILE: web/webViews/user/userlist.py class userlistView (line 6) | class userlistView(normalView): method get (line 10) | def get(self): method post (line 16) | def post(self): class useraddView (line 20) | class useraddView(normalView): method post (line 22) | def post(self): class userdataView (line 26) | class userdataView(normalView): method get (line 28) | def get(self): method post (line 32) | def post(self): class userqueryView (line 35) | class userqueryView(normalView): method get (line 37) | def get(self): method post (line 41) | def post(self): class usermodifyView (line 44) | class usermodifyView(normalView): method post (line 46) | def post(self): FILE: web/webViews/view.py class normalView (line 11) | class normalView(): method get (line 15) | def get(self): method post (line 19) | def post(self): method error (line 23) | def error(self): method as_view (line 27) | def as_view(self): method render (line 36) | def render(self, *args, **kwargs):