Hyperledger Fabric v2.5.9 – CCAAS – Install chaincode tries to build a docker image, not taking into consideration that for CCAAS should not do it

I have deployed a Hyperledger Fabric network v2.5.9 with K8S.

The core.yaml in the peer v2.5.9 image already includes the externalBuilder section:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code># List of directories to treat as external builders and launchers for
# chaincode. The external builder detection processing will iterate over the
# builders in the order specified below.
# If you don't need to fallback to the default Docker builder, also unconfigure vm.endpoint above.
# To override this property via env variable use CORE_CHAINCODE_EXTERNALBUILDERS: [{name: x, path: dir1}, {name: y, path: dir2}]
# The path must be an absolute path.
externalBuilders:
- name: ccaas_builder
path: /opt/hyperledger/ccaas_builder/ccaas/bin
propagateEnvironment:
- CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG
</code>
<code># List of directories to treat as external builders and launchers for # chaincode. The external builder detection processing will iterate over the # builders in the order specified below. # If you don't need to fallback to the default Docker builder, also unconfigure vm.endpoint above. # To override this property via env variable use CORE_CHAINCODE_EXTERNALBUILDERS: [{name: x, path: dir1}, {name: y, path: dir2}] # The path must be an absolute path. externalBuilders: - name: ccaas_builder path: /opt/hyperledger/ccaas_builder/ccaas/bin propagateEnvironment: - CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG </code>
# List of directories to treat as external builders and launchers for
    # chaincode. The external builder detection processing will iterate over the
    # builders in the order specified below.
    # If you don't need to fallback to the default Docker builder, also unconfigure vm.endpoint above.
    # To override this property via env variable use CORE_CHAINCODE_EXTERNALBUILDERS: [{name: x, path: dir1}, {name: y, path: dir2}]
    # The path must be an absolute path.
    externalBuilders:
      - name: ccaas_builder
        path: /opt/hyperledger/ccaas_builder/ccaas/bin
        propagateEnvironment:
          - CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG

So after I deployed the network and create the application channel i am trying to install the chaincode to the peers and get the PACKAGE_ID in order i can deploy manually the CCAAS_K8S_POD to which the peer will connect to handle the chaincode lifecycle.

But i understand from the documentation that the detect ccaas binary only should be trigger on the commit chaincode step of the lifecycle.

Here is where i am a little confused, because i would expect that if I connect to the peer client and try to install the following asset-transfer-basic-external.tgz file:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>tar cfz code.tar.gz connection.json
tar cfz asset-transfer-basic-external.tgz metadata.json code.tar.gz
</code>
<code>tar cfz code.tar.gz connection.json tar cfz asset-transfer-basic-external.tgz metadata.json code.tar.gz </code>
tar cfz code.tar.gz connection.json
tar cfz asset-transfer-basic-external.tgz metadata.json code.tar.gz

By executing on the peer:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>peer lifecycle chaincode install asset-transfer-basic-external.tgz;
</code>
<code>peer lifecycle chaincode install asset-transfer-basic-external.tgz; </code>
peer lifecycle chaincode install asset-transfer-basic-external.tgz;

It would try to install the chaincode that does not contain the source code, following the new logic for CCAAS.

But instead I get this error, where it looks like is trying to deploy a docker container for the chaincode as for older versions:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/basic-0e9393b17bb6e3f64ec9d7914c3c935e95aa9a0b3da49b5c75967cdd83e31878-a72aa90629f3437f96bf68400e4bc835d979697e52787dd5acf19a272dc7934d/json": dial unix /var/run/docker.sock: connect: no such file or directory
</code>
<code>Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/basic-0e9393b17bb6e3f64ec9d7914c3c935e95aa9a0b3da49b5c75967cdd83e31878-a72aa90629f3437f96bf68400e4bc835d979697e52787dd5acf19a272dc7934d/json": dial unix /var/run/docker.sock: connect: no such file or directory </code>
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/basic-0e9393b17bb6e3f64ec9d7914c3c935e95aa9a0b3da49b5c75967cdd83e31878-a72aa90629f3437f96bf68400e4bc835d979697e52787dd5acf19a272dc7934d/json": dial unix /var/run/docker.sock: connect: no such file or directory

So why is this happening?

Also could anyone please confirm, that by just adding the externalBuilder section in the peer core.yaml and using a peer version bigger than v2.4 the peer should detect we are trying to deploy the chaincode as an external service?

Many thanks

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật