2714 Commits

Author SHA1 Message Date
Troy McConaghy
b0f379dba9 Merge pull request #1276 from bigchaindb/fix-bigchaindb-toolbox-dockerfile
Fix comments in bigchaindb/toolbox Dockerfile
2017-03-13 18:39:20 +01:00
Troy McConaghy
e0366468ec Fix comments in bigchaindb/toolbox Dockerfile
The comments were referring to another Docker image (`krish7919/toolbox`).
2017-03-13 18:14:18 +01:00
Troy McConaghy
1de7ae1104 Merge pull request #1260 from bigchaindb/remove-old-topic-guides-section-from-server-docs
Removed the old 'Topic Guides' section from the BigchainDB Server docs
2017-03-13 14:18:07 +01:00
Troy McConaghy
a09af2455d Merge pull request #1270 from bigchaindb/edit-docs-re-ssh-to-k8s-nodes
Revised docs re/ SSHing to nodes in a k8s cluster
2017-03-11 09:34:10 +01:00
Sylvain Bellemare
72ba9761d4 Use parametrized host & port in test
to support docker-based tests or different test envs
2017-03-10 19:21:25 +01:00
Troy McConaghy
646859f1d6 revised docs re/ SSHing to nodes in a k8s cluster 2017-03-10 11:47:58 +01:00
Krish
7dbd374838 Running a single node on k8s (#1269)
* Single node as a StatefulSet in k8s
- uses bigchaindb/bigchaindb:0.9.1

* Updating README

* rdb, mdb as stateful services

* [WIP] bdb as a statefulset

* [WIP] bdb w/ rdb and bdb w/ mdb backends
- does not work as of now

* Split mdb & bdb into separate pods + enhancements
*  discovery of the mongodb service by the bdb pod by using dns name.
*  using separate storage classes to map 2 different volumes exposed by the
mongo docker container; one for /data/db (dbPath) and the other for
 /data/configdb (configDB).
*  using the `persistentVolumeReclaimPolicy: Retain` in k8s pvc. However,
this seems to be unsupported in Azure and the disks still show a reclaim
policy of `delete`.
*  mongodb container runs the `mongod` process as user `mongodb` and group
`mongodb. The corresponding `uid` and `gid` for the `mongod` process is 999
and 999 respectively. When the constinaer runs on a host with a mounted disk,
the writes fail, when there is no user with uid 999. To avoid this, I use the
docker provided feature of --cap-add=FOWNER in k8s. This bypasses the uid and
gid permission checks during writes and allows writes.
Ref: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

* Delete redundant k8s files, add cluster deletion steps.

* Single node as a StatefulSet in k8s
- uses bigchaindb/bigchaindb:0.9.1

* Updating README

* rdb, mdb as stateful services

* [WIP] bdb as a statefulset

* [WIP] bdb w/ rdb and bdb w/ mdb backends
- does not work as of now

* Split mdb & bdb into separate pods + enhancements
*  discovery of the mongodb service by the bdb pod by using dns name.
*  using separate storage classes to map 2 different volumes exposed by the
mongo docker container; one for /data/db (dbPath) and the other for
 /data/configdb (configDB).
*  using the `persistentVolumeReclaimPolicy: Retain` in k8s pvc. However,
this seems to be unsupported in Azure and the disks still show a reclaim
policy of `delete`.
*  mongodb container runs the `mongod` process as user `mongodb` and group
`mongodb. The corresponding `uid` and `gid` for the `mongod` process is 999
and 999 respectively. When the constinaer runs on a host with a mounted disk,
the writes fail, when there is no user with uid 999. To avoid this, I use the
docker provided feature of --cap-add=FOWNER in k8s. This bypasses the uid and
gid permission checks during writes and allows writes.
Ref: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

* Delete redundant k8s files, add cluster deletion steps.

* Documentation: running a single node with distinct mongodb and bigchaindb
pods on k8s

* Updates as per @ttmc's comments
2017-03-09 16:53:00 +01:00
libscott
f2c951847c Merge pull request #1243 from bigchaindb/validationerror-refactor
Make ValidationError a superclass of all validation errors and use it
2017-03-08 17:04:12 +01:00
Scott Sadler
53dff83ed4 Merge remote-tracking branch 'origin/master' into validationerror-refactor 2017-03-08 13:07:51 +01:00
Scott Sadler
a3fccbc599 change TransactionDoesNotExist to InputDoesNotExist in tests 2017-03-08 13:01:52 +01:00
libscott
a110d54dad Merge pull request #1237 from bigchaindb/tx-appears-once-in-block
Avoid dupe txs in block
2017-03-08 12:55:33 +01:00
libscott
9ec9f638fc Merge pull request #1213 from bigchaindb/identify-voters
Identify voters + Voting class
2017-03-07 14:06:22 +01:00
Troy McConaghy
780cf62d10 Merge pull request #1259 from bigchaindb/update-release-process-re-docker-hub
Must update meaning of 'latest' image on Docker Hub when do a minor release
2017-03-07 13:26:49 +01:00
Scott Sadler
1db8d59a88 use comma for arguments in logging calls instead of format operator 2017-03-07 13:24:20 +01:00
Scott Sadler
e5dd5c665b address vrde's comments, reshuffle some exceptions around 2017-03-07 13:15:31 +01:00
Sylvain Bellemare
75d0a917d7 Remove stderr check 2017-03-07 12:29:54 +01:00
Brett Sun
ffe0eb60b9 Move tests related to commands/tests.py to separate test file 2017-03-07 12:29:54 +01:00
Brett Sun
54ea18dd2b Use decorator to automatically configure before starting any command (that requires configuration) 2017-03-07 12:29:54 +01:00
Brett Sun
df9fd6dc23 Move arguments related only to start command to be under start 2017-03-07 12:29:54 +01:00
Brett Sun
fce6b6af52 Standardize output streams for outputs of commands 2017-03-07 12:29:54 +01:00
Brett Sun
0ad0d89fcd Move input_on_stderr() to commands.utils module 2017-03-07 12:29:54 +01:00
Troy McConaghy
d3bd9d0300 Server docs: Removed the old 'Topic Guides' section 2017-03-07 11:43:49 +01:00
libscott
33bef7d993 I can't spell neccesarily 2017-03-07 11:29:16 +01:00
Troy McConaghy
083d1678ce Must update meaning of 'latest' image on Docker Hub when do a minor release 2017-03-07 11:24:26 +01:00
Scott Sadler
9bb2ec276a clarify interface of Voting.count_votes 2017-03-07 11:24:21 +01:00
Sylvain Bellemare
7e0e46e820 Pass host and port to rethinkdb connection
This is needed when running the tests in containers for instance
2017-03-06 16:23:47 +01:00
Sylvain Bellemare
2e398f606f Make some improvements to command line messages and error handling 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
edc5887b42 Use hardcoded (constant) messages
This provides a bit of re-usability and helps testing.
2017-03-06 14:45:10 +01:00
Sylvain Bellemare
24eb18fb59 Add tests for errors on startup 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
d1d994f0e7 Add fixture for run_start cmdline args
Note: has the possibility to be parametrized.
2017-03-06 14:45:10 +01:00
Sylvain Bellemare
4e82615845 Add module to hold messages used in commands 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
894784b9e4 Add pytest-mock - a thin wrapper around mock 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
1002668082 Fix broken tests 2017-03-06 14:45:10 +01:00
Sylvain Bellemare
c1cf79d0e0 Pass a message to the exception
otherwise nothing gets printed when printing the exception
2017-03-06 14:45:10 +01:00
Sylvain Bellemare
6ce8ba9ae3 Replace logging statements with print
that is more or less the recommended approach for command line
interfaces

see https://docs.python.org/3.6/howto/logging.html#when-to-use-logging
2017-03-06 14:45:10 +01:00
libscott
5e91d65348 Merge pull request #1250 from bigchaindb/stray_print_in_connection
remove stray print call
2017-03-06 14:25:00 +01:00
Troy McConaghy
c3ef252438 Merge pull request #1240 from bigchaindb/k8s-node
Run bigchaindb container + RDB/MDB container in a k8s StatefulSet
2017-03-06 14:22:31 +01:00
Scott Sadler
1374f133f9 remove stray print call 2017-03-06 14:18:48 +01:00
Sylvain Bellemare
8bad32dc13 Fix typo [skip ci] 2017-03-06 14:10:07 +01:00
Sylvain Bellemare
1c03ab754c Update change log for 0.9.3 2017-03-06 14:10:07 +01:00
Scott Sadler
352627b83a add test that asset id is a string 2017-03-06 12:12:04 +01:00
Troy McConaghy
33deff8760 docs: add instructions to deploy MongoDB & BigchainDB on k8s cluster 2017-03-05 17:49:00 +01:00
Troy McConaghy
0ffa93cd44 docs: fixed typo; changed 2Gi to 20Gi in kubectl cmd output 2017-03-05 17:23:42 +01:00
Troy McConaghy
6cda75b44b Merge remote-tracking branch 'origin/master' into k8s-node 2017-03-05 17:20:33 +01:00
Troy McConaghy
880729cac2 minor changes to 2 yml files + added RDB intracluster port 2017-03-05 16:47:12 +01:00
krish7919 (Krish)
93d06b4e2a PVC for MDB in single BDB+MDB StatefulSet 2017-03-04 20:05:30 +01:00
Sylvain Bellemare
f64401eed3 Only append tx if it meets the conditions
fixes #1231
2017-03-03 18:02:57 +01:00
Sylvain Bellemare
56243a57ab Fix indent 2017-03-03 18:02:57 +01:00
diminator
81dee294ea unitest for bug 2017-03-03 18:02:57 +01:00
krish7919 (Krish)
b9e5bc84d9 Merge branch 'k8s-node' of github.com:bigchaindb/bigchaindb into local-k8s-node 2017-03-03 17:35:16 +01:00