Commit Graph
4144 Commits
Author SHA1 Message Date
Dean Kleissas 385bc1b23a Set default value for --event flag of omitted (#3752) 2021-12-21 02:16:36 -08:00
Ravind Kumar 0b2f0c9b48 Fix mc ilm restore --help (#3897) RELEASE.2021-12-20T23-43-34Z 2021-12-20 14:23:47 -08:00
Krishnan Parthasarathi 409ccc7c07 Update go.mod to include NewerNoncurrentVersions support (#3898)
With this `mc ilm import` accepts NewerNoncurrentVersions tag.
2021-12-20 14:23:35 -08:00
Anis Elleuch 7bd5c343f7 heal: Show healed objects count even if healing start time is unknown (#3896)
mc summary should still show some information when some disks report
healing in progress but without started time.
RELEASE.2021-12-16T23-38-39Z
2021-12-16 08:36:38 -08:00
Anis Elleuch 68a9e3f52e ux: Fix admin heal display with multiple zones (#3893)
mc admin heal was showing additional unnecessary entries 
of nodes with empty disks listing when that node does not 
belong to the current pool number. A node only belongs to 
one pool, so remove the extra entries.
2021-12-14 09:43:38 -08:00
Aditya Manthramurthy 7031efb55a Update admin policy/user commands with new policy info API (#3877)
will support older minio versions as well
2021-12-11 09:04:32 -08:00
Harshavardhana 2d516d350a Allow specifying many aliases in MC_CONFIG_ENV_FILE (#3885)
Allows for getting ENV secrets remotely, or from
secure vault secrets.
2021-12-11 08:29:11 -08:00
Harshavardhana 2a84f0f1f9 disable IPv6 locally for all interfaces before docker build 2021-12-09 17:51:31 -08:00
Harshavardhana 9bdd7660f6 remove support for go1.16 RELEASE.2021-12-10T00-14-28Z 2021-12-09 12:16:18 -08:00
Shireesh Anjal b6c50a92a1 Use subnet api key instead of license (#3876)
The earlier approach of using a license token for communicating with
SUBNET is being replaced with a simpler mechanism of API keys. Unlike
the license which is a JWT token, these API keys will be simple UUID
tokens, and don't have any embedded information in them. SUBNET would
generate the API key on cluster registration, and return in the API
response. mc then stores it in the `subnet api_key` config of minio,
to be used for subsequent communication with SUBNET.

In case the api_key is not available in the config, but the cluster's
license is available, it will be used as auth in the subnet API call,
and api_key will be set after the call succeeds. This will help in
smooth migration from older versions of MinIO.
2021-12-09 09:40:27 -08:00
Krishnan Parthasarathi 23a05f5a17 Update ilm-add examples (#3884)
Hide date options like expiry-date and transition-date to 
avoid unintended consequences explained here -
  
https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html#intro-lifecycle-rules-actions
  
> If you specify an S3 Lifecycle action with a date that is in the past, 
> all qualified objects become immediately eligible for that Lifecycle action.
2021-12-07 15:06:06 -08:00
Anis Elleuch bd7a49f500 tags: Show how to assign two tags to an object (#3881)
mc cp --tags is able to assign more than one tag to an object, 
enhance the example to show that.
2021-12-06 09:39:13 -08:00
Harshavardhana 8a207df2ab avoid double formatting svacct policy (#3878) 2021-12-02 08:48:13 -08:00
Krishnan Parthasarathi cb73b76c81 Add tier-info command for tier-specific stats (#3827) 2021-11-29 09:10:00 -08:00
Anis Elleuch e84871950a speedtest: Ask the user to increase duration with empty result. (#3875)
Sometimes, with slow machines, speedtest will not able to accomplish
any PUT/GET operations though no errors is met. In that case, this
commit will show an adequate error message asking the user to increase
the --duration flag.
2021-11-29 09:05:33 -08:00
Anis Elleuch a064265d0c svcacct: Validate policy document and error out if needed (#3873) 2021-11-27 14:47:48 -08:00
Harshavardhana 4793c40bf6 remove HTML tags from README.md 2021-11-22 00:42:08 -08:00
Harshavardhana 18a579da0b Set theme jekyll-theme-minimal 2021-11-22 00:37:50 -08:00
Shireesh Anjal df75eed32e Use latest version of madmin-go (#3866)
It contains a new field `TLSInfoAvailable` which will get added under
the `tls` node in health report, helping `health-analyzer` perform the
TLS related checks more reliably.
2021-11-18 14:30:26 -08:00
Harshavardhana 26e7e49cd7 honor cgroup memory limits in parallel-manager (#3871) 2021-11-18 14:30:02 -08:00
Shireesh Anjal d0c62eb584 Fix health upload to subnet failing (#3870)
The writer needs to be closed before creating the request. Otherwise the
call to subnet api fails with error like:

HTTP/1.x transport connection broken: http: ContentLength=6235 with Body length 6303.
RELEASE.2021-11-16T20-37-36Z
2021-11-16 08:37:08 -08:00
Harshavardhana 3a4e469334 feat: detect starting from windows explorer (#3869)
Windows users often click on the binary without
knowing `mc` is a command-line tool and should be
run from a terminal. Throw a message to guide them
on what to do.
2021-11-16 00:21:48 -08:00
Harshavardhana ae66e893c7 with --force flag no need for exit code (#3868)
fixes #3673
2021-11-15 10:00:12 -08:00
ebozduman 7fd441ec6c Removes Windows path adjustment for prefixes (#3614) 2021-11-14 21:21:00 -08:00
Krishnan Parthasarathi 6460d2facf Update go.mod to include support for MaxNoncurrentVersions (#3863) 2021-11-12 16:18:15 -08:00
Harshavardhana b2ff347c69 cleanup 'admin health' command (#3862)
- reach subnet, upon failure provide `--airgap` command line
  to allow them to upload report manually.

- use a proper httpClient when reaching out to subnet
  with a 10sec timeout, and also support custom proxies
  with self signed certs.

- also fix some error messages and cleanup help with correct
  wording and grammar.
2021-11-12 09:34:29 -08:00
Shireesh Anjal b882f3e484 Better message on reset of dynamic config (#3861)
When a dynamic config is reset, the minio api response has `true` as
value of the header `x-minio-config-applied`. In such cases, mc should
not show the message asking the user to restart `minio`.
2021-11-11 06:49:13 -08:00
Shireesh Anjal 1461b652d9 Introduce admin health command (#3847)
It will be a hidden command and will behave 
exactly same as `mc admin subnet health`

Also, remove the deprecated command `admin subnet obd`
2021-11-09 16:36:02 -08:00
Poorna K a776222b33 Uppercase tier name in admin tier add cmd (#3849) 2021-11-09 16:35:32 -08:00
Harshavardhana e7c79413d7 fallback to bucket retention info for only bucket names (#3860) 2021-11-08 09:49:56 -08:00
Harshavardhana 9b5d0ba1ef update Dockerfile files 2021-11-05 03:29:49 -07:00
Harshavardhana 9f6b500142 update go.sum RELEASE.2021-11-05T10-05-06Z 2021-11-04 23:51:20 -07:00
Krishna Srinivas 9e8fea96ca Show live updates for speedtest (#3855) 2021-11-04 23:50:28 -07:00
Robert LütznerandRobert Lützner 6e1d044f91 admin-trace: Add missing asterisk to --path example in usage (#3857)
Limiting tracing to a specific path requires an asterisk at the end. I
don't know if this is a regression or the example was always wrong. I
only ever figured this out by trial and error.

This fixes #3856.

Co-authored-by: Robert Lützner <robert.luetzner@iternity.com>
2021-11-03 09:34:32 -07:00
Shireesh Anjal c0cfc9c507 Fix usage validation in mc admin service restart (#3859)
The command needs exactly one argument, but was allowing two and
ignoring the second if passed. Fixed the validation.

Signed-off-by: Shireesh Anjal <shireesh@minio.io>
2021-11-03 09:33:01 -07:00
Shireesh Anjal 905502e311 Fix subnet health crash on passing invalid flag (#3858)
The custom `String()` function written for the `HealthDataTypeFlag` was
resulting in a crash as it did not contain `\t` character on which the
usage gets split when printing the error message.

Fixed by reusing the `FlagStringer` from cli package, which is used by StringFlag.String() as well.
2021-11-03 09:32:36 -07:00
Poorna KandPoorna Krishnamoorthy 14303ec6cf fix --disable-proxy flag in admin bucket remote add command (#3851)
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
2021-10-29 12:05:56 -07:00
Harshavardhana 7866f97ef5 Revert "Remove unused Transport option. (#3818)"
This reverts commit bc69976481.

This option is used by console
2021-10-26 19:49:40 -07:00
Harshavardhana 6339784743 update gjson to avoid CVE-2021-42836 2021-10-25 20:56:15 -07:00
Shireesh Anjal b9bfcb50a3 Fix subnet login during registration not working (#3841)
Subnet doesn't return `ContentLength` in it's api response, and hence
using it as the limit with `LimitReader` doesn't work. Fixed by using a
sufficiently large (1 MiB) limit.
2021-10-20 21:15:00 -07:00
Shireesh Anjal b493f01699 Update go.mod to use latest version of madmin-go (#3839)
So that the TLS config related data gets added in the health report.
2021-10-20 10:26:36 -07:00
Shireesh Anjal e45d648ce9 Rename --offline flag to --airgap (#3837)
Retain `--offline` as hidden for backward compatibility (won't show up
in help)
2021-10-18 09:49:52 -07:00
Aditya Manthramurthy 3177a62819 Add functional tests to test sanity of users in internal IDP (#3838) 2021-10-18 08:41:14 -07:00
Harshavardhana ae271e7645 add new linters and fix unnecessary type conversions (#3835) 2021-10-14 15:33:31 -07:00
Klaus Post 0eef0174a7 inspect: Save data unencrypted by default (#3832)
By default decrypt the data. Add `--encrypt`.
2021-10-12 11:49:49 -07:00
Daniel Jakots b880f09931 fix: build on 32-bit systems (#3732) 2021-10-12 02:08:54 -07:00
Ori Hoch 6047ef858a fixes minio/mc#3830 servers without lock returns locking disabled (#3831) 2021-10-11 14:26:23 -07:00
Shireesh Anjal e4d4bf6641 Add register sub-command to mc admin subnet (#3808)
By default, it will run in `online` mode and try to register the cluster
on subnet. If the subnet license is not available in minio/mc config, it
will

- ask the user for login credentials
- use the credentials for authentication and call the registration api
- get the license from response of the api and store it in config
- use the stored license for any subsequent calls

In case the user belongs to multiple organizations in subnet, they will
be prompted to choose the appropriate organization from the list.

If the client machine is in an airgapped environment, user can choose to
use the `--offline` flag when running the command. In this case, it will

- generate and print the registration token
- ask the user to paste it in the subnet registration screen
- accept the license generated by subnet and store it in config

As part of this work, the `health` sub-command is also enhanced to:
- run in `online` mode by default, which tries to upload the health
report to subnet. Here the user will be prompted for subnet credentials
(if license not available in config) _before_ generating the health
report as it is a long running process.
- support a new flag `--offline` which can be used when subnet is not
reachable. When used, the health report will be generated in a local
json.gz file, which can then be uploaded on subnet.

The examples in help text of both the sub-commands are enhanced to list
multiple use cases.

When saving license to config, first preference is given to minio
config. If the minio server supports the `subnet license` key, the
license will be stored here. In case it is an older version of minio
that doesn't support this key, then the license will be stored in mc
host config.
2021-10-07 11:20:28 -07:00
Aditya Manthramurthy 198bca9cdf Add new admin replicate subcommand (#3810)
This change adds support for enabling site replication
RELEASE.2021-10-07T04-19-58Z
2021-10-06 16:57:01 -07:00
Krishnan Parthasarathi 054cfa0103 ilm-edit: Accept zero days for transition (#3824) 2021-10-06 13:34:41 -07:00