从kafka迁移到Hyperledger fabirc中的RAFT时出错

问题描述 投票:1回答:1

我正在从卡夫卡迁移到木筏,将状态从“ NORMAL”更改为“ STATE_MAINTENANCE”,并根据该程序创建了最终的预期信封。

注意:我们正在使用BYFN脚本HF版本:1.4.3

我的CLI指向Org1MSP,我签署了配置更新事务,后来我更改了CLI指向Org2MSP并进行了签名,最后将新的通道配置更新提交给订购者。提交后,出现以下错误消息。

CLI错误:“ Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value]  /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

订购者日志:“ [channel: mychannel] Rejecting broadcast of config message from 172.21.0.13:51078 because of error: error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Value]  /Channel/Orderer/ConsensusType not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

[如果做错了请让我知道。

提前感谢。

hyperledger-fabric hyperledger hyperledger-fabric-ca raft
1个回答
0
投票

默认情况下,cryptogen工具生成以OU为客户端的订购者管理员用户证书,用于1.4.3结构版本。对于对等管理员用户,它将生成带有OU作为admin的证书(正确(预期))。如果是订购者,则其将错误的OU(组织单位)创建为客户端。我们需要在订购者部分中添加以下部分crypto-config.yaml。

CA:
  OrganizationalUnit: admin

添加完以上部分后,通过以下命令以管理员身份重新创建证书并检查订购者证书OU

openssl x509 -in certificate.crt -text
© www.soinside.com 2019 - 2024. All rights reserved.