Commit graph

272 commits

Author SHA1 Message Date
Matthew Sykes
e2f4f20bd6 [FAB-10176] Fix invalid configtx.yaml documents
Change-Id: Ibf52f9380ed3b724c594b53550321a12475e9860
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
2018-05-17 08:41:05 -04:00
Yuki Kondo
cad2b98044 [FAB-10073] Fix broken link in samples/fabric-ca/README
This CR fixes the broken link to the document of ABAC
in fabric-samples/fabric-ca/README.md.

Change-Id: I2aff8a2c6b1f3e208f211f20f9237d8c3efd14d8
Signed-off-by: Yuki Kondo <yuki.kondo@hal.hitachi.com>
2018-05-15 17:37:26 +00:00
weikeng
ace2e5ab91 [FAB-10021] Typo in balance-transfer/testAPIs.sh
There is a typo for transaction in testAPIs.sh

Change-Id: I0f8ca7b2a9003b5f85ba980cab5eff80853b03dc
Signed-off-by: weikeng <w.k@berkeley.edu>
2018-05-12 08:14:51 -07:00
Gari Singh
c3979b5716 Merge "[FAB-8265] Fixed spelling error in registerUser" 2018-05-11 08:34:20 +00:00
Gari Singh
14cfb00ce7 Merge "FAB-9552 Fix access of an un-declared variable" 2018-05-11 08:31:47 +00:00
David Enyeart
d71e6df693 Merge "[FAB-9572] Fix README to match new version of BYFN" 2018-05-07 10:12:46 +00:00
Robert P. J. Day
fa1d8997af [FAB-9893] Add .gitreview file for quicker Gerrit setup
Change-Id: I48e870e2e2b487209ba894dfd4293d3c1dbece1b
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2018-05-04 11:46:33 -04:00
Keith Smith
7458dc6da7 Merge "[ FAB-8730 ] hyphen breaks fabric-samples" 2018-05-04 13:58:32 +00:00
Qiang Yiting
98561e0919 FAB-9552 Fix access of an un-declared variable
Change-Id: Ia518b5733e69a999a304d251390999fa1291b4eb
Signed-off-by: Qiang Yiting <suntoe@189.cn>
2018-05-03 20:24:14 +00:00
Will Lahti
b5dad8cd25 [FAB-9317] Update first-network with multi endorse
This CR updates the first-network (BYFN and EYFN) to use an
'AND (...)' endorsement policy. It also cleans up some of the
output and fixes the line length of some comments.

Change-Id: I741f41226955ccfcd3eb5369d8ba6eb77e49e89e
Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
2018-05-03 09:52:22 -04:00
Arnaud J Le Hors
146f7bc193 [FAB-9572] Fix README to match new version of BYFN
Changed README.md to instruct user to edit byfn.sh instead
of docker-compose-cli file since this is where the standard
BFYN script is now run.
Also added missing Copyright notices.

Change-Id: Ib18afe8a23cc3874729031a82480aac5b0a2b555
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
2018-04-24 18:27:10 +02:00
Robert P. J. Day
010fcb544f [FAB-9326] Clean up byfn.sh, drop "-m" option
Some general cleanup of byfn.sh script:

 - Given that "-m" is deprecated, remove its normal processing,
   but retain (for now) its early recognition so that CI passes.
 - Drop reference to "--help", only "-h" is supported.
 - Add reference to "upgrade" mode to usage message and comment.

Change-Id: If1d6624c8788ec660abca5d13e7c87aafb13ce59
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2018-04-23 08:10:07 -04:00
Artem Barger
54b071bfdc Merge "FAB-9294 eliminate excess noise in BYFN" 2018-04-21 20:18:47 +00:00
Yacov Manevich
820551d6c8 Merge "[FAB-9475] Fix a dead link in README" 2018-04-18 07:22:55 +00:00
nirro
2d6386c421 [FAB-8245] change first network according to the fix
fixed [FAB-8245], and fabric samples have to be changed accordingly.
currently, added support for both output formats.

