mc ilm ls has --expiry and --transition to show for only expiry or
transition information, but if one of them doesn't exist, mc crashes.
The PR fixes this.
Co-authored-by: Anis Elleuch <anis@min.io>
The subnet health report generation now includes collection of system
errors. So add a spinner for this step too in the screen output of the
command.
Signed-off-by: Shireesh Anjal <shireesh@minio.io>
When the subnet health command from current mc is used with the MinIO
versions before the latest health data structure changes (v2) were
introduced, the generated report doesn't contain the cluster information
(minio -> info).
This is because these old versions of minio don't return this
information in the output of the `healthinfo` api.
Fixed this by explicitly pulling the server info separately when we
detect that the health schema version is not v2.
This allows triggering a resyncing of previously
replicated objects when existing object replication is
enabled. It is useful in scenarios where replication target
is entirely lost and content needs to be replicated again.
mc du will always count the size of all objects under a specified
path, du -r will show the disk usage in a more detailed fashion, but if
not specified, let's do a recursive LIST call instead of calling du()
multiple times.
Co-authored-by: Klaus Post <klauspost@gmail.com>
Print '...' instead, for a distributed cluster, other characters will
follow to indicate the status of the restart command.
Co-authored-by: Anis Elleuch <anis@min.io>
it latest release and master `mc admin bucket remote add` cannot
parse accesskeys/secretkeys with special characters such as `@`,
this is due to an incorrect implementation.
use the technique used in parsing MC_HOST_alias here to allow
for more complex use-cases.
* Add --schedule flag to subnet health command
If passed along with --license, the health diagnostics will be executed
and uploaded to Subnet at given schedule (in days).
Also, delete the generated file after succesful upload to subnet.
* Add --name flag to subnet health command
If passed along with the --license flag, this will be passed as the name
of the cluster in the subnet upload request. Subnet uses this only for
the 1st upload of the given cluster.
If not passed, the alias of the cluster will be passed as default value
for the cluster name.
Sometimes passwords are auto-generated, print them so the user can
easily copy it somewhere.
Signed-off-by: Anis Elleuch <anis@min.io>
Co-authored-by: Anis Elleuch <anis@min.io>
mc admin restart service clearly indicates to the user that restarting
the process is started and also shows progress using:
`.` in red to indicate the cluster is still offline
`!` in yellow to indicate the cluster is up but still initializing