Commit Graph
1117 Commits
Author SHA1 Message Date
Shireesh Anjal 6347b436ff Export perf test result related types (#4246)
So that they can be used by `health-analyzer` when parsing the
performance test results data.
2022-09-15 01:22:42 -07:00
Krishnan Parthasarathi 1009a897d8 ilm-add: update flags related to tiering (#4250) 2022-09-14 13:53:00 -07:00
Harshavardhana b34681d662 fix: use deadlineconn properly (#4249)
PR #4164 didn't use the set deadlines properly
2022-09-14 08:15:37 -07:00
Harshavardhana acd390f261 allow support for airgapped 'mc update' URL (#4244)
support airgapped environments to update `mc`
via a URL, similar to `minio server`
2022-09-12 12:51:52 -07:00
Anis Elleuch 145da32419 Add --request-header to trace cmd to filter http requests (#4238)
e.g:

`mc admin trace --request-header "User-Agent: *hadoop*" <alias>`
   to print all S3 requests sent by Hadoop

`mc admin trace --request-header "!X-Minio-Source*" <alias>`
   to avoid printing S3 requests related to replication
2022-09-12 10:12:06 -07:00
Harshavardhana ea96e2b2c8 allow terminal control back for 'top api/disk' (#4239)
similar to #4237 fix other command TUI's as well,
also no locking is needed to protect maps.

Update()/View() are serial so need to add mutexes.
2022-09-09 03:48:39 -07:00
Anis Elleuch 3142b54cc1 Avoid cutting policy name in admin policy list command (#4241)
`mc admin policy list` only shows policy names, it does not need
 to cut the policy name to 20 characters when showing it.
2022-09-09 03:47:41 -07:00
Harshavardhana 30a9bb8b05 allow terminal control back after bubbletea UI (#4237)
terminal control was not relinquished since ui.Start()
must not be run in a go-routine as it is expected
to be a blocking call, and must be serialized with when
an application exits.

refactor the 'scanner info/status' to ensure we have
correct behavior.

This PR also renames 'info-> status', keeps the older
one as alias for now.
2022-09-08 08:18:07 -07:00
Ashish Kumar Sinha f73e036b80 fix: alignment issue in mc ping. (#4218) 2022-09-07 15:27:40 -07:00
Anis Elleuch 5bb0e38f94 Add objects sizes histogram to bucket info (#4236)
mc admin bucket info shows the object size histogram
2022-09-07 15:25:35 -07:00
Anis Elleuch b3e1ac34c7 ls: Fix ls exit code related to some errors in FS (#4233)
The code that is being modified is from 2016. Currently, it does not set
an exit code status in the following cases, all of them are returned by
the FS layer:

    BrokenSymlink
    TooManyLevelsSymlink
    PathNotFound
    PathInsufficientPermission

There is no reason to avoid setting an exit code in this case. The only
functional change of this PR is by setting an exit code
2022-09-06 09:54:46 -07:00
Harshavardhana 5cd7ff8876 cleanup commands to use Go 'err' as 'e' (#4232)
many commands seem to have sort of had
stopped following the expected convention
in `mc` to differentiate *probe.Error.

To keep things readable this PR is the
first attempt at such a cleanup.
2022-09-06 08:03:25 -07:00
Klaus Post 2c9a733cae Add mc admin trace --call=healing (#4229)
Provide healing operation traces.

See https://github.com/minio/minio/pull/15616 for basic implementation.
2022-08-31 08:17:02 -07:00
Harshavardhana 41e6cc5626 fix: use DurationFlag to response-threshold (#4227)
Also add missing flags from 'mc admin scanner trace'
2022-08-30 08:15:54 -07:00
Shireesh Anjal a64491e101 Fix support callhome status command (#4222)
Because of recent changes in the way config is parsed in `mc`, we need
to pass `madmin.Default` as the target when looking for the callhome
config.
2022-08-28 13:08:11 -07:00
Harshavardhana af1d0ee6da change progress unicode style, simplify progress bar init() (#4224) 2022-08-26 12:45:12 -07:00
Klaus Post 55c5b96323 Fix mb with-versioning (#4223)
`mc mb --with-versioning` no longer works after https://github.com/minio/mc/commit/f70b7e537c908e2c426f87218d5a44f807588074 (no PR)

Use long param name.
2022-08-26 06:40:33 -07:00
Shireesh Anjal 85a50dbf91 Fix support logs status command (#4221)
Earlier, the parsed config contained the `target` of the form
`subsystem:target` e.g. `logger_webhook:subnet`. Now it contains only
the target e.g. `subnet`.

Updating the `support logs status` command code accordingly to ensure
that it prints correct output.
2022-08-25 08:03:03 -07:00
Harshavardhana f022a57088 feat: support head with --zip (#4219) 2022-08-24 23:10:03 -07:00
Ashish Kumar Sinha 236b50d6db trim response to two-decimal places in ping command (#4214) 2022-08-24 21:09:32 -07:00
Shireesh Anjal 07fffc3bc8 Enhancements in registration and diagnostics (#4200)
- When the cluster is registered but either license or api-key
  are available in the config, and when `--airgap` is not passed 
  to the command, try to automatically fetch and store the other
  both.
- Add `--api-key` flag to `mc support diag`
- Use header-based auth with subnet
- Introduce a common function to initialize/check connectivity with subnet
- Make the health report upload function generic so that it can be used
  by other commands like profile in future
- Add a global variable for airgapped mode
- Add more examples to `mc license register`
2022-08-22 22:45:20 -07:00
Harshavardhana f70b7e537c remove 'mc mb' short flag to avoid confusion
Bonus: fix `od` build issues since removal of madmin.KVS
instead keep a `mc` version of `argKVS` for future use.
2022-08-22 22:10:41 -07:00
Taran Pelkey 68a36788aa Add od command (#4180) 2022-08-22 22:02:23 -07:00
Harshavardhana 488b277e36 feat: --with-versioning flag to create bucket as versioned (#4216) 2022-08-22 10:52:19 -07:00
Anis Elleuch c57671a0d4 Introduce disk IO statistics UI (#4201) 2022-08-22 10:52:00 -07:00
Aditya Manthramurthy 1529bb83bf Move config parsing logic to madmin (#4212) 2022-08-17 17:07:58 -07:00
Anis Elleuch 3cb806d011 Add --disable, --enable and --prefix to ilm commands (#4209)
Passing the prefix in the aliased url is problematic for ilm edit
command when the user wants to modify something in the ILM rule: no
prefix in the url means the user wants to set an empty prefix or maybe
nothing. To fix this, add --prefix flag and make it a default choice in
the document.

Also, ilm edit will try to only apply passed flags. LifecycleOptions
fields are all pointers to apply only non nil fields to the ILM rule.
2022-08-17 17:07:42 -07:00
Harshavardhana de65258a7f fix: ping must call AdminInfo only with '--distributed' (#4208) 2022-08-16 07:14:12 -07:00
Aditya Manthramurthy 088aa3f04f Update config output JSON format (#4207)
This change allows for the JSON format of config output from the server
to show both the environment variables' and config system variables'
value.
2022-08-15 19:05:19 -07:00
Taran Pelkey eb7a7206a3 Clarify error when user has no policy (#4206) 2022-08-14 15:13:33 -07:00
Aditya Manthramurthy c2c2ab4299 Make environment variables output highlighted (#4205)
For `mc admin config get|export`
2022-08-10 17:30:48 -07:00
Ashish Kumar Sinha c12f6e46c3 rename mc admin top to mc support top (#4191) 2022-08-10 13:02:42 -07:00
Krishnan Parthasarathi d691fc4c9f Add trace support for decommissioning (#4195) 2022-08-10 10:14:21 -07:00
Anis Elleuch 3e990e3525 Change the JSON output of mc support perf (#4198)
Change the JSON output of mc support perf

The new change will still print multiple JSON lines for each conducted
performance test but now we have a new field called 'type' field to
difference between network, drive and object tests.

This change also adds 'final' field to indicate this is the final json of a
particular performance testing.

Also, errors when conducting those tests will have a field 'err' as well
in the JSON output.
2022-08-10 08:09:05 -07:00
Anis Elleuch 73b157e4b1 Print a better error msg when net perf is unsupported (#4194)
Netperf is not supported in a standard deployment, this PR will print a
better error message in that case.
2022-08-08 15:20:18 -07:00
Anis Elleuch d43c25ffa3 restart: Use health check instead of service info API (#4190)
`mc admin service restart` currently uses ServerInfo() API which is costly.
2022-08-08 09:32:27 -07:00
Shireesh Anjal de706ef096 Fix example description for mc support perf (#4193)
The current description seems incomplete as it doesn't mention object
storage performance.
2022-08-08 08:35:51 -07:00
Harshavardhana 7838be4a7f apply --status-code only for HTTP traces if present (#4189)
fixes #4188
2022-08-08 08:33:23 -07:00
Ashish Kumar Sinha 63d0e213c3 update ping command with new terminal UI (#4163) 2022-08-08 00:04:14 -07:00
Harshavardhana 6cee296d04 rename Remove -> Removed in 'mc rm' (#4187) 2022-08-05 21:54:56 -07:00
Taran Pelkey 1381bf2168 Update examples for admin-config-reset (#4160) 2022-08-05 20:29:15 -07:00
Poorna 351d021b92 Change ui for admin cluster bucket import (#4184)
Report on all errors encountered during import
2022-08-05 01:01:28 -07:00
Anis Elleuch 4e42a9e3eb rb: Better error message when the user passes an object name (#4183)
The new error message is:
```
$ mc rb --force play/testbucket/dir/
mc: <ERROR> Failed to remove `play/testbucket/dir/`. Bucket name `testbucket/dir/` not valid.
```
2022-08-03 08:43:41 -07:00
Anis ElleuchandAnis Elleuch 554905ac46 rm: Fix successful message for operations on the filesystem (#4182)
Names of the removed files when mc operatres on the filesystem are
not shown properly. The code is splitting the removed path into bucket
and prefix which doesn't make sense for filesystem.

The commit will just send the path of the removed object.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-08-03 08:33:04 -07:00
Harshavardhana cf428f1188 support in-place rewrite of objects in heal and convert the format (#4175) 2022-08-03 05:46:31 -07:00
Harshavardhana 69c0129cc7 remove sysinfo from errorIf with globalDebug (#4178)
remove sysinfo from errorIf without globalDebug

Bonus remove unused error BucketNameTopLevel and
fixes #4177
2022-08-02 17:00:08 -07:00
Ashish Kumar Sinha 16ff57a0ef add errors to admin top api command (#4176) 2022-08-01 12:43:32 -07:00
Shireesh Anjal edd633ff2f Save api key passed as argument in config (#4157)
When the account api key is passed to `mc license register` via the
`--api-key` flag and after the registration is successful, save it to
minio config, so that it can be used automatically in subsequent calls.

Also stop extracting and storing api key from the response of SUBNET
register api.
2022-07-31 22:44:23 -07:00
dorman 37a83f23f0 change rm color on the terminal (#4171)
fixes #4165
2022-07-29 12:17:16 -07:00
dorman 11d3bace31 rm: add fake message with --fake (#4170)
fixes #4166
2022-07-29 11:03:24 -07:00