Commit Graph

1454 Commits

Author SHA1 Message Date
Hector Sanjuan
cd32daf4d7 Fix: do not generate "listen_multiaddress" deprecated option in config
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-27 10:24:39 +02:00
Hector Sanjuan
b08b3aba64 Docs: Move to website.
Updated READMEs, removed docs and point everything to website documentation.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-27 09:05:11 +02:00
Hector Sanjuan
01bf4c16be
Merge pull request #394 from ipfs/docker/run-daemon-default
Docker: Run with daemon --upgrade by default.
2018-04-27 08:19:25 +02:00
Hector Sanjuan
2fa41e72f9 Docker: Run with daemon --upgrade by default.
Plus add some warnings for users running the container randomly.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-27 07:57:08 +02:00
Hector Sanjuan
695177a080
Merge pull request #395 from ipfs/fix/upgrade-empty-state
Fix: do not fail when running daemon --upgrade and no state exists
2018-04-27 07:54:33 +02:00
Hector Sanjuan
9e29e646ed Fix: do not fail when running daemon --upgrade and no state exists
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-04-26 20:19:47 +02:00
Hector Sanjuan
35427801da
Merge pull request #391 from ipfs/doc/guide/basic-auth-creds
doc: fix basic_auth_credentials format in config
2018-04-24 14:47:32 +02:00
Hector Sanjuan
7a826f8240
Merge pull request #390 from ipfs/log/cluster/version-difference-err
cluster: add version diff log to start errors
2018-04-24 14:46:12 +02:00
Sina Mahmoodi
2b02eac5c3 doc: fix basic_auth_credentials format in config
`basic_auth_credentials` in `api` part of the config accepts a map, with username as key and password as value.

License: MIT
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
2018-04-24 14:44:25 +02:00
Sina Mahmoodi
d8f7a2adcc cluster: add version diff log to start errors
License: MIT
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
2018-04-24 14:27:15 +02:00
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