Commit Graph
811 Commits
Author SHA1 Message Date
Anis ElleuchandKlaus Post a06096f8ee du: Use recursive listing when no detailed report is asked (#3737)
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>
2021-06-03 08:19:04 -07:00
Harshavardhana 87092404e0 fix: 'mc admin tier' CLI fix typos (#3734) 2021-06-01 15:00:06 -07:00
Bala FA fbbae711bd Add new health data structure support. (#3687)
`mc admin subnet health` command supports new health data structure
and versioning of health API.

Signed-off-by: Bala.FA <bala.gluster@gmail.com>
2021-05-30 20:02:40 -07:00
Harshavardhana 91efd0c066 migrate mc to minio/pkg (#3731)
remove all dependency for minio/minio
2021-05-29 09:30:33 -07:00
Anis ElleuchandAnis Elleuch 9740a09584 restart: Avoid bad empty line (#3729)
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>
2021-05-27 19:46:30 -07:00
Harshavardhana 8d65ee7130 fix: enhance support for special access/secretkeys in remote targets (#3725)
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.
2021-05-18 22:29:47 -07:00
Poorna Krishnamoorthy 6e251456d2 Add flag for replica sync to mc replicate command (#3722)
Signed-off-by: Poorna Krishnamoorthy <poorna@minio.io>
2021-05-17 14:11:51 -07:00
Shireesh Anjal 9714e1cf49 Use new URL for upload to subnet (#3720)
Old path: /api/auth/health_reports
New path: /api/health/upload

Signed-off-by: Shireesh Anjal <shireesh@minio.io>
2021-05-15 22:20:22 -07:00
Harshavardhana 60d3646baf attr is optional for mc pipe
fixes #3718
2021-05-12 09:27:36 -07:00
Harshavardhana 7d142be711 support parsing special tags after releaseTag 2021-05-11 19:51:36 -07:00
Krishnan Parthasarathi deb714784c Add mc admin tier subcommands (#3566)
Signed-off-by: Krishnan Parthasarathi <kp@minio.io>
2021-05-11 19:42:49 -07:00
Klaus Post 757b9d6872 pipe: Add custom attributes and tags (#3706)
Support adding custom attributes and tags.

Examples included.
2021-05-11 19:35:58 -07:00
Harshavardhana 954f0a5fd1 add fips build support for mc 2021-05-11 18:25:46 -07:00
Harshavardhana ac08bf41a7 fix: gofmt on some files 2021-05-11 17:46:41 -07:00
Harshavardhana 1402987ccb change license to AGPLv3 2021-05-11 17:45:08 -07:00
Shireesh Anjal e207f3bfa4 Fix incorrect error related to "name" flag (#3714) 2021-05-10 19:48:14 -07:00
Harshavardhana 073c9c6308 remove fetchUserKeys _contrib 2021-05-10 10:13:23 -07:00
Harshavardhana 8cf4031ef5 add some self contained functions to contrib
remove chinese doc translations, move docs to CC-BY 4.0 license
2021-05-10 09:38:59 -07:00
Harshavardhana 6c3ac00e18 update madmin to github.com/minio/madmin-go (#3710) 2021-05-06 13:33:17 -07:00
Shireesh Anjal 8c4a2698d9 Add --schedule and --name flags to subnet health (#3685)
* 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.
2021-05-06 10:31:33 -07:00
Anis ElleuchandAnis Elleuch a62d2b4659 svcacct: Print password when generating a new service account (#3709)
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>
2021-05-05 17:22:38 -07:00
Poorna Krishnamoorthy c4890d949b trace: display time in UTC format (#3708) 2021-05-03 11:52:16 -07:00
Bala FA af1676e6ec admin.subnet.health: add-flag-to-support-subnet-proxy (#3692)
Signed-off-by: Bala.FA <bala.gluster@gmail.com>
2021-04-26 09:45:50 -07:00
Anis Elleuch 4eae7ec7ed Add support of service account commands (#3650)
Signed-off-by: Anis Elleuch <anis@min.io>
2021-04-22 10:17:34 -07:00
Harshavardhana 37f5eff195 fix: use madmin constants 2021-04-21 16:52:21 -07:00
Poorna Krishnamoorthy 20e5905de0 Add mc replicate status command (#3684) 2021-04-21 14:05:17 -07:00
Anis Elleuch a17153cf9e admin: Implement a better restart command UX (#3618)
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
2021-04-21 14:05:06 -07:00
Anis Elleuch c00c7e3a35 admin: Add policy subcommand to user (#3648)
mc admin user policy will download all 
policies JSON linked to a user and 
merge them into one.
2021-04-19 07:35:52 -07:00
Harshavardhana d8393a365e fix: mirror monitoring cli to be --monitoring-address (#3695)
fixes #3693
fixes #3694
2021-04-18 09:11:45 -07:00
Anis Elleuch 78e3c94f5a trace: Make evaluation filters more user friendly (#3642)
Currently trace filters are like OR operations, but I think in debugging
we want AND instead.

Currently, --status-code 503 --path 'bucket/path'  will show 503 requests or
requests with 'bucket/path', this PR will require having both conditions
in the requests in order to be shown in the trace.
2021-04-16 08:56:26 -07:00
ebozduman ef59238007 Adds error exit codes for SIGINT, SIGTERM and SIGKILL (#3662) 2021-04-15 16:58:49 -07:00
Poorna Krishnamoorthy b537ee408b report bandwidth limit in --json mode (#3688)
for `mc admin bucket remote ls`

This PR also removes label for a remote target
2021-04-15 16:58:13 -07:00
Anis Elleuch 4380288249 trace: Add support of older admin tarce API (#3683) 2021-04-07 12:25:53 -07:00
Shireesh Anjal 1ac898c382 Fix net perf spinner not finishing in subnet health (#3676)
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.
2021-04-07 12:14:25 -07:00
Anis Elleuch a093f822e2 Avoid automatic copy of storage class (#3681) 2021-04-06 10:24:34 -07:00
Klaus Post 9f9f7ec542 trace: Add goroutines by default (#3664)
Goroutines are very often useful. Include them by default.
2021-04-06 09:23:01 -07:00
Harshavardhana e513a4f68f improve bandwidth monitor UI (#3680)
make the reporting UI more succint as below

```
┌──────────────────┬──────────────────────────┬───────────────────┐
│ Bucket           │ Configured Max Bandwidth │ Current Bandwidth │
├──────────────────┼──────────────────────────┼───────────────────┤
│ testbucket       │ N/A                      │ 4.4 kb/sec        │
└──────────────────┴──────────────────────────┴───────────────────┘
```
2021-04-05 16:07:00 -07:00
Harshavardhana 6074aa43ff add nodeName and path properly for os/storage calls (#3670) 2021-03-28 08:07:34 -07:00
Anis Elleuch 9914d28527 trace: Add support of Storage & OS tracing (#3663) 2021-03-27 05:38:57 -07:00
Poorna Krishnamoorthy 0ee9471197 trace: fix missing client info for ipv6 (#3661)
fixes: https://github.com/minio/minio/issues/11833
2021-03-24 03:50:02 -07:00
Anis Elleuch c3cae160b3 mirror: Add total_s3uploaded_bytes metric (#3646)
The new metric will track the total bytes of copied objects in the
target during mirroring.
2021-03-22 13:27:01 -07:00
Shireesh Anjal 1f71fdc03a Add option to upload health report to Subnet (#3641)
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.
2021-03-22 09:26:09 -07:00
Anis Elleuch e10c82f9ad cp: Add --tags to tag uploaded objects (#3644)
Applying tagging to objects copied in an S3 object using --tags flag.
2021-03-16 08:46:28 -07:00
ebozduman 501b791408 Fixes conflicting Failure&Successful msgs in 'mc rb' output (#3616) 2021-03-10 23:13:55 -08:00
Anis Elleuch ccb35f1672 mv: Fix panic and simply the code a little bit (#3640)
Also, mv did not consider --fake flag, fix it as well.
2021-03-10 23:12:04 -08:00
Ritesh H Shukla faa895dd75 Track remote replication bandwidth consumption (#3609) 2021-03-10 17:30:36 -08:00
Anis ElleuchandAnis Elleuch 28d8677578 mirror: Add monitoring endpoint for mirroring operations (#3636)
* 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>
2021-03-09 09:38:35 +05:30
Anis Elleuch 1d9873c512 admin policy: Add unset & update command (#3638)
`unset` will remove policies from a user or a group
`update` will add new policies to a user or a group
2021-03-06 13:14:49 -08:00
Harshavardhana a8c6f751a7 update to latest minio master with healing struct changes 2021-03-04 17:09:55 -08:00
Harshavardhana 13cf091af6 update to latest minio master 2021-03-02 18:00:29 -08:00