Exemple #1
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, NTP_CONF_FILE_NAME)
     self.ntp_server_conf_schema = NTP_SERVER_CONF_SCHEMA
     self.ntp_restrict_conf_schema = NTP_RESTRICT_CONF_SCHEMA
     self.ntp_conf_schema = NTP_CONF_SCHEMA
Exemple #2
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, NFS_CONF_FILE_NAME)
     self.client_conf_schema = EXPORT_CLIENT_CONF_SCHEMA
     self.export_point_conf_schema = EXPORT_POINT_CONF_SCHEMA
     self.nfs_conf_schema = NFS_CONF_SCHEMA
Exemple #3
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, TGT_CONF_FILE_NAME)
     self.lun_conf_schema = LUN_CONF_SCHEMA
     self.target_conf_schema = TARGET_CONF_SCHEMA
     self.tgt_conf_schema = TGT_CONF_SCHEMA
Exemple #4
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR,
                                   SMARTD_CONF_FILE_NAME)
     self.smartd_conf_schema = SMARTD_FCONF_SCHEMA
     self.smartd_monitor_conf_schema = MONITOR_CONF_SCHEMA
Exemple #5
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, TGT_CONF_FILE_NAME)
     self.lun_conf_schema = LUN_CONF_SCHEMA
     self.target_conf_schema = TARGET_CONF_SCHEMA
     self.tgt_conf_schema = TGT_CONF_SCHEMA
Exemple #6
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, SNMP_CONF_FILE_NAME)
     self.monitor_conf_schema = SNMP_MONITOR_CONF_SCHEMA
     self.sink_conf_schema = SNMP_SINK_CONF_SCHEMA
     self.community_conf_schema = SNMP_COMMUNITY_CONF_SCHEMA
     self.snmp_conf_schema = SNMP_CONF_SCHEMA
Exemple #7
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, SNMP_CONF_FILE_NAME)
     self.monitor_conf_schema = SNMP_MONITOR_CONF_SCHEMA
     self.sink_conf_schema = SNMP_SINK_CONF_SCHEMA
     self.community_conf_schema = SNMP_COMMUNITY_CONF_SCHEMA
     self.snmp_conf_schema = SNMP_CONF_SCHEMA
Exemple #8
0
 def __init__(self, node_id, parent_id, node_type, text, uri, require_js):
     if not isinstance(text, TranslationString):
         raise StorLeverError("text must be a instance of TranslationString", 400)
     self.node_id = str(node_id)
     self.parent_id = str(parent_id)
     self.node_type = str(node_type)
     self.text = text
     self.uri = str(uri)
     self.require_js = require_js
     self._sub_nodes = []
     self._lock = lock()   # protect the _sub_nodes property update
Exemple #9
0
    def __init__(self):
        # need a mutex to protect create/delete bond interface
        self.lock = lock()
        self.support_fs_type = {}
        self.conf_file = os.path.join(STORLEVER_CONF_DIR, FS_CONF_FILE_NAME)
        self.fs_conf_schema = Schema({
            "type": Use(str),     # filesystem type
            "dev_file":  Use(str),     # dev file
            "dev_uuid": Use(str),      # dev uuid
            "mount_point": Use(str),  # mount point of this fs,
            "mount_option": Use(str),  # mount option of this fs
            "check_onboot": BoolVal(),  # fsck fs on boot
            Optional("comment"): Default(Use(str), default=""),  # comment,
            AutoDel(str): object  # for all other key we auto delete
        })
        self.fs_dict_schema = Schema({
            DoNotCare(str): self.fs_conf_schema
        })

        # sync fs conf to fstab on boot
        self.sync_to_fstab()
Exemple #10
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, MAIL_CONF_FILE_NAME)
     self.mail_conf_schema = MAIL_CONF_SCHEMA
Exemple #11
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.nodes = {}
     self.root_list = []
Exemple #12
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
Exemple #13
0
 def __init__(self):
     self.lock = lock()
Exemple #14
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, FTP_CONF_FILE_NAME)
     self.ftp_user_conf_schema = FTP_USER_CONF_SCHEMA
     self.ftp_conf_schema = FTP_CONF_SCHEMA
Exemple #15
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, MAIL_CONF_FILE_NAME)
     self.mail_conf_schema = MAIL_CONF_SCHEMA
Exemple #16
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
Exemple #17
0
 def __init__(self):
     # need a mutex to protect name servers config
     self.lock = lock()
Exemple #18
0
 def __init__(self):
     # need a mutex to protect name servers config
     self.lock = lock()
Exemple #19
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, SMB_CONF_FILE_NAME)
     self.share_conf_schema = SHARE_CONF_SCHEMA
     self.smb_conf_schema = SMB_CONF_SCHEMA
Exemple #20
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, SMARTD_CONF_FILE_NAME)
     self.smartd_conf_schema = SMARTD_FCONF_SCHEMA
     self.smartd_monitor_conf_schema = MONITOR_CONF_SCHEMA
Exemple #21
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR, ZABBIX_AGENT_CONF_FILE_NAME)
     self.zabbix_agentd_conf_schema = ZABBIX_AGENT_CONF_SCHEMA
Exemple #22
0
 def __init__(self):
     self.lock = lock()
Exemple #23
0
 def __init__(self):
     # need a mutex to protect create/delete bond interface
     self.lock = lock()
     self.conf_file = os.path.join(STORLEVER_CONF_DIR,
                                   ZABBIX_AGENT_CONF_FILE_NAME)
     self.zabbix_agentd_conf_schema = ZABBIX_AGENT_CONF_SCHEMA