Commit Graph
1004 Commits
Author SHA1 Message Date
Prakash Senthil Vel 276e1db70d Error message when update failing due to permissions (#4057) 2022-04-26 04:30:21 -07:00
Anis Elleuch 162609d6d0 info: Add the count of total versions details (#4060)
admin info command will show the total number of versions of a
deployment, if available.
2022-04-25 22:05:56 -07:00
Ashish Kumar Sinha cc4ff3a0cc Remove cpuio as default in profiling (#4056) 2022-04-19 08:54:41 -07:00
Nick Doornekamp 0530f5a471 Update documentation for --older/newer-than flags (#4039) 2022-04-16 08:10:14 -07:00
Anis Elleuch 606cdd3453 Load proxy config when probing for server TLS certificate (#4052)
mc alias set recently started to probe the TLS certificate for
the remote server, however it should load the proxy environment
configuration if any.
2022-04-15 16:49:57 -07:00
Anis Elleuch 1187be0ad2 mirror: Do not create remote bucket with --dry-run (#4054)
In a site wide mirroring, non existing buckets in the destination site
are still created if --dry-run is passed. This commit will avoid this.

This commit also prints a mirror message of the newly created buckets
in a site wide mirroring.
2022-04-15 16:49:28 -07:00
Anis Elleuch 6a61b286b1 mirror: Stop minio-go bucket listen when watch is cancelled (#4053)
When mirror in --watch mode is restarted, the previous minio-go
ListenNotification/ListenBucketNotification call is not properly
canceled. This commit creates a new context for that listen call and
cancels it when client-s3 Watch() is asked to be stopped.
2022-04-15 16:49:13 -07:00
Harshavardhana 792c6c1475 update minio-go/v7, minio/pkg deps 2022-04-15 00:38:49 -07:00
Ashish Kumar Sinha 1a504e6e64 Replace fake with dry-run (#4050) 2022-04-14 06:49:57 -07:00
Gabriel Dolberg 8e6b9c8a49 fix usage message wording (#4048) 2022-04-13 13:27:25 -07:00
Ashish Kumar Sinha 8df32e87d6 Add mutex, threads and cpuio as default in profiling (#4046) 2022-04-12 00:08:34 -07:00
jinapurapu 45c6f376c4 Error handling for remove alias request if alias not found (#4017) 2022-04-11 13:26:40 -07:00
Anis Elleuch 3f0953f9f4 Do not rely on contentCh to print removal messages (#4041)
Removal is an asynchrounous operation. We should not use structures that
we send to the removal goroutine and use them in removal messages.
2022-04-07 11:52:55 -07:00
Shireesh Anjal dbc09a8bf0 Get speedtest results as part of support diag (#4034)
Also remove the `--full` flag and run the new perf tests (that run quite
fast) always (if the minio version supports it).

In case of older versions of minio that have the older versions of the
performance tests, mc will not request for those tests to be run, and
subsequently will not look for their results in the response.
2022-04-07 08:12:51 -07:00
Daniel Valdivia 42bb4df233 Simplify mc ilm ls (#4042)
Signed-off-by: Daniel Valdivia <hola@danielvaldivia.com>
2022-04-05 12:56:01 -07:00
Anis ElleuchandAnis Elleuch d9feb87286 Compute bucket/object correctly for some endpoints (#4040)
Removing an old code that calculates incorrectly the bucket and object
from the client-s3.targetURL. The old code assumed that
client-s3.targetURL can have this style
http://bucket.endpoint/prefix/object but this is not true.

client-s3.targetURL will always have this endpoint style
https://endpoint/bucket/object whenever vhost is enabled or not for a
given alias.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-04-04 18:47:08 -07:00
Anis ElleuchandAnis Elleuch 661afae983 mirror: Do not exit upon errors when --watch is passed (#4032)
Currently, when mirror is not able to copy an object (e.g. corrupted)
and watch is specified, mirror will restart mirroring again to stop
again at the same problematic object.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-04-02 16:16:34 -07:00
Anis ElleuchandAnis Elleuch 033969a0bf rm: Fix sending an object/version to removal with --no-current flag (#4038)
Do no miss sending object/version to contentCh when there is deletion
result available.

This commit fixes issues seen when some objects/versions are not deleted
when --no-current is passed.

Co-authored-by: Anis Elleuch <anis@min.io>
2022-04-02 16:14:23 -07:00
PoornaandPoorna Krishnamoorthy 5a3ad93ab9 `mc rm --non-current should remove top level deletemarker (#4037)
Earlier commit #8eae2e3bbfafe952ecb33904c0d9073871a32169 reverted
this behavior, bringing it back

Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
2022-04-01 16:39:16 -07:00
PoornaandPoorna Krishnamoorthy dc2a851b54 Make sure to print mc rm dry run message (#4033)
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
2022-04-01 01:19:02 -07:00
PoornaandPoorna Krishnamoorthy 8eae2e3bbf Fix mc rm --non-current to use --older-than filter if specified (#4030)
This PR also changes the interpretation of --non-current flag to delete
all non current versions that qualify irrespective of whether top level
version is a delete marker.

Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
2022-03-30 16:21:42 -07:00
Shireesh Anjal 4d7b58bac5 Fix message in admin subnet health (#4019) 2022-03-30 12:03:50 -07:00
Gabriel Dolberg 9c34f6c94b Typo: Fix error messages on service account operations (#4026) 2022-03-30 11:55:55 -07:00
Poorna d6ffdbc8fb admin trace: convert trace type to string in json fmt (#4029) 2022-03-25 01:52:53 -07:00
Harshavardhana 84a7b83eda use globalRootCAs always do not initialize new certPools
automatic prompt for certs broke system trusted tls endpoints
since it ignored the currently loaded certs as trusted.

if they are available and we can establish TLS we should
proceed instead of failing and asking users to always use
`--insecure`
2022-03-17 12:56:43 -07:00
Anis Elleuch de063f9252 Fix alias add when --insecure is passed in a non tty (#4025)
--insecure does not have an effect when running mc in a non-terminal. This
commit fixes the behavior by ignoring the prompt from trusting self
signed certificate when --insecure is passed as well.
2022-03-17 10:35:24 -07:00
Harshavardhana b01f48836a replicate add should enable all replication types by default (#4021)
fixes #4020
2022-03-16 13:06:05 -07:00
Andreas Auernhammer 3252573ed2 alias: fetch peer certificate when adding an alias (#4010)
This commit adds an extension to the `alias set`
command. When adding an alias fails due to a TLS
trust error - i.e. remote peer certificate verification
fails - `mc` fetches the remote peer certificate,
computes the public key fingerprint and asks the user
to confirm the fingerprint.

When the user confirms the fingerprint, the certificate
is added to the `CAs` directory.

This allows users to use a TOFU authentication with
self-signed certificates - similar to SSH.

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
2022-03-16 10:00:25 -07:00
Anis Elleuch 0f31ce23b9 mv: Fix regression when checking lock in target bucket (#4015)
A recent commit changed the behavior of client-s3.GetObjectLockConfig()
without properly checking the behavior of the callers introducing a bug
during mv command where the target is an S3 server.

Add some tests for the mc mv command as well.
2022-03-11 15:10:02 -08:00
Anis Elleuch 869c875967 svcacct: Show successful message after deletion (#4016)
Fix some typo that prevented the command to print a success message
when a service account is deleted.
2022-03-11 15:09:46 -08:00
Poorna bd00af5a71 Allow remote target endpoint to point to different host (#4012) 2022-03-08 17:42:16 -08:00
Krishna Srinivas def1988b92 Implement "mc support perf net" for network throughput test (#3998) 2022-03-08 11:30:42 -08:00
Harshavardhana f13defa545 update some wording and docs under tier commands (#4007) 2022-03-01 17:12:26 -08:00
Shireesh Anjal a7a9b65237 Remove --schedule flag from support diag command (#4003)
Going forward, periodic upload of diagnostics is not expected to be
performed using the `support diag` command.
2022-03-01 10:53:59 -08:00
Anis Elleuch 88b984a6e2 more validation for retention commands (#4004) 2022-03-01 10:53:43 -08:00
Krishnan Parthasarathi 9aa7712c43 Add support for tier-rm/tier-verify (#3996) 2022-03-01 10:53:09 -08:00
supriyo-biswas 9de0045882 Quote special characters in share curl command (#4000)
* Quote special characters in share curl command
* Add testcases and other unsafe chars
2022-02-28 12:25:19 -08:00
Anis Elleuch cce6451b63 watch: Clean up watch when restarting mirror after an error (#3993)
Add cleanup for watch code when it exits and mirroring is restarted.
2022-02-25 20:15:21 -08:00
Harshavardhana a1d6c3d4af remove trimming of top level path 2022-02-25 18:10:25 -08:00
Klaus Post 5488be0c8b Add cpuio profile type (#3988) 2022-02-25 10:46:22 -08:00
jinapurapu 9cf722a3aa Updated help text to clarify alias (#4001) 2022-02-24 16:04:29 -08:00
Anis Elleuch 096fbbf24a mirror: Proper cleanup after exit (#3994) 2022-02-24 14:24:22 -08:00
Harshavardhana af342c3780 update wording of svacct command line 2022-02-24 13:31:00 -08:00
Krishnan Parthasarathi 2cae86c783 tier-info: Add bar charts for 24hr dailys tier-stats (#3928) 2022-02-24 12:51:21 -08:00
Harshavardhana dec8d91dbc fix: rename 'perf drives' to 'perf drive' (#3991) 2022-02-22 10:13:07 -08:00
Shireesh Anjal f4f5932d3f Add mc support callhome get command (#3986)
* Add `mc support callhome get` command

Will print all the callhome settings (currently just `logs=on|off`)

* Rename retrieveCallhomeSetting to printCallhomeSetting

As it doesn't need to return anything, and only prints the setting.
2022-02-21 15:47:31 -08:00
Anis Elleuch 3902b3b03f Refactor profiling and add goroutines (#3992)
Running mc like this,

`MC_PROFILER=mem,goroutine mc ...` will start profiling and save
profiling data when mc quits with Control-C.
2022-02-21 14:50:51 -08:00
Harshavardhana c7a8815414 fix: rm should reject --non-current with --recursive (#3987) 2022-02-18 02:59:34 -08:00
Shireesh Anjal 99bdf20c64 Remove cli flag subnet-proxy (#3989)
System now supports setting the subnet proxy as a config, so the command
line flag is not required anymore.
2022-02-17 11:05:53 -08:00
Harshavardhana c5e56141bd fix: admin info output for multiple pools (#3985)
fixes #3984
fixes #3976
2022-02-16 10:35:24 -08:00