-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-12724] Upgrade from 1.3.x to 1.4.0
Adding support to upgrade from 1.3.x to 1.4.0 using upgrade_to_v14.sh and changes to byfn.sh For this, no v1_4 capabilities need to be enabled other than v1_3 capabilities on channel and application group level Only upgrading the images from v1.3.x to v.1.4.0 for peer, orderer, cli, ccenv Change-Id: I991f96c2deb3c91870ec4654aa8b561f49594248 Signed-off-by: Surya Lanka <suryalnvs@gmail.com>
- Loading branch information
Showing
5 changed files
with
75 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
|
||
echo | ||
echo " ____ _____ _ ____ _____ " | ||
echo "/ ___| |_ _| / \ | _ \ |_ _|" | ||
echo "\___ \ | | / _ \ | |_) | | | " | ||
echo " ___) | | | / ___ \ | _ < | | " | ||
echo "|____/ |_| /_/ \_\ |_| \_\ |_| " | ||
echo | ||
echo "Upgrade your first network (BYFN) from v1.3.x to v1.4.x end-to-end test" | ||
echo | ||
CHANNEL_NAME="$1" | ||
DELAY="$2" | ||
LANGUAGE="$3" | ||
TIMEOUT="$4" | ||
VERBOSE="$5" | ||
: ${CHANNEL_NAME:="mychannel"} | ||
: ${DELAY:="5"} | ||
: ${LANGUAGE:="golang"} | ||
: ${TIMEOUT:="10"} | ||
: ${VERBOSE:="false"} | ||
LANGUAGE=$(echo "$LANGUAGE" | tr [:upper:] [:lower:]) | ||
COUNTER=1 | ||
MAX_RETRY=5 | ||
|
||
CC_SRC_PATH="github.com/chaincode/chaincode_example02/go/" | ||
if [ "$LANGUAGE" = "node" ]; then | ||
CC_SRC_PATH="/opt/gopath/src/github.com/chaincode/chaincode_example02/node/" | ||
fi | ||
|
||
echo "Channel name : "$CHANNEL_NAME | ||
|
||
# import utils | ||
. scripts/utils.sh | ||
|
||
sleep $DELAY | ||
|
||
#Query on chaincode on Peer0/Org1 | ||
echo "Querying chaincode on org1/peer0..." | ||
chaincodeQuery 0 1 90 | ||
|
||
sleep $DELAY | ||
|
||
#Invoke on chaincode on Peer0/Org1 | ||
echo "Sending invoke transaction on org1/peer0..." | ||
chaincodeInvoke 0 1 0 2 | ||
|
||
sleep $DELAY | ||
|
||
#Query on chaincode on Peer0/Org1 | ||
echo "Querying chaincode on org1/peer0..." | ||
chaincodeQuery 0 1 80 | ||
|
||
echo | ||
echo "===================== All GOOD, End-2-End UPGRADE Scenario execution completed ===================== " | ||
echo | ||
|
||
echo | ||
echo " _____ _ _ ____ _____ ____ _____ " | ||
echo "| ____| | \ | | | _ \ | ____| |___ \ | ____|" | ||
echo "| _| | \| | | | | | _____ | _| __) | | _| " | ||
echo "| |___ | |\ | | |_| | |_____| | |___ / __/ | |___ " | ||
echo "|_____| |_| \_| |____/ |_____| |_____| |_____|" | ||
echo | ||
|
||
exit 0 |