woorea / openstack-java-sdk

OpenStack Java SDK
Apache License 2.0
194 stars 198 forks source link

Added Java SDK for scheduler_stats api in Cinder. #184

Closed ansaba closed 9 years ago

ansaba commented 9 years ago

This extension provides two level of pool information: names only or detailed information:

Pool name only: GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools

Detailed Pool info: GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools \?detail\=True

JSON Response { "pools": [ { "name": "ubuntu@lvm#backend_name", "capabilities": { "QoS_support": false, "allocated_capacity_gb": 0, "driver_version": "2.0.0", "free_capacity_gb": 7.01, "location_info": "LVMVolumeDriver:ubuntu:stack-volumes:default:0", "pool_name": "backend_name", "reserved_percentage": 0, "storage_protocol": "iSCSI", "timestamp": "2014-11-21T18:15:28.141161", "total_capacity_gb": 10.01, "vendor_name": "Open Source", "volume_backend_name": "backend_name", "extra_specs": [ { "description": "HP 3PAR Fibre Channel driver", "display_name": "HP3PARFCDriver", "namespace": "OS::Cinder::HP3PARFCDriver", "properties": { "hp3par:persona": { "default": "2", "description": "HP 3PAR Persona", "enum": { "1": "Generic", "10": "ONTAP-legacy", "11": "VMware", "12": "OpenVMS", "13": "HPUX", "15": "WindowsServer", "2": "Generic-ALUA", "6": "Generic-legacy", "7": "HPUX-legacy", "8": "AIX-legacy", "9": "EGENERA" }, "title": "persona", "type": "string" }, "hp3par:snap_cpg": { "description": "Overrides the 'hp3par_snap' setting", "title": "snap_cpg", "type": "string" } } }, { "description": "HP LeftHand iSCSI driver", "display_name": "HPLeftHandISCSIDriver", "namespace": "OS::Cinder::HPLeftHandISCSIDriver", "properties": { "hplh:provisioning": { "default": "thin", "description": "Provisioning", "enum": [ "full", "thin" ], "title": "provisioning", "type": "string" }, "hplh:vvs": { "default": "1", "description": "VVS", "title": "vvs", "type": "integer" } } } ] } } ] }

simon3z commented 9 years ago

@danielerez can you review this?

ansaba commented 9 years ago

Am I missing anything to add for review ?

Thanks, Saba

woorea commented 9 years ago

I have seen the changes in your repo. Looks fine, please can you create a pull request?

ansaba commented 9 years ago

Hello Daniel,

I have updated the branch with review comments. Please let me know for any additional changes. Thanks for your time.

Thanks, Saba

danielerez commented 9 years ago

Added just a couple of minor comments. Either than that, it looks good to me and should be ready to merge.

ansaba commented 9 years ago

Have removed the author name. Let me know for any more changes. Thanks for your time.

Saba

danielerez commented 9 years ago

Looks good to me. Should be ready to merge. Thanks!