Commit Graph
765 Commits
Author SHA1 Message Date
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
Shireesh Anjal f9d36f9b52 Update minio dependency to latest master branch (#3628) 2021-03-01 08:22:50 -08:00
Anis Elleuch e3b84c39df ilm: Fix edit ILM versioning parameters (#3626)
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
2021-02-27 09:08:28 -08:00
ebozduman cb909f5ce5 Stops 'mc cp --attr' preserve file attributes without '--preserve' (#3625) 2021-02-25 09:32:44 -08:00
Anis Elleuch 18da584d5a session: Fix resuming cp/mv session (#3580)
Session files contained a colored json which leaded a problem with
unparsing it, use jsoniter instead of the colorjson when marshal
unmarshal session data.
2021-02-19 10:51:48 -08:00
Shireesh Anjal b3c692d6eb Ignore parallel net perf data when its empty (#3607)
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.
2021-02-16 19:35:39 -08:00
Anis Elleuch 0053d58648 rm: Better messages when buckets are empty (#3606) 2021-02-16 13:53:04 -08:00
Anis Elleuch d759f195f2 trace: Add source IP in verbose mode (#3612)
Add the source IP information in the REQUEST trace line when the verbose
mode is enabled.
2021-02-12 21:32:08 -08:00
Anis Elleuch 006cb0c0cf mirror: Fix behavior under Windows when source url is S3 (#3611)
Removed one block of code which seems to be useless and no comment with
it. This was causing issue doing mirroring under Windows.
2021-02-12 21:31:34 -08:00
Aditya Manthramurthy 4eb6f999a6 fix: crash on invalid input to policy set (#3610) 2021-02-12 11:22:02 -08:00
Aditya Manthramurthy 7c0fb6a99e Fix user/group argument parsing (#3602) 2021-02-09 14:25:11 -08:00
Ritesh H Shukla f782b462c6 Do not print v2 prometheus metrics for older releases (#3600) 2021-02-09 10:34:39 -08:00
Poorna Krishnamoorthy c44387cb32 Add --sync flag to admin bucket remote add command (#3549) 2021-02-05 15:21:31 -08:00
Anis Elleuch e93ec078dc ilm: Fix adding ExpiredObjectDeleteMarker alone (#3596)
It is not possible to add rule with only ExpiredObjectDeleteMarker
activated. This commit fixes the issue.
2021-02-04 21:13:53 -08:00
Anis Elleuch 650a4b8d66 cp: Fix crash with recursive copy with non existant resource (#3592)
Fixing a recent regression introduced when copying a non
existent bucket or prefix when --recursive flag is passed.
2021-02-02 08:37:30 -08:00
Harshavardhana ade302d969 fix: suggestion format with 'mc admin config set' 2021-01-27 18:27:58 -08:00
Ritesh H Shukla 169aa24ae0 Update the URL for metrics (#3584) 2021-01-25 17:32:58 -08:00
Harshavardhana 24ebcf13cf fix: make listing consistent with top level delete marker (#3587)
```
~ mc ls s3/tbucket13/x.txt
[2021-01-25 13:24:09 PST]   525B z.txt
```

```
~ mc ls s3/tbucket132/x.txt
[2021-01-25 13:31:41 PST]   525B x.txt/z.txt
```
2021-01-25 14:39:16 -08:00
Anis Elleuch 130f4393bb cp: Copy recursive paths having the passed prefix (#3563) 2021-01-24 00:06:40 -08:00
Anis Elleuch 7e19044d98 ilm: Import aborts when lifecycle config does not have a rule (#3576)
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.
2021-01-23 23:05:15 -08:00
Frederick ZhangandErsan 8760185bc3 Remove IsInstalled() call before auto-completion installation (#3548)
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>
2021-01-21 20:48:22 -08:00
Harshavardhana f73987fc34 fix: invalid user-agent release tag for mc (#3575)
fixes #3529
2021-01-20 09:51:52 -08:00
Harshavardhana 1c3e6516f0 allow trace filters on handler names (#3568)
also convert the filter options to slice flags, for example
if you wish to trace only for status code 404 and 503 then
you would specify the following command

```
mc admin trace --status-code 404 --status-code 503 myminio/
```

Refactor and make implementation more readable.
2021-01-19 02:20:34 -08:00
Anis Elleuch 5fcb069e8a Add missing lifecycle versioning config parameters (#3565)
Add the following flags to mc ilm command:

  --expired-object-delete-marker
  --noncurrentversion-expiration-days
  --noncurrentversion-transition-days
  --noncurrentversion-transition-storage-class
2021-01-12 23:47:39 -08:00
Anis Elleuch c1fe60f7ad admin info: Show yellow dot when the cluster is not fully initialized (#3555) 2021-01-05 09:13:08 -08:00
Anis Elleuch e7df97d1e0 trace: Add more filters options (#3556)
Filter options are necessary if the server receives a lot of requests,
especially when the verbose mode is passed.
2021-01-04 21:00:48 -08:00
Harshavardhana 95ee8f0714 list with maxKeys=1 for url2Stat() calls (#3557) 2021-01-03 11:34:53 -08:00
Harshavardhana c041d86f03 fix: add hidden flag to return count number of locks (#3552) 2020-12-30 14:58:00 -08:00
Anis Elleuch e13737383f mirror: FS should ignore some non supported S3 events (#3554)
Bucket creation & removal are events only supported by MinIO server and
they are not meaningful for FS. Just ignore them at FS level and avoid
reporting an error.
2020-12-30 07:02:10 -08:00
Poorna Krishnamoorthy 766b69802c Remove transition targets (#3547)
Remove transition targets from `mc admin bucket remote` command 
and references to transition s.c label in `mc ilm add` command and docs.

This is being deprecated in favor of an improved approach
to transition in the works.
2020-12-24 14:09:26 -08:00
Harshavardhana 41c804b179 fix: update to minio/pkg/console changes (#3545) 2020-12-20 10:10:29 -08:00
Anis ElleuchandAnis Elleuch d0e1456be3 client-s3: Stat() should return data for passed directories (#3539)
Co-authored-by: Anis Elleuch <anis@min.io>
2020-12-18 02:42:34 -08:00
Harshavardhana 5023905a3a use minio/pkg/certs instead of custom implementation (#3536)
also depends on https://github.com/minio/minio/pull/11123
for k8s automatic trust for MinIO deployments under operator
2020-12-16 19:41:15 -08:00
Poorna Krishnamoorthy 5ed74df9ed Add mc admin bucket remote edit to edit credentials (#3480) 2020-12-16 15:51:29 -08:00
Anis Elleuch 4e8e67fb04 mirror: Add support of site-wide mirroring (#3467) 2020-12-14 14:10:09 -08:00
Chengyou LiuandHarshavardhana 74fc02e5eb Add --summarize for ls (#3517)
Co-authored-by: Harshavardhana <harsha@minio.io>
2020-12-09 15:26:29 -08:00
Harshavardhana 24101f18aa update minio/minio deps to honor dynamic config settings (#3526) 2020-12-07 16:02:56 -08:00
Harshavardhana b6969bc501 add support for watching for replication/ilm events (#3525) 2020-12-07 12:23:11 -08:00
Anis Elleuch d4fbfb5975 Show better looking help when a wrong flag is passed (#3461) 2020-12-02 22:19:26 -08:00
Harshavardhana 00873e4b93 update dependencies (#3515) 2020-12-01 18:44:48 -08:00
Harshavardhana b1f5e78980 fix indentation/help across commands (#3512) 2020-12-01 16:34:43 -08:00
Ritesh H Shukla bd7442fbc6 Add under what condition overwrite flag will copy data from source to target (#3513) 2020-12-01 12:26:01 -08:00
Lenin Alevski c7989d06bc Support for setting custom Transport in S3Client configuration (#3510) 2020-11-30 20:52:08 -08:00
Harshavardhana 681cbb06de use directly S3 event types instead of re-defining them (#3511) 2020-11-30 09:10:34 -08:00
Shireesh Anjal 3dffa04f66 Implement new format of the health report (#3492) 2020-11-26 05:41:14 -08:00
Poorna Krishnamoorthy 060b0762fb Remove trailing slash for mc admin bucket remote ls (#3506)
if any, after alias/bucket
2020-11-25 13:12:43 -08:00
Poorna Krishnamoorthy df5f03a109 Fix cutoff header in mc admin bucket remote ls (#3502) 2020-11-25 12:05:37 -08:00