Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assert Call AttributeLoad NameLoad attr Str Str Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assert CompareIs AttributeLoad NameLoad attr NameLoad Str TryExcept body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr UnaryOpNot Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults vararg kwarg body Pass decorator_list NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad BinOpMod Str NameLoad NameLoad ListLoad NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Continue While NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield TupleLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq NameLoad Num body Break If CompareEq NameLoad Num body Break Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Str Assert Call AttributeLoad NameLoad attr GeneratorExp BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad orelse Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Num TryFinally body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Str Expr Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr GeneratorExp BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad BoolOpAnd AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list
N/A N/A HTTP client module.

 N/A logging N/A pycurl N/A threading cStringIO StringIO ganeti http ganeti compat ganeti netutils ganeti locking HttpClientRequest N/A object N/A __init__ N/A N/A self host port method path headers post_data read_timeout curl_config_fn nicename completion_cb N/A None None None None None None N/A N/A Describes an HTTP request.

    @type host: string
    @param host: Hostname
    @type port: int
    @param port: Port
    @type method: string
    @param method: Method name
    @type path: string
    @param path: Request path
    @type headers: list or None
    @param headers: Additional headers to send, list of strings
    @type post_data: string or None
    @param post_data: Additional data to send
    @type read_timeout: int
    @param read_timeout: if passed, it will be used as the read
        timeout while reading the response from the server
    @type curl_config_fn: callable
    @param curl_config_fn: Function to configure cURL object before request
    @type nicename: string
    @param nicename: Name, presentable to a user, to describe this request (no
                     whitespace)
    @type completion_cb: callable accepting this request object as a single
                         parameter
    @param completion_cb: Callback for request completion

     N/A N/A N/A path startswith / Path must start with slash (/) N/A N/A N/A curl_config_fn None N/A callable curl_config_fn N/A N/A N/A completion_cb None N/A callable completion_cb N/A N/A self host host N/A N/A self port port N/A N/A self method method N/A N/A self path path N/A N/A self read_timeout read_timeout N/A N/A self curl_config_fn curl_config_fn N/A N/A self nicename nicename N/A N/A self completion_cb completion_cb N/A N/A post_data None N/A N/A N/A self post_data N/A N/A N/A self post_data post_data N/A N/A headers None N/A N/A N/A self headers N/A N/A N/A N/A isinstance headers dict N/A N/A N/A self headers N/A N/A %s: %s N/A name value N/A N/A name value N/A N/A headers items N/A N/A N/A self headers headers N/A N/A self success None N/A N/A self error None N/A N/A self resp_status_code None N/A N/A self resp_body None N/A __repr__ N/A N/A self N/A N/A N/A status N/A N/A %s.%s N/A N/A N/A self __class__ __module__ N/A N/A self __class__ __name__ N/A %s:%s N/A N/A self host N/A self port N/A self method N/A self path N/A N/A <%s at %#x> N/A N/A N/A join status N/A id self N/A url N/A N/A self N/A N/A N/A Returns the full URL for this requests.

     N/A N/A N/A N/A netutils IPAddress IsValid N/A self host N/A N/A address N/A N/A netutils FormatAddress N/A N/A self host N/A self port N/A N/A address N/A %s:%s N/A N/A self host N/A self port N/A N/A https://%s%s N/A address N/A self path N/A property N/A _StartRequest N/A N/A curl req N/A N/A N/A Starts a request on a cURL object.

  @type curl: pycurl.Curl
  @param curl: cURL object
  @type req: L{HttpClientRequest}
  @param req: HTTP request

   N/A N/A N/A logging debug Starting request %r req N/A url N/A req url N/A method N/A req method N/A post_data N/A req post_data N/A headers N/A req headers N/A N/A isinstance method str N/A N/A isinstance url str N/A N/A isinstance post_data str N/A N/A N/A compat all N/A N/A isinstance i str N/A i headers N/A resp_buffer N/A StringIO N/A N/A N/A curl setopt N/A pycurl VERBOSE False N/A N/A N/A curl setopt N/A pycurl NOSIGNAL True N/A N/A N/A curl setopt N/A pycurl USERAGENT N/A http HTTP_GANETI_VERSION N/A N/A N/A curl setopt N/A pycurl PROXY N/A N/A N/A curl setopt N/A pycurl CUSTOMREQUEST N/A str method N/A N/A N/A curl setopt N/A pycurl URL url N/A N/A N/A curl setopt N/A pycurl POSTFIELDS post_data N/A N/A N/A curl setopt N/A pycurl HTTPHEADER headers N/A N/A N/A req read_timeout None N/A N/A N/A N/A curl setopt N/A pycurl TIMEOUT 0 N/A N/A N/A N/A curl setopt N/A pycurl TIMEOUT N/A int N/A req read_timeout N/A N/A hasattr pycurl SSL_SESSIONID_CACHE N/A N/A N/A N/A curl setopt N/A pycurl SSL_SESSIONID_CACHE False N/A N/A N/A curl setopt N/A pycurl WRITEFUNCTION N/A resp_buffer write N/A N/A req curl_config_fn N/A N/A N/A N/A req curl_config_fn curl N/A N/A _PendingRequest curl req N/A resp_buffer getvalue N/A _PendingRequest N/A object N/A __init__ N/A N/A self curl req resp_buffer_read N/A N/A N/A Initializes this class.

    @type curl: pycurl.Curl
    @param curl: cURL object
    @type req: L{HttpClientRequest}
    @param req: HTTP request
    @type resp_buffer_read: callable
    @param resp_buffer_read: Function to read response body

     N/A N/A N/A req success None N/A N/A self _curl curl N/A N/A self _req req N/A N/A self _resp_buffer_read resp_buffer_read N/A GetCurlHandle N/A N/A self N/A N/A N/A Returns the cURL object.

     N/A N/A self _curl N/A GetCurrentRequest N/A N/A self N/A N/A N/A Returns the current request.

     N/A N/A self _req N/A Done N/A N/A self errmsg N/A N/A N/A Finishes a request.

    @type errmsg: string or None
    @param errmsg: Error message if request failed

     N/A curl N/A self _curl N/A req N/A self _req N/A N/A N/A req success None Request has already been finalized N/A N/A N/A from_str N/A from %s:%s  N/A N/A N/A curl getinfo N/A pycurl LOCAL_IP N/A N/A curl getinfo N/A pycurl LOCAL_PORT N/A N/A N/A AttributeError N/A N/A from_str N/A N/A N/A logging debug Request %s%s finished, errmsg=%s from_str req errmsg N/A N/A req success N/A N/A bool errmsg N/A N/A req error errmsg N/A N/A req resp_status_code N/A N/A curl getinfo N/A pycurl RESPONSE_CODE N/A N/A req resp_body N/A N/A self _resp_buffer_read N/A N/A N/A curl setopt N/A pycurl POSTFIELDS N/A N/A N/A curl setopt N/A pycurl WRITEFUNCTION N/A N/A N/A _ N/A None N/A N/A req completion_cb N/A N/A N/A N/A req completion_cb req N/A N/A _NoOpRequestMonitor N/A object N/A N/A No-op request monitor.

   acquire N/A N/A N/A args kwargs N/A N/A N/A staticmethod N/A release acquire N/A Disable acquire N/A _PendingRequestMonitor N/A object N/A N/A _LOCK _lock __init__ N/A N/A self owner pending_fn N/A N/A N/A Initializes this class.

     N/A N/A self _owner owner N/A N/A self _pending_fn pending_fn N/A N/A self _lock N/A N/A locking SharedLock PendingHttpRequests N/A N/A self acquire N/A N/A self _lock acquire N/A N/A self release N/A N/A self _lock release N/A Disable N/A N/A self N/A N/A N/A Disable monitor.

     N/A N/A self _pending_fn None N/A N/A N/A locking ssynchronized _LOCK GetLockInfo N/A N/A self requested N/A N/A N/A Retrieves information about pending requests.

    @type requested: set
    @param requested: Requested information, see C{query.LQ_*}

     N/A result N/A N/A N/A self _pending_fn N/A N/A owner_name N/A N/A N/A self _owner getName N/A client N/A N/A self _pending_fn N/A N/A req N/A N/A client GetCurrentRequest N/A req N/A N/A N/A N/A req nicename None N/A N/A name N/A %s%s N/A N/A req host N/A req path N/A N/A name N/A req nicename N/A N/A N/A result append N/A N/A rpc/%s name None N/A owner_name None N/A result N/A N/A N/A locking ssynchronized _LOCK shared 1 N/A _ProcessCurlRequests N/A N/A multi requests N/A N/A N/A cURL request processor.

  This generator yields a tuple once for every completed request, successful or
  not. The first value in the tuple is the handle, the second an error message
  or C{None} for successful requests.

  @type multi: C{pycurl.CurlMulti}
  @param multi: cURL multi object
  @type requests: sequence
  @param requests: cURL request handles

   N/A curl requests N/A N/A N/A N/A multi add_handle curl N/A True N/A N/A N/A ret active N/A N/A multi perform N/A N/A ret N/A N/A pycurl E_MULTI_OK N/A pycurl E_CALL_MULTI_PERFORM N/A N/A ret N/A pycurl E_CALL_MULTI_PERFORM N/A N/A N/A True N/A N/A N/A remaining_messages successful failed N/A N/A multi info_read N/A curl successful N/A N/A N/A N/A multi remove_handle curl N/A N/A N/A curl None N/A N/A curl errnum errmsg failed N/A N/A N/A N/A multi remove_handle curl N/A N/A N/A curl N/A Error %s: %s N/A errnum errmsg N/A N/A remaining_messages 0 N/A N/A N/A N/A active 0 N/A N/A N/A N/A N/A multi select 1.0 N/A ProcessRequests N/A N/A requests lock_monitor_cb _curl _curl_multi _curl_process N/A None N/A pycurl Curl N/A pycurl CurlMulti _ProcessCurlRequests N/A N/A Processes any number of HTTP client requests.

  @type requests: list of L{HttpClientRequest}
  @param requests: List of all requests
  @param lock_monitor_cb: Callable for registering with lock monitor

   N/A N/A N/A compat all N/A N/A N/A N/A req error None N/A N/A req success None N/A N/A req resp_status_code None N/A N/A req resp_body None N/A req requests N/A curl_to_client N/A dict N/A N/A N/A N/A client GetCurlHandle client N/A client N/A map N/A N/A N/A req N/A N/A _StartRequest N/A _curl req requests N/A N/A N/A len curl_to_client N/A len requests N/A lock_monitor_cb N/A N/A monitor N/A _PendingRequestMonitor N/A N/A threading currentThread N/A curl_to_client values N/A N/A lock_monitor_cb monitor N/A N/A monitor _NoOpRequestMonitor N/A N/A curl msg N/A _curl_process N/A _curl_multi N/A N/A curl_to_client keys N/A N/A N/A N/A monitor acquire shared 0 N/A N/A N/A N/A N/A N/A N/A curl_to_client pop curl Done msg N/A N/A N/A N/A monitor release N/A N/A curl_to_client Not all requests were processed N/A N/A N/A monitor Disable N/A N/A N/A compat all N/A N/A N/A N/A req error None N/A N/A req success N/A N/A req resp_status_code None N/A N/A req resp_body None N/A req requests N/A