Anthony Romano
2cd3a3bd59
etcdctl: improve error message on migration without v2 keys
...
Fixes #5478
2016-05-30 19:14:04 -07:00
Gyu-Ho Lee
c43e59338f
etcdctl/ctlv3: remove mvccpb.EXPIRE in mirror cmd
2016-05-29 15:11:29 -07:00
Gyu-Ho Lee
5cba7080bc
etcdctl/ctlv3: protobuf write-out for member list
...
Fix https://github.com/coreos/etcd/issues/5297 .
2016-05-25 22:23:57 -07:00
Gyu-Ho Lee
86591d64c5
etcdctl: doc member list, others protobuf output
2016-05-25 22:17:45 -07:00
Xiang Li
628a38d906
etcdctl: add migrate command into readme
2016-05-19 16:53:47 -07:00
Xiang Li
6f2e7875aa
etcdctl: add migrate command
...
Migrate command accepts a datadir and an optional user-provided
transformer function that transform v2 keys to v2 keys.
Migrate command then builds a v3 backend state based on the existing
v2 keys and the output of the transformer function.
2016-05-19 12:17:15 -07:00
Hitoshi Mitake
6259318521
*: attach auth token as a gRPC credential
...
This commit adds a functionality of attaching an auth token to gRPC
connection as a per RPC credential.
For doing this, this commit lets clientv3.Client.Dial() create a
dedicated gRPC connection for doing authentication. With the dedicated
connection, the client calls Authenticate() RPC and obtain its
token. The token is attached to the main gRPC connection with
grpc.WithPerRPCCredentials().
This commit also adds a new option --username to etcdctl (v3). With
this option, etcdctl attaches its auth token to the main gRPC
connection (currently it is not used at all).
2016-05-17 13:26:12 +09:00
Anthony Romano
798718c49b
etcdctl: verify snapshot hash on restore
...
Fixes #4097
2016-05-16 12:08:08 -07:00
Gyu-Ho Lee
3ec627d1a8
etcdctl/ctlv3: allow empty key
...
Fix https://github.com/coreos/etcd/issues/5323 .
2016-05-13 11:29:58 -07:00
Anthony Romano
393725fe5f
clientv3/concurrency: ctx-ize Leader(), Resign(), and Unlock()
2016-05-13 10:07:35 -07:00
Gyu-Ho Lee
c538e0f9a9
etcdctl: update LICENSE header
2016-05-12 20:51:39 -07:00
Anthony Romano
dcb3b7aecf
*: scrub legacy ports from code and scripts
2016-05-11 13:46:30 -07:00
Anthony Romano
db8f5771f1
doc: scrub legacy ports and TLS information for v3
2016-05-11 13:46:29 -07:00
Ajit Yagaty
23f9d72870
etcdctl: Add --wal-dir and --backup-wal-dir options to backup command.
...
If the WAL is stored in a separate directory then the backup command
would need a --wal-dir option to pick the path to the WAL directory.
The user might also want to store the backup of data and wal separately
for which --backup-wal-dir option is provided.
2016-05-10 18:38:56 -07:00
Gyu-Ho Lee
62a9209088
etcdctl/ctlv2: total-timeout for Sync
...
Fix https://github.com/coreos/etcd/issues/4897 .
2016-05-10 14:20:05 -07:00
Gyu-Ho Lee
3e088b3b40
etcdctl/ctlv3: make 'table' printer configurable
...
Fix https://github.com/coreos/etcd/issues/5296 .
2016-05-10 10:02:02 -07:00
Ajit Yagaty
adc981c53d
auth: Adding support for "auth disable" command.
...
Added support for the auth disable command in the server, added the
etcdctl command and a respective testcase.
2016-05-07 19:21:49 -07:00
Gyu-Ho Lee
01927cc26a
*: remove v2 specific authentication doc
2016-04-27 11:30:51 -07:00
Rob Holland
a00be40db2
etcdctl: Add a newline so that errors don't bleed into each other.
2016-04-27 14:25:57 +01:00
Anthony Romano
b7ac758969
*: rename storage package to mvcc
2016-04-25 15:25:51 -07:00
Gyu-Ho Lee
3ad8e91e00
*: fix flag location, minor typo
2016-04-25 09:41:11 -07:00
Gyu-Ho Lee
53abaf86c6
etcdctl/ctlv3: close bolt.DB in snapshot status
2016-04-22 11:43:52 -07:00
Anthony Romano
d2a58cbb0a
etcdctl: print full json response for Get
...
Otherwise parsing get/txn output with json is somewhat complicated
because in some cases there's a json message and sometimes not.
Likewise, a get on an absent key has to return the current revision for
some algorithms to work.
2016-04-20 09:56:32 -07:00
Xiang Li
bf9cccfc34
Merge pull request #5118 from ajityagaty/fsync_osx
...
fileutil: Sync on HFS/OSX needs to be handled differently.
2016-04-18 22:22:53 -07:00
Ajit Yagaty
8b6de5f85d
fileutil: Sync on HFS/OSX needs to be handled differently.
...
A call file.Sync on OSX doesn't guarantee actual persistence on
physical drive media as the data can be cached in physical drive's
buffers. Hence calls to file.Sync need to be replaced with
fcntl(F_FULLFSYNC).
2016-04-18 21:49:04 -07:00
Gyu-Ho Lee
8a0fa5622e
Merge pull request #5114 from gyuho/snapshot_test
...
*: add Snapshot e2e test
2016-04-18 09:27:07 -07:00
Ajit Yagaty
68dd22d93d
etcdctlv3: Fix for typo in alarm command handling.
2016-04-17 19:31:39 -07:00
Gyu-Ho Lee
a2afb513dd
*: add snapshot e2e test
2016-04-16 13:27:10 -07:00
Amit Kumar Gupta
c629a30f1f
etcdctl: unset ETCDCTL_API env var properly
2016-04-15 15:43:00 -07:00
Gyu-Ho Lee
a78ece4ac2
etcdctl: snapshot status error for non-existent file
2016-04-15 14:15:16 -07:00
Anthony Romano
cd05ac4217
doc: document many etcdctl commands
...
documents defrag, compaction, lease, snapshot status, member, endpoint
2016-04-13 21:50:59 -07:00
Anthony Romano
f07350735d
etcdctl: respect --write-out=json for endpoint status command
2016-04-13 17:04:31 -07:00
Gyu-Ho Lee
e9aa8ff235
Merge pull request #5071 from gyuho/member_api_change
...
*: Member api change
2016-04-13 16:45:10 -07:00
Anthony Romano
3dcfe79cc0
Merge pull request #5070 from heyitsanthony/member-doc
...
etcdctl: display required arguments for member commands in usage
2016-04-13 16:40:16 -07:00
Gyu-Ho Lee
2c6176b5f2
*: remove MemberLeader API in client side (fix examples)
2016-04-13 16:23:57 -07:00
Anthony Romano
90df7fd738
etcdctl: display required arguments for member commands in usage
2016-04-13 16:18:00 -07:00
Anthony Romano
22812badc2
Merge pull request #5069 from heyitsanthony/fix-snapshot-status-json
...
etcdctl: respect -write-out=json for snapshot status
2016-04-13 15:57:39 -07:00
Anthony Romano
b90e30b28e
etcdctl: respect -write-out=json for snapshot status
2016-04-13 13:37:32 -07:00
Anthony Romano
a553ea8ba7
Merge pull request #5068 from heyitsanthony/lease-fixups
...
etcdctl: improve lease command documentation and exit codes
2016-04-13 13:20:06 -07:00
Anthony Romano
993f25f055
Merge pull request #5065 from heyitsanthony/errexit-defrag
...
etcdctl: return non-zero exit code if defrag fails on any endpoint
2016-04-13 13:19:43 -07:00
Anthony Romano
721ed6ba2b
etcdctl: return non-zero exit code if defrag fails on any endpoint
2016-04-13 12:39:43 -07:00
Anthony Romano
855a5116a2
etcdctl: improve lease command documentation and exit codes
2016-04-13 12:38:21 -07:00
Gyu-Ho Lee
60548b85c4
*: add rev flag to get command
2016-04-13 11:32:29 -07:00
Xiang Li
ae9b251d99
etcdctl: move endpoint-heath and status into endpoint command
2016-04-12 16:30:26 -07:00
Anthony Romano
a12fd9cc92
etcdctl: print grant/revoke error instead of scanning roles for changes
...
Fixes #5045
2016-04-12 10:49:05 -07:00
mqliang
ff311ba0a7
etcdctlv3: print db size and raft status in 'etcdctl status' command
2016-04-12 22:58:22 +08:00
Xiang Li
b5292f6fce
etcdctl: add snapshot status support
2016-04-11 22:55:47 -07:00
Anthony Romano
8c2225f251
Merge pull request #5038 from heyitsanthony/sshot-docs
...
doc: document etcdctl snapshot command
2016-04-11 16:21:09 -07:00
Anthony Romano
e5a2bd58ec
etcdctl: respect --write-out
...
Support got clobbered about a month ago.
2016-04-11 16:01:38 -07:00
Anthony Romano
6e8d01f956
doc: document etcdctl snapshot command
2016-04-11 15:58:20 -07:00