Open ivpfals opened 8 years ago
@ivpfals AFAIK, such fields are only available if OpenStack instance has block storage service enabled see docs.
@jamiehannaford Any idea how to make model extensible and support this use case? I've looked in to rackspace/gophercloud
but apparently this case is not also covered.
@haphan Well the cinder Services are enabled on our instance:
cinderv3 | TYPE: volumev3 | ID: 6378ba641ab848848b1bdc1d40c7a5d1 | DESCR: Cinder Service v3 cinder | TYPE: volume | ID: 65b1ceb385bd4988890a6fb8dc790bf9 | DESCR: Cinder Service
And the Openstack commandline tool queries the same instance, that's the reason why I'm asked :)
@ivpfals apologies for not being very clear. What I mean is cinder extension, when enabled, will modify the endpoint /v2/{tenantID}/limits
and decorate the response with extra fields such as totalVolumesUsed
, totalGigabytesUsed
, etc.
The SDK at the moment, unfortunately, only works with base fields as described in http://developer.openstack.org/api-ref-compute-v2.1.html#showlimits
One implementation I can think of is as following. @jamiehannaford any comment?
$openstack = new OpenStack\OpenStack($params);
$limit = $openstack->blockStorageV2()->limits();
@haphan Thanks for clarification! Well I will use a workaround (calling the openstack commandline util via remote ssh) to fetch project's limit information, as I need the volume limits for my project. If I could help you with this issue just drop me a note!
Hi,
when using the computeV2()->getLimits() call to fetch the limits and quota informations for a given ProjectID, the data for volume usage is missing?
From the SDK call I get this:
And when using the Openstack commandclient, I get this:
Is there any chance to get the missing data (totalVolumesUsed, totalGigabytesUsed etc.) via the SDK call?