In case of single server setups, the network performance data is empty.
Because of this, the condition that indicates that the network test step
is over never evaluates to true and hence the spinner doesn't finish
(doesn't show the tickmark indicating the step has completed).
While this is a nigligible issue in normal execution of the subnet
health command, it has a weird side effect when the `--license` flag is
passed. In such cases, the network test spinner finishes _after_ the
message about succesful generation of the report is printed.
Ensuring that all the spinners are stopped explicitly after the api call
returns resolves this issue.
Add an optional text flag `license` to the `subnet health`
command. If this flag is passed, upload the generated health report to
Subnet by passing the license key as auth.
* mirror: Add monitoring endpoint for mirroring operations
The following are the added metrics:
mc_mirror_failed_s3ops 3
mc_mirror_time_last_activity 9
mc_mirror_total_restarts 3
mc_mirror_total_s3ops 199920
Also, --watch automatically restarted if an error is detected
Co-authored-by: Anis Elleuch <anis@min.io>
After the introduction of versioning parameter in mc ilm document, we
didn't test mc ilm edit. This PR fixes this behavior and add more
lifecycle validation for versioning parameters
Session files contained a colored json which leaded a problem with
unparsing it, use jsoniter instead of the colorjson when marshal
unmarshal session data.
When parallel net perf tests are not performed, for example in FS mode,
the server response contains an empty node for the net pef data with
value of `addr` as empty string (`""`).
This data should be ignored when mapping the server response to the
health report format. Otherwise we end up with a health report with an
empty server node under `hardware` section.
Currently, there is a success message misleading the user, while what is
really happened is that minio-go SetLifecycle removes any existing
lifecycle configuration in the bucket.
At the moment posener/complete [1] doesn't allow specifying shell for
IsInstalled(), which might lead to confusing error messages, since it
just returns true if it's able to find completion definition in *any*
shell configurations even if it's not what the user currently uses.
Hence we should remove this check and call Install() directly, and user
can get more details in this case.
[1] https://github.com/posener/complete
* Improve auto-completion installation handling as per @ebozduman
* Improve messages when user's using an unsupported shell
* Refactors mc auto-complete logic
Co-authored-by: Ersan <ersan.bozduman@gmail.com>