Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-16327

Discovery failed when ordering service endpoints only in OrdererOrg groups

    Details

    • Steps to Reproduce:
      Hide
      1. Generate a genesis block which ordering service endpoints only in OrdererOrg groups
      2. Use discovery tool ./discover --configFile discovery_config.yaml config --server peer1.org1.example.com:7051 --channel test
      3. Error log shows in peer log
      2019-08-16 10:27:19.910 UTC [discovery] configQuery -> ERRO 066 Failed fetching config for channel test: config envelope is invalid: field Config.ChannelGroup.Values is empty
      Show
      1. Generate a genesis block which ordering service endpoints only in OrdererOrg groups 2. Use discovery tool ./discover --configFile discovery_config.yaml config --server peer1.org1.example.com:7051 --channel test 3. Error log shows in peer log 2019-08-16 10:27:19.910 UTC [discovery] configQuery -> ERRO 066 Failed fetching config for channel test: config envelope is invalid: field Config.ChannelGroup.Values is empty

      Description

      There has a check in discovery implementation: ValidateConfigEnvelope
      It checks that config block must has OrdererAddressesKey in channel_group values. This assertion in `ValidateConfigEnvelope` maybe wrong in v1.4.2.

      FAB-7559 and v1.4.2 release note say "it is possible and highly recommended to define
      orderer endpoints at the organization level (new 'OrdererEndpoints' stanza
      within the channel configuration of an organization) and not at the global
      'Orderer.Addresses' section of channel configuration".

        Attachments

          Activity

            People

            • Assignee:
              yacovm Yacov Manevich
              Reporter:
              ymlbright MingLiang Yin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code