Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num If BoolOpOr CompareIn Str NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Str Num CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Str CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse If CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num For NameStore NameLoad body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num If CompareNotEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Break Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareNotEq BinOpBitAnd Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Break Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Num Str body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A Health Check module for DHCP service. N/A commands N/A os N/A re N/A socket N/A xmlrpclib compass.actions.health_check base DhcpCheck N/A N/A base BaseCheck N/A N/A dhcp health check class. N/A NAME DHCP Check run N/A N/A self N/A N/A N/A do health check. N/A method_name N/A N/A self.check_ N/A N/A self os_installer N/A name _dhcp() N/A N/A eval method_name N/A check_cobbler_dhcp N/A N/A self N/A N/A N/A Checks if Cobbler has taken over DHCP service. N/A N/A N/A remote N/A N/A xmlrpclib Server N/A N/A self os_installer N/A cobbler_url allow_none True N/A credentials N/A N/A self os_installer N/A credentials N/A N/A N/A remote login N/A credentials N/A username N/A credentials N/A password N/A N/A N/A Exception N/A N/A N/A N/A self _set_status 0 N/A [%s]Error: Cannot login to Cobbler with the tokens provided in the config file N/A self NAME N/A N/A N/A self code N/A self messages N/A cobbler_settings N/A N/A remote get_settings N/A N/A N/A cobbler_settings N/A manage_dhcp 0 N/A N/A N/A N/A N/A self messages append N/A [%s]Info: DHCP service is not managed by Compass N/A self NAME N/A N/A self code 0 N/A N/A N/A self code N/A self messages N/A N/A N/A self check_cobbler_dhcp_template N/A [Done] N/A N/A N/A self check_dhcp_service N/A N/A N/A self check_dhcp_netmask N/A [Done] N/A N/A N/A self code 1 N/A N/A N/A N/A N/A self messages append N/A [%s]Info: DHCP health check has completed. No problems found, all systems go. N/A self NAME N/A N/A N/A self code N/A self messages N/A check_cobbler_dhcp_template N/A N/A self N/A N/A N/A Validates Cobbler's DHCP template file. N/A Checking DHCP template...... N/A N/A N/A N/A os path exists /etc/cobbler/dhcp.template N/A N/A var_map N/A match_next_server match_subnet match_filename match_range False False False False N/A ip_regex N/A N/A re compile ^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$ N/A dhcp_template N/A open /etc/cobbler/dhcp.template N/A line N/A N/A dhcp_template readlines N/A N/A N/A N/A N/A line find next_server -1 N/A N/A elmlist N/A N/A line split N/A elm elmlist N/A N/A N/A ; elm N/A N/A elm N/A elm N/A -2 N/A N/A N/A $next_server elm N/A N/A ip_regex match elm N/A N/A N/A var_map N/A match_next_server True N/A N/A N/A N/A N/A N/A line find subnet -1 N/A N/A N/A line find { -1 N/A N/A elmlist N/A N/A line split N/A elm elmlist N/A N/A N/A N/A ip_regex match elm N/A N/A N/A N/A N/A elm N/A -1 0 N/A 255 elm N/A N/A N/A var_map N/A match_subnet True N/A N/A N/A N/A elm N/A -1 0 N/A N/A N/A N/A N/A self messages append N/A [%s]Error: Subnet should be set in the form of 192.168.0.0 in/etc/cobbler/dhcp.template N/A self NAME N/A N/A N/A N/A N/A line find filename -1 N/A N/A N/A var_map N/A match_filename True N/A N/A N/A N/A N/A line find range dynamic-bootp -1 N/A N/A elmlist N/A N/A line split N/A ip_count 0 N/A elm elmlist N/A N/A N/A N/A ; elm N/A elm N/A N/A elm N/A elm N/A -2 N/A N/A N/A ip_regex match elm N/A N/A ip_count 1 N/A N/A ip_count 2 N/A N/A N/A N/A N/A self messages append N/A [%s]Error: DHCP range should be set between two IP addresses in /etc/cobbler/dhcp.template N/A self NAME N/A N/A N/A var_map N/A match_range True N/A N/A N/A dhcp_template close N/A fails N/A N/A var N/A N/A var_map keys N/A N/A N/A N/A var_map N/A var False N/A N/A N/A N/A fails append var N/A N/A N/A len fails 0 N/A N/A N/A N/A self _set_status 0 N/A [%s]Info: DHCP template file failed components: %s N/A N/A self NAME N/A N/A join N/A failed N/A failed fails N/A N/A N/A N/A self _set_status 0 N/A [%s]Error: DHCP template file doesn't exist, health check failed. N/A self NAME N/A True N/A check_dhcp_netmask N/A N/A self N/A N/A N/A N/A open /etc/dhcp/dhcpd.conf conf_reader N/A N/A lines N/A N/A conf_reader readlines N/A line lines N/A N/A N/A N/A re search ^subnet line N/A N/A elm_list N/A N/A line split N/A N/A subnet_ip N/A elm_list N/A 1 N/A netmask N/A elm_list N/A -2 N/A subnet_ip_elm N/A N/A subnet_ip split . N/A netmask_elm N/A N/A netmask split . N/A N/A index digit N/A enumerate subnet_ip_elm N/A N/A N/A N/A N/A int digit N/A int N/A netmask_elm N/A index N/A int digit N/A N/A N/A N/A self _set_status 0 N/A [%s]Info: DHCP subnet IP and netmask do not match N/A self NAME N/A N/A True N/A check_dhcp_service N/A N/A self N/A N/A N/A Checks if DHCP is running on port 67. N/A Checking DHCP service...... N/A N/A N/A N/A commands getoutput pgrep dhcp N/A N/A N/A N/A self _set_status 0 N/A [%s]Error: dhcp service does not seem to be running N/A self NAME N/A N/A N/A N/A socket getservbyport 67 bootps N/A N/A N/A N/A self _set_status 0 N/A [%s]Error: bootps is not listening on port 67 N/A self NAME N/A True N/A N/A