Change-Id: I0cac063af44556d6a37f17b25abf20134032540f
Signed-off-by: nirro <nirro@il.ibm.com>
2018-04-17 15:47:45 +03:00
Nao Nishijima
3a5108f020 [FAB-9475] Fix a dead link in README
There is no "samples.html" in latest documents.
This patch changes the dead link to "install.html"

Change-Id: I431d197c5f4124a979d706f668da28ad1d14b235
Signed-off-by: Nao Nishijima <nao.nishijima@hal.hitachi.com>
2018-04-11 13:19:32 -07:00
Christopher Ferris
77a65685c5 FAB-9294 eliminate excess noise in BYFN
eliminate the noise of echoing the environment
variables for each command and add -v option to
enable the noise for debug purposes for byfn.sh
and eyfn.sh in first-network sample

also eliminate noise in fabcar

Change-Id: I46c377360efbab598fd37c0a31b29a119b99173e
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
2018-04-08 19:14:20 -04:00
foolcage
41f5ab839b [FAB-9406] Typo in byfn.sh
I found "depete" in first-network/byfn.sh.
Maybe it should be "delete".

Change-Id: Iecdb6f8822b8b99765bc9d93e9b5ab623cb63607
Signed-off-by: foolcage <5533061@qq.com>
2018-04-08 18:03:01 +08:00
Gari Singh
88bfe50fce Merge "FAB-9362 add CONTRIBUTING.md and CODE_OF_CONDUCT.md" 2018-04-06 20:50:22 +00:00
Gari Singh
c8d8b91749 Merge "[FAB-8958] Add org3 removal to byfn.sh" 2018-04-06 13:14:38 +00:00
Christopher Ferris
f5c2eb8ee9 FAB-9362 add CONTRIBUTING.md and CODE_OF_CONDUCT.md
Change-Id: I01f2039d9835e6ccccce17c2b719115e8a6f7c1e
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
2018-04-04 19:25:55 -04:00
Robert P. J. Day
9d518fb795 [FAB-9330] Refactor top-level .gitignore into subdirs
Rather than cram most .gitignore content into the top-level .gitignore
file, partition it into lower-level .gitignore files, as is already done
with a couple subdirectories, just to be consistent.

I'm sure these files could be even tidier but this seems sufficient for
a first pass.

Change-Id: I0cc8cb2a9d7fa82c4f6de1aef9f82107c8cc7a6a
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2018-04-04 06:26:20 -04:00
Salman Baset
a080da3e23 [FAB-8958] Add org3 removal to byfn.sh
When running the sample "Adding an Org to a Channel", then upon clean up,
./eyfn.sh -m down script must be run before ./byfn.sh -m down; otherwise,
org3 containers and volumes and containers do not get cleaned properly.
This patch adds the org3 container and volume cleanup to ./byfn.sh so
that a user does not have to worry about the correct execution ordering
of ./eyfn.sh and ./byfn.sh scripts.

Change-Id: Ieac1adc4081d59943286cfe9139a74395986460b
Signed-off-by: Salman Baset <sabaset@us.ibm.com>
2018-03-31 16:24:06 -04:00
Christopher Ferris
489acdf619 Merge "FAB-8947 Fabric-Samples remove package lock" 2018-03-30 13:09:36 +00:00
Yacov Manevich
f64bd714aa Merge "FAB-9185 add /config to .gitignore" 2018-03-28 23:24:00 +00:00
Christopher Ferris
8fc0865df4 FAB-9185 add /config to .gitignore
Change-Id: Ib744a40abaabd0292ee09e101fafc63aebbecb02
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
2018-03-27 08:36:52 -04:00
alex
680ff01a5d [FAB-8600]Clear hyperledger-related containers only
Change-Id: If45759c6db4b6e63aaadd1c86d31f1332a5aee53
Signed-off-by: alex <alexliusch@gmail.com>
2018-03-27 11:10:03 +08:00
Bret Harrison
4f97717287 FAB-8947 Fabric-Samples remove package lock
Remove the package lock file and allow current
versions to be installed.

