You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The storage calculator incorrectly (and confusingly) captures KB instead of Bytes. It looks like this was introduced in e59e3a0 but never reflected in the API.
To Reproduce
Install the latest version of du, on Mac, this is GNU gdu. The command used to count the storage space is listed in the code.
du -s /storage/${PVC} | cut -f1
Reading up on the -s switch
-s, --summarize
display only a total for each argument
Here is an example from my local laptop of a large directory of log files:
Current command
$ gdu -s ~/largedir/ | cut -f1
109611500
Forcing Bytes
$ gdu -b ~/largedir/ | cut -f1
111982025079
Forcing KB
$ gdu -sk ~/largedir/ | cut -f1
109611500
Human readable
$ gdu -h ~/largedir/ | cut -f1
105G
Expected behavior
One of 2 options:
That the bytesUsed matches up to actual bytes used.
The API is changed to kiloBytesUsed and the -k flag added for clarity
Either way, this is likely a breaking API change, and possibly better suited to Lagoon 2.0.
The text was updated successfully, but these errors were encountered:
seanhamlin
changed the title
Lagoon API lists bytesUsed when it is actually KBUsed
Lagoon API lists bytesUsed when it is actually kiloBytesUsedOct 14, 2020
The storage calculator is being updated to include the kilobyte field, while retaining the old one for backwards compatability. The data in both fields remains the same though, just simply making it clear that the data is kilobytes not bytes. We will need to update the actions-handler to consume the new field if it is present, and announce a deprecation of the old one (minimum lagoon-remote chart version required to get the new field)
The API is a different story, we can expose the data in a new field that just displays the same data with kiloBytesUsed and deprecate bytesUsed
Describe the bug
The storage calculator incorrectly (and confusingly) captures KB instead of Bytes. It looks like this was introduced in e59e3a0 but never reflected in the API.
To Reproduce
Install the latest version of
du
, on Mac, this is GNUgdu
. The command used to count the storage space is listed in the code.Reading up on the
-s
switchHere is an example from my local laptop of a large directory of log files:
Expected behavior
One of 2 options:
bytesUsed
matches up to actual bytes used.kiloBytesUsed
and the-k
flag added for clarityEither way, this is likely a breaking API change, and possibly better suited to Lagoon 2.0.
The text was updated successfully, but these errors were encountered: