Commit Graph

5915 Commits (release-2.2)

Author SHA1 Message Date
Gyu-Ho Lee 9f5189cd00 tools/v3benchmark: fix import pb path 2016-02-12 11:13:20 -08:00
Gyu-Ho Lee 6bc9b6e4ed *: bump to v2.2.5+git 2016-02-01 13:21:47 -08:00
Gyu-Ho Lee bc9ddf2601 *: bump to v2.2.5 2016-02-01 11:59:45 -08:00
Gyu-Ho Lee e7285f5626 *: updates for gRPC Godeps update 2016-02-01 11:28:39 -08:00
Gyu-Ho Lee 4613a7e61b Godeps: update gRPC 2016-02-01 11:28:29 -08:00
Xiang Li 31d1fa20bf Godeps: update boltdb 2016-01-28 10:48:22 -08:00
Hitoshi Mitake 259f89d59a etcdserver, auth: not cache a flag of auth status
This commit removes a flag that indicates auth is enabled or disabled
because it doesn't have an invalidation mechanism.

Fixes https://github.com/coreos/etcd/issues/3601 and https://github.com/coreos/etcd/issues/3964

Conflicts (Resolved):
	etcdserver/auth/auth.go
2016-01-27 15:36:16 -08:00
Gyu-Ho Lee 756d701f13 client: do not timeout when wait is true
Current V2 watch waits by encoding URL with wait=true.
When a client sets 'no-sync', it requests directly to
proxy and the proxy redirects it by cloning the request
object, which leads to cancel the original request when
it times out and the cloned request gets closed prematurely.

This fixes coreos#3894 by querying
the original client request in order to not use context timeout
when 'wait=true'.
2016-01-27 15:29:56 -08:00
Xiang Li d14a673ace etcdmain: proxy should only lookup srv if there is no existing cluster file 2016-01-27 15:29:54 -08:00
Gyu-Ho Lee 4abb231505 *: bump to v2.2.4+git 2016-01-13 14:22:16 -08:00
Gyu-Ho Lee bdee27b19e *: bump to v2.2.4 2016-01-13 14:07:39 -08:00
Anthony Romano 7f684641a3 Godeps: remove golang.org/x/net/netutil
Now using our own LimitListener to support KeepAlives.
2016-01-13 13:32:38 -08:00
Anthony Romano d54cf26bed etcdmain: support keep alive listeners on limit listener connections
Fixes #4171
2016-01-13 13:32:26 -08:00
Xiang Li d3e73aadab etcdmain: tls listener MUST be at the outer layer of all listeners
go HTTP library uses type assertion to determine if a connection
is a TLS connection. If we wrapper TLS Listener with any customized
Listener that can create customized Conn, HTTPs will be broken.

This commit fixes the issue.
2016-01-13 13:32:08 -08:00
Gyu-Ho Lee e340928988 etcdctl: ignore value in updatedir command
Fixes coreos#4145.
client.KeysAPI ignores value if SetOptions.Dir is true.
2016-01-13 13:31:49 -08:00
Gyu-Ho Lee (etcd) e6ffe22e16 *: bump to v2.2.3+git 2015-12-30 13:54:57 -08:00
Gyu-Ho Lee 05b564a394 *: bump to v2.2.3 2015-12-30 13:41:16 -08:00
Xiang Li cb779b2305 etcdctl: fix syncWithPeerAPI by breaking the loop when there is no error 2015-12-30 11:24:27 -08:00
Xiang Li 22c3208fb3 etcdserver: always check if the data dir is writable before starting etcd 2015-12-30 10:22:52 -08:00
Xiang Li e44372e430 etcdsever: avoid creating member dir before finishing validate bootstrap
This commit fixes the issue of creating member dir before validating
the configuration. When member dir exists, it indicates the local etcd
process is a valid etcd member. So we should only create member dir
after we finish configuration validation, joining validation or
discovery validation.
2015-12-30 10:19:51 -08:00
Xiang Li 05a90bc1e5 etcdmain: fix incomplete proxy config file
etcd might generate incomplete proxy config file after a power failure.
It is because we use ioutil.WriteFile. And iotuile.WriteFile does
not call Sync before closing the file.
2015-12-22 12:30:39 -08:00
Xiang Li 6751727809 etcdctl: support basic operations with etcd 0.4.
For CoreOS users, they will get a updated version of etcdctl without updating
the etcd server version. And the users cannot really control this behavior.
We do not want to suddenly break them without enough communication.

So we still want the most basic opeartions like get, set, watch of etcdctl2 work
with etcd 0.4. This patches solve the incompability issue.
2015-12-22 12:29:16 -08:00
Xiang Li 916106c3a2 client: support reset Endpoints.
ResetEndpoints is useful when the there is a scheduled cluster
changes or when manually manage the cluster without auto-sync
enabled.
2015-12-22 12:25:59 -08:00
Xiang Li e0c7768f94 store: fix data race when modify event in watchHub.
The event got from watchHub should be considered as readonly.
To modify it, we first need to get a clone of it or there might
be a data race.
2015-12-14 14:08:39 -08:00
Andrei Korzhevskii 0fb2d5d4d3 client: fix goroutine leak in unreleased context
If headerTimeout is not zero then two context are created but only one is released.
cancelCtx in this case is never released which leads to goroutine leak inside it.
2015-12-14 13:58:43 -08:00
Xiang Li fc61fc7c7a etcdctl: cluster health exit with non-zero when cluster is unhealthy 2015-12-14 13:58:10 -08:00
Yicheng Qin 09b81bad15 *: bump to v2.2.2+git 2015-11-19 14:24:59 -08:00
Yicheng Qin b4bddf685b *: bump to v2.2.2 2015-11-19 14:24:35 -08:00
Xiang Li af1c711270 auth: use canonical path for pre-defined guest role 2015-11-19 13:41:27 -08:00
Xiang Li c269426be8 *: fix various data races detected by race detector
Conflicts:
	rafthttp/transport.go