Change-Id: I74a4710173e4f2307e87b73c6021ecf20237a974
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2018-03-23 17:51:21 +00:00
David Seybold
fcf62adf57 [FAB-8265] Fixed spelling error in registerUser
I have fixed a spelling error in registerUser.js, changing
"intreact" to "interact".

Change-Id: Ib07af36923a5fe652be01e1c83e316d4495d4a46
Signed-off-by: David Seybold <daseybold@gmail.com>
2018-03-20 21:57:57 -04:00
rennman
e4d776032e [ FAB-8730 ] hyphen breaks fabric-samples
The jq script which performs the config update in
scripts/run-fabric.sh fails if the orderer name contains
a hyphen. It requires modifying the way in which jq
interpolates shell variables.

Change-Id: Ie4de9459cb17693465613d6efd78b3d98575bbb2
Signed-off-by: rennman <eabailey@us.ibm.com>
2018-03-12 12:52:08 -04:00
Saad Karim
2bbb0a85b3 [FAB-8630] byfn failing intermittently in CI
byfn test failing intermittently in CI due to peer not
being available when the join channel command is
executed. Need to wait for peer to finsih establishing
connection with couchdb before joining channel.

The exit code was not being correctly captured from the
peer join command and thus the retry logic was not being
executed.

Change-Id: I2c27d17cd769c6b8de1bdcfed263d9b0f758b432
Signed-off-by: Saad Karim <skarim@us.ibm.com>
2018-03-08 11:36:08 -05:00
Gari Singh
5d7ac01c81 Merge "[FAB-8496] allow modification of affiliations" 2018-03-07 23:01:33 +00:00
rennman
823fb6b9c5 [ FAB-8679 ] Permit samples to use RootCAs
Fix USE_INTERMEDIATE_CA variable to allow
exclusive use of RootCA for sample tests.

Change-Id: If10f9a768ba17943f03b416f5a68edb9eb65a27a
Signed-off-by: rennman <eabailey@us.ibm.com>
2018-03-06 13:42:48 -05:00
Keith Smith
9f9fc7e5ac [FAB-8633] Correct revoked error check
The returned error message was changed to "access denied" when
a certificate has been revoked.  This simply changes the sample
to look for the correct error message.

Change-Id: Id107d4e1813099e2f21ba9eaffa0bd0b9912a97b
Signed-off-by: Keith Smith <bksmith@us.ibm.com>
2018-03-01 23:47:07 -05:00
Chris Elder
f3b55c9c0d [FAB-8621] Remove Marbles index json data wrapper
Fabric 1.1 removes the need for a "data" wrapper for CouchDB data.

The marbles02 sample index json files in fabric-samples still contains
the data wrapper.

Change-Id: Ic984b1408da4959000ae99962bf9a48d66334860
Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
2018-03-01 14:02:56 -05:00
Gari Singh
2d925ae675 Merge "[FAB-8602] Add volumes to first-network e2e yaml" 2018-03-01 16:28:31 +00:00
Gari Singh
0289d113ba Merge "[FAB-8497] Download images required for fabric-ca" 2018-03-01 16:13:37 +00:00
Jason Yellick
f110a6e0a2 [FAB-8602] Add volumes to first-network e2e yaml
The first-network CLI yaml was recently enhanced to use volume mounts
for the ledger directories.  There is the additional e2e yaml which
depends on the container definitions and is now failing.  This CR simply
edits its template to include these new volume definitions.

Change-Id: Ia5b7b93b2be4f9de1f0ebfaa804f8ef713fb935d
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
2018-03-01 08:47:17 -05:00
Jason Yellick
f3ba862017 Merge "FAB-8564 add debug commands to byfn" 2018-03-01 04:22:55 +00:00
David Enyeart
d58a13682b Merge "[FAB-8567] Alt: Always use volumes for ledger (m)" 2018-03-01 01:36:04 +00:00
Jason Yellick
7362928e99 [FAB-8567] Alt: Always use volumes for ledger (m)
Docker compose makes volume management easy and transparent to the user.
By defaulting the ledgers to be docker compose volumes, we transparently
get ledger persistence for the ugprade case, and may trivially tear the
volumes down in the docker-compose down command with the addition of the
--volumes flag.  This would allow the upgrade scenario to work without
the use of the '-p' flag, and is likely to be generally much cleaner.

