40a8542c22
feat(bootstrap): wire up the flag
...
This wires up `-bootstrap-url` to some code (which crashes) :)
2014-02-05 09:27:39 -08:00
f56965b1c0
refactor(config): make config its own package
...
Refactor config into its own package. Trying to tease the config from
the server so that all of the control surfaces are exposed in the Server
for easier testing.
2014-02-05 09:27:39 -08:00
69922340f6
refactor(server): move utilities into pkg
...
like camlistore lets move these utilities into a `pkg` prefix.
2014-02-05 09:27:39 -08:00
0e50d9787a
feat(*): bootstrap initial commit
...
Setup the flags, and checkin the docs. Lets do this!
2014-02-05 09:27:39 -08:00
9e43e726a9
Merge pull request #507 from philips/turn-snapshots-on-by-default
...
feat(*): enable snapshots by default
2014-02-05 09:08:43 -08:00
03cadc543f
Merge pull request #525 from yifan-gu/fix_comments
...
fix some typos in comments in store.go
2014-02-04 11:46:29 -08:00
b61cf9cb8e
fix a format error in libraries-and-tools.md
2014-02-04 14:30:40 -05:00
8d2a8e1c7a
fix some typos in comments in store.go
2014-02-04 14:17:44 -05:00
72b393ca53
Merge pull request #519 from philips/fixup-server-tls-client-config
...
fix(server): fix client certificate verification
2014-02-03 17:33:45 -08:00
6398206e4f
Merge pull request #1 from bcwaldon/fixup-server-tls-client-config
...
test(TLS): Add test coverage for etcd TLS
2014-02-03 17:33:34 -08:00
226c20c097
test(TLS): Add test coverage for etcd TLS
2014-02-03 17:32:24 -08:00
0b9c5c975e
fix(test.sh): use . not source
2014-02-02 17:01:21 -08:00
272dc343ef
Merge pull request #520 from philips/use-goven
...
Use goven for all third party dependencies
2014-02-02 16:58:07 -08:00
d7d20d1c3d
bump(github.com/stretchr/testify): 9cc77fa25329013ce07362c7742952ff887361f2
2014-02-02 16:57:36 -08:00
2557992b70
fix(tests): use correct raft package
2014-02-02 16:57:36 -08:00
33be0e09fe
fix(build/test.sh): use new GOPATH setup
2014-02-02 16:57:36 -08:00
13b6c1e684
chore(*): make everything use goven
...
for i in github.com/BurntSushi/toml github.com/coreos/go-etcd/etcd github.com/coreos/go-log/log github.com/gorilla/context github.com/rcrowley/go-metrics bitbucket.org/kardianos/osext github.com/coreos/go-systemd/journal github.com/coreos/raft code.google.com/p/goprotobuf/proto ; do goven -copy -rewrite $i; done
2014-02-01 23:44:18 -08:00
ea8a353545
chore(*): gofmt everything
2014-02-01 23:44:10 -08:00
0566bf2d5d
Revert "Fix compile bug in peer_server_handlers.go "
...
This reverts commit e1ed380f04
.
2014-02-01 20:09:53 -08:00
93a129e55a
Merge pull request #516 from augustoroman/patch-1
...
fix(server compilation): compile bug in peer_server_handlers.go
2014-02-01 19:52:08 -08:00
58e1f12240
doc(server): some basic docs on the tls_config object
...
This should be refactored but something to remember while refactoring.
2014-01-31 17:08:37 -08:00
0fa6d38574
fix(server): fix client certificate verification
...
In d0c4916fe9
the TLS CA Certificate
verification broke.
This was bisected using the following basic test:
```
./bin/etcd -f -name machine0 -data-dir machine0 -ca-file=/tmp/ca/ca.crt -cert-file=/tmp/ca/server.crt -key-file=/tmp/ca/server.key.insecure
```
And in another window doing
```
curl --key /tmp/ca/server2.key.insecure --cert /tmp/ca/server2.crt -k -L https://127.0.0.1:4001/v2/keys/foo -XPUT -d value=bar -v
```
Before merging this PR there are a few things that need to be fixed up:
1) Tests for client certs both positive and negative
2) Refactor (or at least documentation of) the TLSConfig types
2014-01-31 16:56:15 -08:00
e1ed380f04
Fix compile bug in peer_server_handlers.go
...
resp.Success is a func() bool, not a bool. Call it.
2014-01-30 15:31:36 -08:00
354a91290e
feat(prevNode): add test for prevNode
2014-01-29 17:52:25 -08:00
3ec7004421
feat(prevNode): add "prevNode" to "Set" response
2014-01-29 17:30:33 -08:00
a542a7804b
Merge pull request #508 from jonboulle/master
...
Various cleanup to API documentation
2014-01-25 13:06:29 -08:00
03ff4c8b76
Missed one
2014-01-25 12:22:37 -08:00
7992448f6a
Various cleanup to API documentation
2014-01-25 12:08:57 -08:00
9a0ddb3760
feat(server): log on snapshot success or failure
...
lila.local: snapshot of 12 events completed at index 479
lila.local: snapshot of 12 events at index 491 attempted and failed: handling snapshot
2014-01-24 07:13:01 -08:00
7ee7e910eb
feat(*): enable snapshots by default
...
Ben recently added test coverage for snapshots so we should enable it in
etcd. Lets do this.
1d66f6a111
2014-01-23 20:53:22 -08:00
281b0e7e59
Merge pull request #506 from philips/add-freebsd-docs
...
feat(Documentation): add instructions on freebsd
2014-01-23 16:44:38 -08:00
50e6256058
feat(Documentation): add instructions on freebsd
2014-01-23 16:43:38 -08:00
1b00c449a5
Revert "Better error message when setting values on directories"
...
This reverts commit d13dd50d51
.
2014-01-23 11:22:11 -08:00
9848072d21
Merge pull request #487 from intjonathan/patch-1
...
English clarity in filesystem documentation.
2014-01-23 04:03:05 -08:00
2652e46d66
Merge pull request #504 from kelseyhightower/master
...
Better error message when setting values on directories
2014-01-23 03:59:40 -08:00
d13dd50d51
Better error message when setting values on directories
...
Without this commit etcd returns the following error message when
setting values on directories:
{
"errorCode":102,
"message":"Not a file",
"cause":"/postgres",
"index":2
}
While the above error message is accurate it's not very descriptive.
This commit adds a new error code/message which better describes why the
write operation failed. etcd now returns the following:
{
"errorCode":109,
"message":"Cannot set value on directory",
"cause":"/postgres",
"index":2
}
2014-01-22 23:02:33 -08:00
8fece992eb
Update filesystem documenation for clarity.
2014-01-22 20:43:54 -08:00
3264b51a74
Merge pull request #501 from benbjohnson/snapshot-documentation
...
Add snapshot documentation
2014-01-22 15:26:53 -08:00
0692097a73
Add snapshot documentation.
2014-01-22 16:06:25 -07:00
19ef1042d6
Merge pull request #497 from philips/store-bench-no-rand
...
fix(store/store_bench): don't use rand
2014-01-22 13:19:04 -08:00
394e651591
Merge pull request #484 from bcwaldon/server-config
...
Refactor server init code
2014-01-22 11:39:27 -08:00
2fe22f1890
refactor(servers): emit http.Handlers from *Server
2014-01-22 11:17:58 -08:00
089021ca6d
refacotor(transporter): make TLS config explicit
2014-01-22 11:17:58 -08:00
f158dfcd77
refactor(peerserver): Remove PeerServerConfig.Path
2014-01-22 11:17:58 -08:00
19980a7033
refactor(peerserver): remove timeouts from PeerServerConfig
2014-01-22 11:17:58 -08:00
a7d9efa900
refactor(server): Remove ServerConfig struct
2014-01-22 11:17:58 -08:00
0abd860f7e
refactor(server): drop Serve code; rename cors object
...
* server/cors.go renamed to http/cors.go
* all CORS code removed from Server and PeerServer
* Server and PeerServer fulfill http.Handler, now passed to http.Serve
* non-HTTP code in PeerServer.Serve moved to PeerServer.Start
2014-01-22 11:17:57 -08:00
5c3a3db2d8
refactor(server): treat Server as an http.Handler
2014-01-22 11:17:57 -08:00
074099a1b2
refactor(cors): Simplify corsInfo struct
2014-01-22 11:17:57 -08:00
a2ee620394
refactor(raft): init raft transporter & server in main
2014-01-22 11:17:56 -08:00