Commit Graph

1894 Commits

Author SHA1 Message Date
Hector Sanjuan
a5710dd055
Merge pull request #387 from ipfs/fix/config/disable-repinnings
Add disable_repinning cluster option
2018-04-24 09:25:40 +02:00
Sina Mahmoodi
03cc809708 config: Add log and testcase for disable_repinning
* Test case creates a bunch of clusters, assigns a pin with replica factor
of n-1 to them, and removes one of the peers randomly. It then tests
to check that the number of clusters pinning the cid is n-2.
* Add warn log to let user know that due to disable_repinning option,
the cluster won't attempt to re-assign the pin.

License: MIT
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
2018-04-23 22:01:52 +02:00
Sina Mahmoodi
0954c6d6fa Add disable_repinning cluster option
License: MIT
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
2018-04-22 18:40:46 +02:00
Hector Sanjuan
da0915a098
Merge pull request #350 from ipfs/feat/339-faster-tests
Feat #339: faster tests
2018-04-05 18:16:41 +02:00
Hector Sanjuan
0069c0062f Fix metric expire type. Do not discard metrics in Allocate().
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-05 17:57:24 +02:00
Hector Sanjuan
f5f56f2d11 Add some clarifications about delays
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-05 16:49:26 +02:00
Hector Sanjuan
c73e540b7b Pre-create and pre-connect hosts in tests
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-05 16:49:26 +02:00
Hector Sanjuan
dd4128affc Fix #339: Reduce Sleeps in tests
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-05 16:49:26 +02:00
Hector Sanjuan
58acf16efa cluster: introduce PeerWatchInterval config option.
It should provide a way to speed up peer list updates when
peers join/part. It was hardcoded.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-05 16:49:26 +02:00
Hector Sanjuan
95ae1746b7
Merge pull request #370 from ipfs/fix/svc/init/lock
cmd/svc/lock: check config dir and file existence
2018-04-05 09:23:50 +02:00
Hector Sanjuan
c651aed5f1
Merge pull request #358 from ipfs/feat/cmd/svc/force-quit
force quit ipfs-cluster-service on second ctrl-c
2018-04-04 12:22:19 +02:00
Adrian Lanzafame
271c743b51 cmd/svc/lock: check config dir and file existence
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-04-03 15:29:27 +10:00
Hector Sanjuan
bebc486bb3 Fix release changelog when having release candidates.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 13:47:33 +02:00
Hector Sanjuan
f9c1c44dbb
gx publish 0.3.5
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 13:44:25 +02:00
Hector Sanjuan
ed55daf2c6
Release 0.3.5
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 13:43:36 +02:00
Hector Sanjuan
92968d287b
Merge pull request #362 from ipfs/0.3.5/changelog
0.3.5/changelog
2018-03-29 13:43:09 +02:00
Hector Sanjuan
6e056c0781
Merge branch 'master' into 0.3.5/changelog 2018-03-29 13:43:01 +02:00
Hector Sanjuan
9c5ca7cfe5
Merge pull request #363 from ipfs/fix/wait
Fix: --wait flag in ipfs-cluster-ctl and WaitFor function
2018-03-29 12:00:08 +02:00
Hector Sanjuan
41433298f5 Fix: --wait flag. Address comments
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:25:15 +02:00
Hector Sanjuan
851e78ad02 Add test for WaitFor
Actually test that WaitFor waits

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Hector Sanjuan
4da2458db9 Fix: WaitFor never returning
Since no-one is reading sf.Out, sending blocks and everything hangs.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Hector Sanjuan
018e5dbaea Fix: --wait flag in ipfs-cluster-ctl
The --wait flag was being completely ignored unless --no-status was passed
too, which makes no sense because then it would print the wait status.

This waits when --wait and prints the status when --no-status is not passed.

If we have been waiting, the status comes from that. Otherwise we request it.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-29 11:23:40 +02:00
Adrian Lanzafame
31bce165ae cmd/svc: force quit ipfs-cluster-service on 2nd ctrl-c
Refactor daemon() to reduce code complexity.

