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

Add config.yaml to msp folder for User1 in test-network

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • v2.1.1
    • None
    • fabric-samples
    • None
    • (Please add steps to reproduce)

    Description

      In fabric-samples/test-network, an user (User1) is created for each org.
      When using FabricCA, the created user does not work because the config.yaml, which is required when enabling NodeOUs, in not placed in the msp folder.

      The following is an example to try to use the user.

      ./network.sh up createChannel -ca
      ./network.sh deployCC
      
      export FABRIC_CFG_PATH=$PWD/../config/
      export PATH=${PWD}/../bin:${PWD}:$PATH
      export CORE_PEER_TLS_ENABLED=true
      export CORE_PEER_LOCALMSPID="Org1MSP"
      export CORE_PEER_TLS_ROOTCERT_FILE=${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
      export CORE_PEER_MSPCONFIGPATH=${PWD}/organizations/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp
      export CORE_PEER_ADDRESS=localhost:7051
      
      ## Send transaction using the user (it fails)
      peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCars"]}'
      2020-06-22 23:06:33.152 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory (..)/src/github.com/hyperledger/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp: administrators must be declared when no admin ou classification is set
      
      ls ${PWD}/organizations/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp
      IssuerPublicKey  IssuerRevocationPublicKey  cacerts  keystore  signcerts  user ## There is No config.yaml
      

      Attachments

        Activity

          People

            tatsu-sato Tatsuya Sato
            tatsu-sato Tatsuya Sato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: