Wrong EtcdRaft.Consenters.Port generated in configtxOrderer_default.tpl and configtxProfile_default.tpl
To Reproduce
With network orderers config:
network:
# Network level configuration specifies the attributes required for each organization
# to join an existing network.
type: fabric
version: 2.2.2 # currently tested 1.4.8 and 2.2.2
# frontend: enabled #Flag for frontend to enabled for nodes/peers
#Environment section for Kubernetes setup
env:
type: test # tag for the environment. Important to run multiple flux on single cluster
proxy: none # values can be 'haproxy' or 'ambassador'
# ...
# Services maps to the pods that will be deployed on the k8s cluster
# This sample is an orderer service and includes a zk-kafka consensus
services:
ca:
name: ca
subject: "/C=CN/ST=Hunan/L=Changsha/O=Orderer/CN=ca.hl-fabric-orderer-net"
type: ca
grpc:
port: 7054
consensus:
name: raft
# type: broker #This field is not consumed for raft consensus
# replicas: 4 #This field is not consumed for raft consensus
# grpc:
# port: 9092 #This field is not consumed for raft consensus
orderers:
# This sample has multiple orderers as an example.
# You can use a single orderer for most production implementations.
# For RAFT consensus, have odd number (2n+1) of orderers for consensus agreement to have a majority.
- orderer:
name: orderer1
type: orderer
consensus: raft
grpc:
port: 7050
- orderer:
name: orderer2
type: orderer
consensus: raft
grpc:
port: 7050
- orderer:
name: orderer3
type: orderer
consensus: raft
grpc:
port: 7050
Run site playbook ansible-playbook platforms/shared/configuration/site.yaml ...
Describe the bug
Wrong
EtcdRaft.Consenters.Port
generated inconfigtxOrderer_default.tpl
andconfigtxProfile_default.tpl
To Reproduce
Run site playbook
ansible-playbook platforms/shared/configuration/site.yaml ...
cat ./build/configtx.yaml
{pod="orderer3-0"}
Expected behavior
The
Consenters.Port
should be consistent withAddresses
and equals to 7050, but was 8443.Environment (please complete the following information):