Jonathan Sokolowski
72f37ff79a
embed: Clear default initial cluster
...
NewConfig() should sets initial cluster from name but we should clear it
in the event that another discovery option has been specified.
Fixes #7516
2017-03-18 07:56:18 -07:00
Gyu-Ho Lee
3221454cab
etcdserver: remove possibly compacted entry look-up
...
Fix https://github.com/coreos/etcd/issues/7470 .
This patch removes unnecessary term look-up in
'createMergedSnapshotMessage', which can trigger panic
if raft entry at etcdProgress.appliedi got compacted
by subsequent 'MsgSnap' messages--if a follower is
being (in this case, network latency spikes) slow, it
could receive subsequent 'MsgSnap' requests from leader.
etcd server-side 'applyAll' routine and raft's Ready
processing routine becomes asynchronous after raft
entries are persisted. And given that raft Ready routine
takes less time to finish, it is possible that second
'MsgSnap' is being handled, while the slow 'applyAll'
is still processing the first(old) 'MsgSnap'. Then raft
Ready routine can compact the log entries at future
index to 'applyAll'. That is how 'createMergedSnapshotMessage'
tried to look up raft term with outdated etcdProgress.appliedi.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-18 07:56:18 -07:00
Anthony Romano
4a1bffdbc6
clientv3: close open watch channel if substream is closing on reconnect
...
If substream is closing but outc is still open while reconnecting, then outc
would only be closed once the watch client would connect or once the watch
client is closed. This was leading to deadlocks in the proxy tests. Instead,
close immediately if the context is canceled.
Fixes #7503
2017-03-18 07:56:18 -07:00
Anthony Romano
9d9be2bc86
ctlv3: ensure synced member list before printing env vars on member add
...
In cases of multiple endpoints, it's possible member add would get a its
member list from a member that has not yet recognized the membership
update. Instead, confirm that the member list response is from the
member that acked the member add or from a member that has synced
with the cluster following the member add.
Fixes #7498
2017-03-18 07:56:18 -07:00
Gyu-Ho Lee
e5462f74f1
auth: get rid of deadlocking channel passing scheme in simpleTokenTTL
...
Cherry-picked from 1b1fabef8f
.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-18 07:56:05 -07:00
Gyu-Ho Lee
c68c1d9344
discovery: fix print format
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-17 14:21:57 -07:00
Anthony Romano
6ed56cd723
auth: nil check AuthInfo when checking admin permissions
...
If the context does not include auth information, get authinfo will
return a nil auth info and a nil error. This is then passed to
IsAdminPermitted, which would dereference the nil auth info.
2017-03-17 14:21:39 -07:00
Gyu-Ho Lee
a3c6f6bf81
version: bump up to 3.1.3+git
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-17 14:21:15 -07:00
Gyu-Ho Lee
21fdcc6443
version: bump up to 3.1.3
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
v3.1.3
2017-03-10 09:05:16 -08:00
Gyu-Ho Lee
8d122e7011
etcdmain: SdNotify when gateway, grpc-proxy are ready
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-09 11:35:20 -08:00
Gyu-Ho Lee
ade1d97893
lease: guard 'Lease.itemSet' from concurrent writes
...
Fix https://github.com/coreos/etcd/issues/7448 .
Affected if etcd builds with Go 1.8+.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-08 14:50:06 -08:00
Boris Dudelsack
1300189581
gateway: fix the dns discovery method
...
strip the scheme from the endpoints to have a clean hostname for TCP proxy
Fixes #7452
2017-03-08 14:49:50 -08:00
Anthony Romano
1971517806
etcdctl: correctly batch revisions in make-mirror
...
Fixes #7410
2017-03-06 14:55:47 -08:00
Gyu-Ho Lee
d614bb0799
etcdmain: log machine default host after update check
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:55:31 -08:00
Gyu-Ho Lee
059dc91d4c
embed: use machine default host only for default value, 0.0.0.0
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:55:24 -08:00
Gyu-Ho Lee
5fdbaee761
version: bump up to 3.1.2+git
2017-02-24 10:34:53 -08:00
Gyu-Ho Lee
714e7ec8db
version: bump up to 3.1.2
v3.1.2
2017-02-22 10:45:48 -08:00
Anthony Romano
2cdaf6d661
netutil: use ipv4 host by default
...
Was non-deterministic.
2017-02-22 10:45:38 -08:00
Gyu-Ho Lee
77a51e0dbf
pkg/netutil: name GetDefaultInterfaces consistent
2017-02-22 10:45:29 -08:00
felixoid
d96d3aa0ed
netutil: add dualstack to linux_route
...
in v3.1.0 netutil couldn't get default interface for ipv6only hosts
Fixes #7219
2017-02-22 10:45:19 -08:00
Anthony Romano
66e7532f57
pkg/netutil: use native byte ordering for route information
...
Fixes #7199
2017-02-22 10:45:07 -08:00
Anthony Romano
3eff360e79
pkg/cpuutil: add cpuutil
...
A package for unsafe cpu-ish things.
2017-02-22 10:44:59 -08:00
Gyu-Ho Lee
1487071966
integration: add 'TestV3HashRestart'
2017-02-22 10:39:49 -08:00
Gyu-Ho Lee
5d62bba9c7
auth: keep old revision in 'NewAuthStore'
...
When there's no changes yet (right after auth
store initialization), we should commit old revision.
Fix https://github.com/coreos/etcd/issues/7359 .
2017-02-22 10:39:28 -08:00
Anthony Romano
114e293119
integration: test keepalives for short TTLs
2017-02-22 10:38:38 -08:00
Anthony Romano
1439955536
clientv3: do not set next keepalive time <= now+TTL
2017-02-22 10:38:28 -08:00
Anthony Romano
2c8ecc7e13
tcpproxy: don't use range variable in reactivate goroutine
...
Ends up trying to reactivate only the last endpoint.
2017-02-22 10:38:19 -08:00
Dylan.Wen
7b4d622a7e
raft: fix read index request for #7331
2017-02-22 10:38:09 -08:00
Gyu-Ho Lee
db8abbd975
version: bump to 3.1.1+git
2017-02-21 17:00:02 -08:00
Gyu-Ho Lee
ac1c7eba21
version: bump up to 3.1.1
v3.1.1
2017-02-16 13:53:25 -08:00
Gyu-Ho Lee
9cc6d4852a
travis: update for Go 1.7.5 tests
2017-02-16 13:53:05 -08:00
Xiang
ff7fa9843d
clientv3: fix lease keepalive duration
2017-02-16 13:52:27 -08:00
Xiang
f66138d403
clientv3: fix lease keepalive duration
2017-02-16 12:41:09 -08:00
Gyu-Ho Lee
8c87916f68
auth: add 'setupAuthStore' to tests
2017-02-14 14:39:51 -08:00
Hitoshi Mitake
9e81b002c4
auth: correct initialization in NewAuthStore()
...
Because of my own silly mistake, current NewAuthStore() doesn't
initialize authStore in a correct manner. For example, after recovery
from snapshot, it cannot revive the flag of enabled/disabled. This
commit fixes the problem.
Fix https://github.com/coreos/etcd/issues/7165
2017-02-14 13:49:19 -08:00
Hitoshi Mitake
4962c5cff7
auth: add a test case for recoverying from snapshot
...
Conflicts:
auth/store_test.go
2017-02-14 13:48:17 -08:00
Hitoshi Mitake
e5bf25a3b6
e2e: add cases for defrag and snapshot with authentication
2017-02-14 13:43:11 -08:00
Hitoshi Mitake
98c60e8faa
auth, etcdserver: let maintenance services require root role
...
This commit lets maintenance services require root privilege. It also
moves AuthInfoFromCtx() from etcdserver to auth pkg for cleaning purpose.
2017-02-14 13:42:31 -08:00
Anthony Romano
3ac3fa6f3d
travis: disable email notifications
...
Was spamming security@coreos.com
2017-02-14 12:55:02 -08:00
Anthony Romano
eaa8b9e155
clientv3: test closing client cancels blocking dials
2017-02-14 11:31:51 -08:00
Anthony Romano
ea2aae464d
clientv3: use DialContext
...
Fixes #7216
2017-02-14 11:31:43 -08:00
Xiang Li
776739ebc2
roadmap: update roadmap
2017-01-20 14:21:08 -08:00
Gyu-Ho Lee
a7a8a47ba0
README: remove ACI, update Go version
2017-01-20 14:21:00 -08:00
Gyu-Ho Lee
379f7ae10e
op-guide: change grpc-proxy from 'pre' to alpha'
2017-01-20 13:25:21 -08:00
Gyu-Ho Lee
ead2d95914
version: bump to v3.1.0+git
2017-01-20 13:25:04 -08:00
Gyu-Ho Lee
8ba2897a21
version: bump to v3.1.0
v3.1.0
2017-01-20 12:42:12 -08:00
Anthony Romano
bc31e27cb9
documentation: update build documentation
2017-01-20 11:20:54 -08:00
Vimal Kumar
fce20a0b0b
test: passed the test script arguments as the test function parameters
2017-01-20 11:15:01 -08:00
Xiang Li
f10363fecd
etcdctlv3: snapshot restore works with lease key
2017-01-20 10:06:49 -08:00
Vimal Kumar
a7ec6c88fd
pkg/flags: fixed prefix checking of the env variables
2017-01-20 09:57:00 -08:00