-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noobaa command to list bucket/account giving trimmed output in pipe #8111
Comments
@madhuthorat could you attach the command you are running and the output ? thanks |
Hi @romayalon We are trying to read all the noobaa-cli output through the PIPE. but after receiveing few bytes, the returned output is 0 and EOF. That means full output is coming through pipe. }, |
@PravinRanjan10 @madhuthorat Could you add the exact command you are running? |
@romayalon Here is the command, we are running Running command: env LC_ALL=C /usr/local/bin/noobaa-cli bucket 2>/dev/null list --wide |
@romayalon the behavior looks same as seen with health command before #7894 fix. |
@PravinRanjan10 @madhuthorat How many buckets/accounts you have in the system? |
Approx 5k account/buckets. |
@romayalon 'as the fix sounds similar to #7894 can we have the fix in 5.15.4 ? currently we are using a workaround which is little cumbersome |
@madhuthorat yes, see #8120 backport PR to 5.15.4. |
Thank you @romayalon |
Re-opening as it's not working as expected. Below is some output: I have 5k buckets noobaa-cli bucket list 2>/dev/null |jq Some other output:
bytes recieved: 0: EOF |
@PravinRanjan10 Thanks for the quick verification! |
output of: noobaa-cli bucket list &>noobaa-cli-bucket-list.log |
output with : noobaa-cli bucket list |jq
|
Hi @PravinRanjan10
|
@guymguym jq-1.6-15.el9.x86_64 Yes, if number of buckets are less (around <=2.5k), it works fine with pipe and jq. |
@PravinRanjan10 can you test without a pipe like i suggested above? |
@PravinRanjan10 @guymguym |
Actually, the problem is with PIPE only. In code we are trying to collect the output of noobaa-cli bucket list and parse. The problem is, if size of bucket list increases then we need to use stdout pipe to collect those output and parse. |
@romayalon I was trying to reproduce somehow with this script below but it doesn't reproduce (not even with 100,000).
|
@PravinRanjan10 I created 6000 buckets and couldn't see your issue, can we have access to your machine? |
Updating that I had a call with @PravinRanjan10 and after upgrading to the latest RPM we couldn't see the issue again. |
Closing the issue per @PravinRanjan10 confirmation. |
Environment info
Actual behavior
Expected behavior
Steps to reproduce
More information - Screenshots / Logs / Other output
The text was updated successfully, but these errors were encountered: