Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad Str body Return NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str If NameLoad body For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareEq Str NameLoad body If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Return NameLoad If CompareEq Str NameLoad body If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Return NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareIn Str NameLoad body Return NameLoad If CompareIn Str NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Num Break Return NameLoad decorator_list NameLoad decorator_list
N/A N/A 
Systemd module
 subprocess CalledProcessError ovs.log.logHandler LogHandler N/A logger N/A N/A LogHandler get extensions name servicemanager Systemd N/A object N/A N/A 
    Contains all logic related to Systemd services
     _service_exists N/A N/A name client path N/A N/A N/A N/A path None N/A N/A path /lib/systemd/system/ N/A file_to_check N/A N/A {0}{1}.service format path name N/A N/A N/A client file_exists file_to_check N/A staticmethod _get_name N/A N/A name client path N/A None N/A N/A 
        Make sure that for e.g. 'ovs-workers' the given service name can be either 'ovs-workers' as just 'workers'
         N/A N/A N/A Systemd _service_exists name client path N/A N/A name N/A N/A N/A Systemd _service_exists name client /lib/systemd/system/ N/A N/A name N/A name N/A N/A ovs-{0} format name N/A N/A N/A Systemd _service_exists name client path N/A N/A name N/A N/A N/A logger info N/A N/A Service {0} could not be found. format name N/A N/A ValueError N/A N/A Service {0} could not be found. format name N/A staticmethod add_service N/A N/A name client params target_name additional_dependencies N/A None None None N/A N/A N/A params None N/A N/A params N/A N/A name N/A N/A Systemd _get_name name client /opt/OpenvStorage/config/templates/systemd/ N/A template_service /opt/OpenvStorage/config/templates/systemd/{0}.service N/A N/A N/A N/A client file_exists N/A N/A template_service format name N/A N/A N/A template_file N/A N/A client file_read N/A N/A template_service format name N/A N/A key value N/A N/A params iteritems N/A N/A template_file N/A N/A template_file replace N/A N/A <{0}> format key value N/A N/A <SERVICE_NAME> template_file N/A N/A service_name N/A N/A target_name None name target_name N/A template_file N/A N/A template_file replace <SERVICE_NAME> N/A N/A service_name lstrip ovs- N/A template_file N/A N/A template_file replace <_SERVICE_SUFFIX_> N/A dependencies N/A additional_dependencies N/A N/A service additional_dependencies N/A N/A dependencies N/A N/A {0}.service  format service N/A template_file N/A N/A template_file replace <ADDITIONAL_DEPENDENCIES> dependencies N/A N/A target_name None N/A N/A N/A N/A client file_write N/A N/A /lib/systemd/system/{0}.service format name template_file N/A N/A N/A N/A client file_write N/A N/A /lib/systemd/system/{0}.service format target_name template_file N/A name target_name N/A N/A N/A N/A N/A client run systemctl daemon-reload N/A N/A N/A client run N/A N/A systemctl enable {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Add {0}.service failed, {1} format name output N/A N/A Exception N/A N/A Add {0}.service failed, {1} format name output N/A staticmethod get_service_status N/A N/A name client return_output N/A False N/A N/A name N/A N/A Systemd _get_name name client N/A output N/A N/A client run N/A N/A systemctl is-active {0} || true format name N/A N/A active output N/A N/A N/A return_output True N/A N/A N/A True output N/A True N/A N/A inactive output N/A N/A N/A return_output True N/A N/A N/A False output N/A False N/A N/A return_output True N/A N/A N/A False output N/A False N/A staticmethod remove_service N/A N/A name client N/A N/A N/A name N/A N/A Systemd _get_name name client N/A N/A N/A client file_delete N/A N/A /lib/systemd/system/{0}.service format name N/A N/A N/A client run systemctl daemon-reload N/A staticmethod disable_service N/A N/A name client N/A N/A N/A name N/A N/A Systemd _get_name name client N/A N/A N/A N/A N/A client run N/A N/A systemctl disable {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Disable {0} failed, {1} format name output N/A N/A Exception N/A N/A Disable {0} failed, {1} format name output N/A staticmethod enable_service N/A N/A name client N/A N/A N/A name N/A N/A Systemd _get_name name client N/A N/A N/A N/A N/A client run N/A N/A systemctl enable {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Enable {0} failed, {1} format name output N/A N/A Exception N/A N/A Enable {0} failed, {1} format name output N/A staticmethod start_service N/A N/A name client N/A N/A N/A N/A status output N/A N/A Systemd get_service_status name client True N/A N/A status True N/A N/A output N/A N/A N/A name N/A N/A Systemd _get_name name client N/A output N/A N/A client run N/A N/A systemctl start {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Start {0} failed, {1} format name output N/A output N/A staticmethod stop_service N/A N/A name client N/A N/A N/A N/A status output N/A N/A Systemd get_service_status name client True N/A N/A status False N/A N/A output N/A N/A N/A name N/A N/A Systemd _get_name name client N/A output N/A N/A client run N/A N/A systemctl stop {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Stop {0} failed, {1} format name output N/A output N/A staticmethod restart_service N/A N/A name client N/A N/A N/A N/A N/A name N/A N/A Systemd _get_name name client N/A output N/A N/A client run N/A N/A systemctl restart {0}.service format name N/A N/A N/A CalledProcessError N/A cpe N/A N/A output N/A cpe output N/A N/A N/A logger error N/A N/A Restart {0} failed, {1} format name output N/A output N/A staticmethod has_service N/A N/A name client N/A N/A N/A N/A N/A N/A N/A Systemd _get_name name client N/A True N/A N/A N/A ValueError N/A N/A False N/A staticmethod is_enabled N/A N/A name client N/A N/A N/A name N/A N/A Systemd _get_name name client N/A output N/A N/A client run N/A N/A systemctl is-enabled {0} || true format name N/A N/A enabled output N/A N/A True N/A N/A disabled output N/A N/A False N/A False N/A staticmethod get_service_pid N/A N/A name client N/A N/A N/A pid 0 N/A name N/A N/A Systemd _get_name name client N/A N/A N/A Systemd get_service_status name client N/A N/A output N/A N/A client run N/A N/A systemctl status {0} || true format name N/A output N/A N/A output N/A N/A output splitlines N/A line output N/A N/A N/A Main PID line N/A N/A pid N/A N/A N/A line split N/A 3 N/A N/A N/A N/A pid isdigit N/A N/A pid 0 N/A N/A pid N/A staticmethod N/A