Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias identifier FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword NameLoad keyword Num handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body Expr Call NameLoad Call NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad BoolOpOr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad Str Expr Call NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareNotEq SubscriptLoad NameLoad Index Str Str body Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign ListStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad NameLoad orelse For NameStore NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareNotEq SubscriptLoad NameLoad Index Str Str body Assign NameStore NameLoad Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body With Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad
N/A N/A argparse maas_common get_auth_ref maas_common get_keystone_client maas_common metric_bool maas_common print_output maas_common status_err maas_common status_ok N/A requests requests exceptions exc check N/A N/A auth_ref args N/A N/A N/A keystone N/A get_keystone_client auth_ref N/A auth_token N/A keystone auth_token N/A VOLUME_ENDPOINT N/A N/A http://{hostname}:8776/v1/{tenant} format hostname N/A args hostname tenant N/A keystone tenant_id N/A s N/A N/A requests Session N/A N/A N/A N/A s headers update N/A Content-type x-auth-token application/json auth_token N/A N/A N/A r N/A N/A s get N/A %s/os-services VOLUME_ENDPOINT verify False timeout 10 N/A N/A N/A N/A N/A exc ConnectionError N/A exc HTTPError N/A exc Timeout N/A e N/A N/A N/A status_err N/A str e N/A N/A N/A r ok N/A N/A N/A status_err Could not get response from Cinder API N/A services N/A N/A N/A r json N/A services N/A N/A args host N/A N/A backend N/A N/A join N/A N/A args host @ N/A services N/A service N/A service services N/A N/A N/A N/A service N/A host startswith backend N/A N/A service N/A host N/A args host N/A N/A N/A len services 0 N/A N/A N/A status_err No host(s) found in the service list N/A N/A status_ok N/A N/A args host N/A N/A all_services_are_up True N/A service services N/A N/A service_is_up True N/A N/A N/A N/A service N/A status enabled N/A N/A service N/A state up N/A N/A service_is_up False N/A all_services_are_up False N/A N/A @ N/A service N/A host N/A N/A N/A host backend N/A N/A N/A service N/A host split @ N/A name N/A %s-%s_status N/A N/A service N/A binary backend N/A N/A metric_bool name service_is_up N/A name N/A %s_status N/A service N/A binary N/A N/A metric_bool name all_services_are_up N/A N/A service services N/A N/A service_is_up True N/A N/A N/A N/A service N/A status enabled N/A N/A service N/A state up N/A N/A service_is_up False N/A name N/A %s_on_host_%s N/A N/A service N/A binary N/A service N/A host N/A N/A metric_bool name service_is_up N/A main N/A N/A args N/A N/A N/A auth_ref N/A get_auth_ref N/A N/A check auth_ref args N/A N/A N/A __name__ __main__ N/A N/A N/A print_output N/A N/A parser N/A N/A argparse ArgumentParser description Check Cinder API against local or remote address N/A N/A N/A parser add_argument hostname type str help Cinder API hostname or IP address N/A N/A N/A parser add_argument --host type str help Only return metrics for the specified host N/A args N/A N/A parser parse_args N/A N/A main args