Module Expr Str TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Return Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num If CompareNotEq BinOpMod NameLoad NameLoad Num body Return BinOpAdd BinOpMult BinOpDiv NameLoad NameLoad NameLoad NameLoad orelse Return BinOpMult BinOpDiv NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Return BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str AugAssignAdd NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr If CompareIn Str NameLoad body Return Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Str CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr Num CompareIn Str NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpOr CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Driver for EMC ViPR ScaleIO volumes.

 N/A N/A oslo_log log logging N/A N/A N/A ImportError N/A cinder.openstack.common log logging cinder.volume driver cinder.volume.drivers.emc.vipr common vipr_common cinder utils cinder.openstack.common processutils N/A requests N/A LOG N/A N/A logging getLogger __name__ EMCViPRScaleIODriver N/A N/A driver VolumeDriver N/A N/A EMC ViPR ScaleIO Driver N/A server_token None __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super EMCViPRScaleIODriver self __init__ args kwargs N/A N/A self common N/A N/A self _get_common_driver N/A _get_common_driver N/A N/A self N/A N/A N/A N/A N/A vipr_common EMCViPRDriverCommon protocol scaleio default_backend_name N/A N/A self __class__ __name__ configuration N/A self configuration N/A check_for_setup_error N/A N/A self N/A N/A N/A N/A N/A N/A self common check_for_setup_error N/A create_volume N/A N/A self volume N/A N/A N/A Creates a Volume. N/A N/A N/A N/A self common create_volume volume self N/A N/A N/A N/A self common set_volume_tags volume N/A volSize N/A N/A self updateVolumeSize N/A int N/A volume N/A size N/A N/A size volSize N/A updateVolumeSize N/A N/A self volSize N/A N/A N/A update the openstack volume size N/A defaultSize 8 N/A N/A N/A volSize defaultSize 0 N/A N/A N/A N/A N/A volSize defaultSize defaultSize defaultSize N/A N/A N/A N/A volSize defaultSize defaultSize N/A create_cloned_volume N/A N/A self volume src_vref N/A N/A N/A Creates a cloned Volume. N/A N/A N/A N/A self common create_cloned_volume volume src_vref N/A N/A N/A N/A self common set_volume_tags volume N/A create_volume_from_snapshot N/A N/A self volume snapshot N/A N/A N/A Creates a volume from a snapshot. N/A N/A N/A N/A self common create_volume_from_snapshot snapshot volume N/A self db N/A N/A N/A N/A self common set_volume_tags volume N/A extend_volume N/A N/A self volume new_size N/A N/A N/A expands the size of the volume. N/A N/A N/A N/A self common expand_volume volume new_size N/A delete_volume N/A N/A self volume N/A N/A N/A Deletes an EMC volume. N/A N/A N/A N/A self common delete_volume volume N/A create_snapshot N/A N/A self snapshot N/A N/A N/A Creates a snapshot. N/A N/A N/A N/A self common create_snapshot snapshot N/A self db N/A delete_snapshot N/A N/A self snapshot N/A N/A N/A Deletes a snapshot. N/A N/A N/A N/A self common delete_snapshot snapshot N/A _scaleio_location N/A N/A self ip target iqn lun N/A None N/A N/A N/A %s:%s,%s %s %s N/A ip N/A N/A self configuration scaleio_port target iqn lun N/A ensure_export N/A N/A self context volume N/A N/A N/A Driver entry point to get the export info for an existing volume. N/A N/A create_export N/A N/A self context volume connector N/A None N/A N/A Driver entry point to get the export info for a new volume. N/A N/A remove_export N/A N/A self context volume N/A N/A N/A Driver exntry point to remove an export for a volume.
         N/A N/A create_consistencygroup N/A N/A self context group N/A N/A N/A Creates a consistencygroup. N/A N/A N/A N/A self common create_consistencygroup context group N/A update_consistencygroup N/A N/A self context group add_volumes remove_volumes N/A N/A N/A Updates volumes in consistency group. N/A N/A N/A N/A self common update_consistencygroup self context group add_volumes remove_volumes N/A delete_consistencygroup N/A N/A self context group N/A N/A N/A Deletes a consistency group. N/A N/A N/A N/A self common delete_consistencygroup self context group N/A create_cgsnapshot N/A N/A self context cgsnapshot N/A N/A N/A Creates a cgsnapshot. N/A N/A N/A N/A self common create_cgsnapshot self context cgsnapshot N/A delete_cgsnapshot N/A N/A self context cgsnapshot N/A N/A N/A Deletes a cgsnapshot. N/A N/A N/A N/A self common delete_cgsnapshot self context cgsnapshot N/A check_for_export N/A N/A self context volume_id N/A N/A N/A Make sure volume is exported. N/A N/A initialize_connection N/A N/A self volume connector N/A N/A N/A Initializes the connection and returns connection info.

        the scaleio driver returns a driver_volume_type of 'scaleio'.
        the format of the driver data is defined as:
            :scaleIO_volname:    name of the volume
            :hostIP:    The IP address of the openstack host to which we 
                want to export the scaleio volume.
            :serverIP:     The IP address of the REST gateway of the ScaleIO. 
            :serverPort:   The port of the REST gateway of the ScaleIO.
            :serverUsername: The username to access REST gateway of ScaleIO.
            :serverPassword:    The password to access REST gateway of ScaleIO.
            :iopsLimit:    iops limit.
            :bandwidthLimit:    bandwidth Limit.

        Example return value::

            {
                'driver_volume_type': 'scaleio'
                'data': {
                    'scaleIO_volname': vol_1,
                    'hostIP': '10.63.20.12',
                    'serverIP': '10.63.20.176',
                    'serverPort': '443'
                    'serverUsername': 'admin'
                    'serverPassword': 'password'
                    'iopsLimit': None
                    'bandwidthLimit': None
                }
            }

         N/A volname N/A N/A N/A self common _get_volume_name volume N/A properties N/A N/A N/A properties N/A scaleIO_volname volname N/A N/A properties N/A hostIP N/A connector N/A ip N/A N/A properties N/A serverIP N/A N/A self configuration vipr_scaleio_rest_gateway_ip N/A N/A properties N/A serverPort N/A N/A self configuration vipr_scaleio_rest_gateway_port N/A N/A properties N/A serverUsername N/A N/A self configuration vipr_scaleio_rest_server_username N/A N/A properties N/A serverPassword N/A N/A self configuration vipr_scaleio_rest_server_password N/A N/A properties N/A iopsLimit None N/A N/A properties N/A bandwidthLimit None N/A N/A properties N/A serverToken N/A self server_token N/A initiatorNodes N/A N/A initiatorNode None N/A N/A N/A initiatorNodes append initiatorNode N/A initiatorPorts N/A N/A initiatorPort N/A N/A self _get_client_id N/A properties N/A serverIP N/A properties N/A serverPort N/A properties N/A serverUsername N/A properties N/A serverPassword N/A properties N/A hostIP N/A N/A N/A initiatorPorts append initiatorPort N/A N/A properties N/A serverToken N/A self server_token N/A protocol scaleio N/A hostname N/A connector N/A host N/A itls N/A N/A N/A self common initialize_connection volume protocol initiatorNodes initiatorPorts hostname N/A dictobj N/A driver_volume_type data scaleio properties N/A dictobj N/A terminate_connection N/A N/A self volume connector N/A kwargs N/A N/A Disallow connection from connector N/A initiatorNode N/A connector N/A initiator N/A volname N/A volume N/A display_name N/A properties N/A N/A N/A properties N/A scaleIO_volname volname N/A N/A properties N/A hostIP N/A connector N/A ip N/A N/A properties N/A serverIP N/A N/A self configuration vipr_scaleio_rest_gateway_ip N/A N/A properties N/A serverPort N/A N/A self configuration vipr_scaleio_rest_gateway_port N/A N/A properties N/A serverUsername N/A N/A self configuration vipr_scaleio_rest_server_username N/A N/A properties N/A serverPassword N/A N/A self configuration vipr_scaleio_rest_server_password N/A N/A properties N/A serverToken N/A self server_token N/A initiatorPort N/A N/A self _get_client_id N/A properties N/A serverIP N/A properties N/A serverPort N/A properties N/A serverUsername N/A properties N/A serverPassword N/A properties N/A hostIP N/A protocol scaleio N/A hostname N/A connector N/A host N/A initPorts N/A N/A initNodes N/A N/A N/A N/A initPorts append initiatorPort N/A N/A N/A initNodes append initiatorNode N/A N/A N/A N/A self common terminate_connection volume protocol initNodes initPorts hostname N/A get_volume_stats N/A N/A self refresh N/A False N/A N/A Get volume status.

        If 'refresh' is True, run update the stats first.
         N/A refresh N/A N/A N/A N/A self update_volume_stats N/A N/A self _stats N/A update_volume_stats N/A N/A self N/A N/A N/A Retrieve stats info from virtual pool/virtual array. N/A N/A N/A LOG debug Updating volume stats N/A N/A self _stats N/A N/A N/A self common update_volume_stats N/A _get_scaleio_version N/A N/A self N/A N/A N/A N/A N/A LOG info Get version of the scaleio SDC N/A cmd N/A drv_cfg N/A cmd N/A --query_version N/A N/A N/A LOG info N/A ScaleIO sdc query version command:  N/A str cmd N/A N/A N/A N/A out err N/A N/A utils execute run_as_root True cmd N/A N/A N/A LOG info N/A Get ScaleIO version %s: stdout=%s stderr=%s N/A cmd out err N/A N/A N/A N/A processutils ProcessExecutionError N/A e N/A N/A msg N/A Error querying sdc version: %s N/A e stderr N/A N/A unrecognized option '--query_version' msg N/A N/A R1_30 N/A N/A N/A N/A LOG error msg N/A N/A N/A exception VolumeBackendAPIException data msg N/A version out N/A msg N/A Current sdc version: %s version N/A N/A N/A LOG info msg N/A version N/A _get_client_id N/A N/A self server_ip server_port server_username server_password sdc_ip N/A N/A N/A request N/A N/A N/A N/A N/A N/A https:// server_ip : server_port /api/types/Client/instances/getByIp:: sdc_ip / N/A N/A N/A LOG info N/A ScaleIO get client id by ip request: %s request N/A N/A N/A N/A self configuration scaleio_verify_server_certificate True N/A N/A verify_cert N/A self scaleio_server_certificate_path N/A N/A verify_cert False N/A version N/A N/A self _get_scaleio_version N/A r None N/A N/A R1_31 version N/A N/A r N/A N/A requests get request auth N/A server_username N/A self server_token verify verify_cert N/A r N/A N/A self _check_response r request server_ip server_port server_username server_password N/A N/A r N/A N/A requests get request auth N/A server_username server_password verify False N/A sdc_id N/A N/A r json N/A N/A N/A sdc_id N/A sdc_id None N/A N/A msg N/A Client with ip %s wasn't found  sdc_ip N/A N/A N/A LOG error msg N/A N/A N/A exception VolumeBackendAPIException data msg N/A N/A N/A N/A r status_code 200 N/A errorCode sdc_id N/A N/A msg N/A Error getting sdc id from ip %s: %s  N/A sdc_ip N/A sdc_id N/A message N/A N/A N/A LOG error msg N/A N/A N/A exception VolumeBackendAPIException data msg N/A N/A N/A LOG info N/A ScaleIO sdc id is %s sdc_id N/A sdc_id N/A _check_response N/A N/A self response request server_ip server_port server_username server_password N/A N/A N/A N/A N/A N/A response status_code 401 N/A N/A response status_code 403 N/A N/A N/A N/A LOG info Token is invalid, going to re-login and get a new one N/A login_request N/A N/A N/A N/A https:// server_ip : server_port /api/login N/A N/A N/A N/A self configuration scaleio_verify_server_certificate True N/A N/A verify_cert N/A self scaleio_server_certificate_path N/A N/A verify_cert False N/A r N/A N/A requests get login_request auth N/A server_username server_password verify verify_cert N/A token N/A N/A r json N/A N/A self server_token token N/A N/A N/A LOG info N/A N/A going to perform request again {0} with valid token format request N/A res N/A N/A requests get request auth N/A server_username N/A self server_token verify verify_cert N/A res N/A response N/A retype N/A N/A self ctxt volume new_type diff host N/A N/A N/A Change the volume type N/A N/A N/A N/A self common retype ctxt volume new_type diff host N/A N/A