hyperledger-bevel / bevel-operator-fabric

Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, soon 3.0)
https://hyperledger-bevel.github.io/bevel-operator-fabric/
Apache License 2.0
280 stars 93 forks source link

Getting started errors #69

Closed ZappaBoy closed 2 years ago

ZappaBoy commented 2 years ago

Hi all, I'm following the "Getting started" and I noticed that you added the "chaincode as a service" feature of Hyperledger Fabric. I noticed that using the default PEER_VERSION=2.4.1 and ORDERER_VERSION=2.4.1 the peer creation doesn't work. I think that this is because there is no version 2.4.1 in your quay.io/kfsoftware/fabric-peer (checked at: https://quay.io/repository/kfsoftware/fabric-peer?tab=tags). So I tried with PEER_VERSION=2.4.0-v0.0.4 and the peer creation worked.

After that, I noticed that the Install chaincode section has some problems:

dviejokfs commented 2 years ago

Hi @ZappaBoy

This is most likely because you need to upgrade the kubectl plugin, I ran similar issues when using the previous version, try:

 kubectl krew upgrade hlf   

About the chaincode, the recent getting started docs refer to using chaincode as an external service, can you check the running external chaincodes:

 kubectl get fabricchaincodes.hlf.kungfusoftware.es
ZappaBoy commented 2 years ago

@dviejokfs Thanks for the answer and please excuse me for the delay. I can confirm that upgrading hlf with krew works and fixed both peer/orderer version and chaincode installation issues.

About the chaincode as an external service can you explain how to create your chaincode external service (i think using kfsoftware/chaincode-external image)?

dviejokfs commented 2 years ago

That image is a default one in order to deploy a chaincode for the getting started, if you want to deploy your own chaincode you need to build your own image and deploy it.

You can take a look at the example from fabric-samples, I think is called external chaincode.

More documentation about this will be added to the project soon

ZappaBoy commented 2 years ago

Ok, it's clear, i thought it was some particular image.

Thanks a lot

dviejokfs commented 2 years ago

Closing issue at it seems the problem has been solved