fix(ccaas): use peer-specific archive name to prevent package overwrite#699
fix(ccaas): use peer-specific archive name to prevent package overwrite#699hellokitty09 wants to merge 1 commit into
Conversation
In CCaaS setups with multiple peers, the chaincode connection package
($CHAINCODE_LABEL.tar.gz) was being overwritten during the packaging
loop because the filename didn't include the peer name. This caused all
peers to install the last package, routing all chaincode requests to
the last CCaaS container.
Changes:
- chaincodePackageCCaaS(): archive name now includes peer name
(${CHAINCODE_LABEL}_${PEER_NAME}.tar.gz)
- chaincodeInstall(): detects peer-specific package if available,
falls back to shared package for non-CCaaS chaincodes
TLS support is fully preserved.
Fixes hyperledger-labs#653
Signed-off-by: hellokitty09 <183717166+hellokitty09@users.noreply.github.com>
61b6b0e to
72098a0
Compare
|
Hi, This PR is attempting to solve the same problem as PR #680, which initially had a similar approach to this one — one package per peer — but has since been revised to address the fundamental issue with that approach that I described here: #653 (comment) Also note the ensuing discussion about the distinction between: A) using TLS at the network level, which is an important feature to maintain, and B) using TLS in Peer-to-CCaaS connections, which is independent of the above and has very limited usefulness in typical Fablo use cases while introducing significant complexity and overhead. PR #680 should currently fix issue #653 while preserving A and removing B. Having optional support for B would be nice, but it may not be worth it considering the development and maintenance cost. |
1 similar comment
|
Hi, This PR is attempting to solve the same problem as PR #680, which initially had a similar approach to this one — one package per peer — but has since been revised to address the fundamental issue with that approach that I described here: #653 (comment) Also note the ensuing discussion about the distinction between: A) using TLS at the network level, which is an important feature to maintain, and B) using TLS in Peer-to-CCaaS connections, which is independent of the above and has very limited usefulness in typical Fablo use cases while introducing significant complexity and overhead. PR #680 should currently fix issue #653 while preserving A and removing B. Having optional support for B would be nice, but it may not be worth it considering the development and maintenance cost. |
In CCaaS setups with multiple peers, the chaincode connection package ($CHAINCODE_LABEL.tar.gz) was being overwritten during the packaging loop because the filename didn't include the peer name. This caused all peers to install the last package, routing all chaincode requests to the last CCaaS container.
Changes:
TLS support is fully preserved.
Fixes #653