Commit Graph
4406 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
Shireesh Anjal 97715cd215 Remove duplicate key in .golangci.yml (#4247)
The .golangci.yml file contains the root level key `linters-settings`
twice, resulting in following error when we run `make lint`:

```
> make lint
Running lint check
ERRO Can't read config: can't read viper config: While parsing config: yaml: unmarshal errors:
  line 26: mapping key "linters-settings" already defined at line 1
make: *** [Makefile:36: lint] Error 3
```

Fixed by merging into a single key.
2022-09-13 09:45:58 -07:00
Klaus Post 048aab801a Do Go vulncheck directly (#4248)
Skip action, just invoke it ourself.

This allows us to specify Go version in our code.
2022-09-13 07:57:16 -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
Andreas Auernhammer b6c2a7bb85 add vulncheck action to CI (#4243)
Signed-off-by: Andreas Auernhammer <hi@aead.dev>
2022-09-12 10:11:52 -07:00
Harshavardhana 6f414de058 add hotfix build support (#4240) 2022-09-09 03:48:56 -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 1f7bce1ada Add a pull request github template (#4234)
It will make it easier to remember that the documentation needs to be
updated.
2022-09-07 15:25:58 -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
Krishnan Parthasarathi 248f8efb36 Update minio-go to for recent pkg/lifecycle fixes (#4235) 2022-09-07 15:25:17 -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 01fbd0f5ef use go1.18 alpine image (#4228) 2022-08-30 08:18:40 -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.
RELEASE.2022-08-28T20-08-11Z
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
Aditya Manthramurthy 9f24a19aa8 Fix config parsing with updated madmin helper (#4220) 2022-08-24 23:33:40 -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`
RELEASE.2022-08-23T05-45-20Z
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 8c239d16aa Update madmin dep to fix a crash (#4215) 2022-08-18 09:53:41 -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
Anis Elleuch 7a276b6111 Update github.com/minio/cli version (#4192) 2022-08-15 19:05:49 -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`
RELEASE.2022-08-11T00-30-48Z
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
Harshavardhana c2f1770cec update minio-go/v7 v7.0.34 (#4203)
fixes #4202
2022-08-10 11:15:32 -07:00
Krishnan Parthasarathi d691fc4c9f Add trace support for decommissioning (#4195) 2022-08-10 10:14:21 -07:00
Harshavardhana c307963422 upgrade CI/CD go1.19 (#4204) 2022-08-10 08:46:41 -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