dmwm / DMWMMON

1 stars 8 forks source link

'NODE' => undef in data service StorageUsage API output #2

Closed nataliaratnikova closed 9 years ago

nataliaratnikova commented 10 years ago

API online documentation says:

required inputs: node node node name, could be multiple, all(T*). {...}

The output of corresponding query for all nodes: "https://cmsweb.cern.ch/dmwmmon/datasvc/perl/storageusage?node=T*" contains no node information: 'NODE' => undef

The % in the input node parameter is also accepted: "https://cmsweb.cern.ch/dmwmmon/datasvc/perl/storageusage?node=T%" the node in the output is defined and contains records for T1_US_FNAL only (at least in my case).

Both documentation and the API code need an update.

nataliaratnikova commented 9 years ago

Nodes API is no longer available in dmwmmon/datasvc

TonyWildish commented 9 years ago

both problems are fixed in 1.0.2, due for release in October.

TonyWildish commented 9 years ago

Natalia, there's a pre-release on phedex-web-dev if you'd like to test it.

nataliaratnikova commented 9 years ago

Thank you for a swift fix. On phedex-web-dev, I still see problem with storageusage API query for all nodes where T* now behaves as T% described above, i.e. only one node info is returned, the node name being 'T2_HU_Budapest' this time.

TonyWildish commented 9 years ago

I think you need to add the 'time_create' argument to your call, to get results older than the default time window.

nataliaratnikova commented 9 years ago

Yes! $url"/storageusage?time_since=0&time_until=10000000000&node=T*" returns everything. Thanks!