2015-11-19 13:38:28 -08:00
Xiang Li 20b7df3c12 rafthttp: fix data races detected by go race detector
Conflicts:
	rafthttp/pipeline.go
2015-11-19 13:34:49 -08:00
Yicheng Qin e342de3cc5 etcdmain: fix parsing discovery error
The discovery error is wrapped into a struct now, and cannot be compared
to predefined errors. Correct the comparison behavior to fix the
problem.
2015-11-19 13:26:50 -08:00
Yicheng Qin 26cc2111cd etcdmain: improve log when join discovery fails
Before this PR, the log is

```
2015/09/1 13:18:31 etcdmain: client: etcd cluster is unavailable or
misconfigured
```

It is quite hard for people to understand what happens.

Now we print out the exact reason for the failure, and explains the way
to handle it.
2015-11-19 13:26:42 -08:00
Jonathan Boulle 5d6457e658 godeps: bump coreos/pkg/capnslog
Update to catch coreos/pkg#43 which should fix SYSLOG_IDENTIFIER getting
set when etcd is logging to the journal.
2015-11-19 13:26:29 -08:00
Wojciech Tyczynski 53bc644168 client: regenerate code to unmarshal key response
Regenerate code for unmarshaling key response with a new version of
ugorji/go/codec.
2015-11-19 13:26:19 -08:00
Wojciech Tyczynski ad3bb484ca Godeps: update ugorji/go/codec dependency
Update ugorji/go/codec dependency to the newer version.
2015-11-19 13:26:08 -08:00
mqliang 15f7b736e4 etcdctl:fix health check condition 2015-11-19 13:25:57 -08:00
Yicheng Qin 4dc835c718 *: bump to v2.2.1+git 2015-10-15 21:59:15 -07:00
Yicheng Qin 75f8282eef *: bump to v2.2.1 2015-10-15 21:31:51 -07:00
Gyu-Ho Lee 45c86af0eb etcdctl/command: mk command with PrevNoExist
This attempts to fix #3676. `PrevNoExist` checks if the key previously exists
and if so, it returns an error, which is how `mk` command is supposed to work.
The previous code ignores the previous key and overwrites with the later value.

/cc @yichengq
2015-10-15 15:26:52 -07:00
Yicheng Qin 71e5467807 Godeps: update prometheus dependency
prometheus updates its directory layout
(https://github.com/prometheus/client_golang#where-is-model-extraction-and-text)
and makes Godeps restore/save unable to work.

Remove all prometheus dependency manually and godep save again to fix
this problem.
2015-10-15 15:26:42 -07:00
Wojciech Tyczynski 0169fec873 client: regenerate code to unmarshal key response
Regenerate code for unmarshaling key response with a new version of
ugorji/go/codec
2015-10-15 15:24:21 -07:00
Wojciech Tyczynski 766023b1b0 Godeps: update ugorji/go/codec dependency
Update ugorji/go/codec dependency to the newer version (a bunch of fixed were made).
2015-10-15 15:24:12 -07:00
Yicheng Qin ca9e63dde2 pkg/types: fix unwanted unescape in NewURLsMap
We use url.ParseQuery to parse names-to-urls string, but it has side
effect that unescape the string. If the initial-cluster string has ipv6
which contains `%25`, it will unescape it to `%` and make further url
parse failed.

Fix it by modifiying the parse process.

Go1.4 doesn't support literal IPv6 address w/ zone in
URI(https://github.com/golang/go/issues/6530), so we only enable tests
in Go1.5+.
2015-10-15 15:24:00 -07:00
Xiang Li 7659bbb1b2 etcdmain: print out error and suggestion for fixing notify issue 2015-10-15 15:23:49 -07:00
Xiang Li f8b98d3925 etcdhttp: add Content-Type: application/json header to version handler 2015-10-15 15:23:34 -07:00
Yicheng Qin 9ee3ed777b etcdmain: exit after print out ErrDuplicateID
etcd should exit after printing log for unhandlable error.
2015-10-15 15:23:24 -07:00
Xiang Li c9bd125490 etcdsever: mismatch error uses the same format as the corresponding flags 2015-10-15 15:22:52 -07:00
Guohua ouyang ec49496111 proxy: improve log for retrying an unavailable endpoint
Fixes #3541

Signed-off-by: Guohua ouyang <guohuaouyang@gmail.com>
2015-10-15 15:22:40 -07:00
Xiang Li baaefd18e2 etcdmain: better logging when user forget to set initial flags 2015-10-15 15:22:29 -07:00