Refactor configuration in ipfs-cluster-service.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-29 12:01:31 +10:00
Hector Sanjuan
53b0b86e52
Merge pull request #365 from ipfs/fix/type-errors
api/types: do not print some errors
2018-03-28 20:06:32 +02:00
Hector Sanjuan
a8d15876a0
Merge pull request #364 from ipfs/fix/downcase_api_config_id
Fix: downcase json keys for api config
2018-03-28 20:06:23 +02:00
Hector Sanjuan
403a4cf6e0 api/types: do not print some errors
The rest/client does things like "return id.ToID(), err" which is nice.
But when there's an error the ID has Cid set to nil etc. This is now
causing error messages on the console which are very misleading because
they do not correspond to the actual error of the request.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 19:16:49 +02:00
Hector Sanjuan
9c40d971f6 api/rest: PrivateKey -> private_key for the json config
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 18:23:12 +02:00
Hector Sanjuan
3da9776408 api/rest: ID -> id. All keys in the json config should be downcase
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 18:20:21 +02:00
Hector Sanjuan
fac3b94b92 captains log
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 17:42:37 +02:00
Hector Sanjuan
1d4f4f0dc8 Changelog for 0.3.5
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-28 17:42:37 +02:00
Hector Sanjuan
f8acd4f1af
Merge pull request #361 from ipfs/fix/recover-pin
Fix: Recover does not pin recursively
2018-03-28 01:53:42 +02:00
Hector Sanjuan
9a67be60cd
Merge pull request #348 from ipfs/feat/rest/client/wait
rest/client: Add WaitFor utility function
2018-03-27 14:36:19 +02:00
Hector Sanjuan
4de7cb0ed6 Fix: Recover does not pin recursively
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-27 14:11:21 +02:00
Adrian Lanzafame
4d48504779 rest/client: Add WaitFor utility function
address feedback and add WaitForPinnedStatus

address feedback and rework WaitFor

implement StatusFilter

address feedback and rework StatusFilter

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-27 14:56:49 +10:00
Hector Sanjuan
da1ef2a7d1 gx publish 0.3.5-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 21:57:39 +02:00
Hector Sanjuan
72876465d6
Release 0.3.5-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 21:50:18 +02:00
Hector Sanjuan
a888e1dfb3
Merge pull request #356 from ipfs/feat/269-shell-client
Fix #269: Add IPFS() method to api/rest/client
2018-03-26 19:48:23 +02:00
Hector Sanjuan
0854c1f1fe
Merge pull request #360 from ipfs/feat/fs-lock
Use go-fs-lock pkg
2018-03-26 18:10:35 +02:00
Hector Sanjuan
8d3937a637
Merge branch 'master' into feat/fs-lock 2018-03-26 15:40:10 +02:00
Hector Sanjuan
7ca3dc292a Fix #269: Add IPFS() method to api/rest/client
The IPFS() methods returns an ipfs Shell pointing to the ipfs-cluster
proxy endpoint. The location can be customized (via ProxyAddr configuration
option) or it is assumed to be the same as the PeerAddr/APIAddr, with
a different port (the default).

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-26 15:23:14 +02:00
Hector Sanjuan
a4adce6592
Merge pull request #349 from ipfs/feat/restapi-libp2p
Feat #305: Libp2p support for REST API
2018-03-26 14:22:39 +02:00
Adrian Lanzafame
364a134eb5 Use go-fs-lock pkg
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-26 19:28:47 +10:00
Hector Sanjuan
2cea3d2b07
Merge pull request #357 from racin/master
Documentation: Can't get peers to connect without /ipfs/ before <id>.
2018-03-22 01:28:26 +01:00
Racin Nygaard
3a3abfc31e Documentation: Can't get peers to connect without /ipfs/ before <id>.
This is also reflected in the other documentations.

License: MIT
Signed-off-by: racin <mail@racin.no>
2018-03-22 01:08:04 +01:00
Hector Sanjuan
8e7ca5a682 rest/config: remove dup https options
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 16:16:24 +01:00
Hector Sanjuan
8d8bcf6ce5
Merge pull request #355 from ipfs/doc/readme-go-version
Readme: specify that we want Go1.9+
2018-03-21 15:46:32 +01:00
Hector Sanjuan
75c82ab0c9
Merge pull request #353 from ipfs/feat/error-msgs-bootstrap
Improve errors for bootstraps
2018-03-21 11:58:27 +01:00
Hector Sanjuan
4ea873c297 api/rest/client: run endpoint tests in parallel
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 09:51:20 +01:00
Hector Sanjuan
72ee994b8f
Readme: specify that we want Go1.9+ 2018-03-21 09:33:12 +01:00
Hector Sanjuan
62bdbaa9f3 Use iff iff it is necessary
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-21 00:34:57 +01:00