Change-Id: I80b36a63370065a7aad0f9c284ec578533123d2b
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
2018-02-28 19:02:05 -05:00
ratnakar
afb3d626b0 [FAB-8561] Add note to readthedocs link in README
Change-Id: Idf29789151639f7997a331ff90ab735d93256041
Signed-off-by: ratnakar <asara.ratnakar@gmail.com>
(cherry picked from commit b2f806d8a2)
2018-02-28 19:46:51 +00:00
Christopher Ferris
10526d5a1d FAB-8564 add debug commands to byfn
replace DEBUG level logging w/INFO, but add in
shell debug statements for all fabric commands
for improved UX

Change-Id: I97a19db0373ecaf7a504cb95d4815a11cd64dfed
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
2018-02-28 10:05:33 -05:00
David Enyeart
e73a4813ba [FAB-8568] BYFN: Fix IMAGE_TAG for couchdb
As of 1.1 alpha timeframe, 3rd party images do not follow the
same docker IMAGE_TAG versioning as the other Fabric docker images.

Need to remove IMAGE_TAG from couchdb images, and default to
latest couchdb image, which is how it worked prior to
the -i introduction.

This change needs to be made in master branch but not release branch,
since the IMAGE_TAGs are aligned in 1.0.x release.

Change-Id: Iaca24ea7ed1fc6319738dcf59f665da9259d2b9a
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2018-02-28 03:41:02 -05:00
Yacov Manevich
9986510d8d Merge "[FAB-8539] Add version checking to first-network" 2018-02-28 08:00:29 +00:00
Bret Harrison
ffd7a2576c FAB-6400 Balance-transfer filtered events
Update sample code to use the channel-based events.
The sample will also use the new connection profile
API to get a list of channel-based NodeSDK event hubs
using filtered blocks, automatic unregistration, and
automatic disconnect, all new features of channel-based
events. This will demostrate the most common use case
for events. The sample code will require the NodeSDK
to be at 1.1 alpha.

Change-Id: Id9f2b37f02d7d662b7ca1016586560ee4c595992
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2018-02-27 23:10:19 +00:00
David Enyeart
831e9bfe80 Merge "[FAB-8165] Adding upgrade function to byfn" 2018-02-27 22:16:33 +00:00
David Enyeart
560574b198 Merge "[FAB-8540] Add ledger persistance to first-network" 2018-02-27 22:16:08 +00:00
Surya
cba57da0dc [FAB-8165] Adding upgrade function to byfn
Adding upgrade functionality to byfn.sh to upgrade the fabric network
from v1.0.x to v1.1 and scripts for cli to enable
/Channel, /Channel/Orderer, /Channel/Application capabilities

Usage:
git fetch origin
git checkout origin/release
./byfn.sh -m up -i 1.0.6
git checkout origin/master
./byfn.sh upgrade

Change-Id: I6f53a6db39501e2653dc4c325d3d42d78f463e87
Signed-off-by: Surya <suryalnvs@gmail.com>
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
2018-02-27 21:13:42 +00:00
Jason Yellick
c6166d6d18 [FAB-8540] Add ledger persistance to first-network
This CR adds a new docker-compose-persist.yaml file which creates a
volume mount in the current directory at ./ledgers/<container> and binds
it to the ledger directory for the container.

It also adds a '-p' flag to the byfn.sh script to allow users to include
this new compose file when bringing up the network.

Change-Id: I1ee5faa33c7f0ce18fe7711f5f752d7bf18f117c
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
Signed-off-by: Surya <suryalnvs@gmail.com>
2018-02-27 16:02:48 -05:00