IBM-Blockchain-Archive / ibm-container-service

IBM Blockchain Platform for Developers on IBM Container Service
Apache License 2.0
89 stars 73 forks source link

create_all fails during the composer playground card import #108

Closed rischioto closed 6 years ago

rischioto commented 6 years ago

create_all fails during the composer playground card import. composer-card-import logs shows:

Successfully created business network card file to 
    Output file: PeerAdmin.card

Command succeeded

Failed to import the business network card
keyword:    required
dataPath:  
schemaPath: #/required
params:
 missingProperty: certificateAuthorities
message:    should have required property 'certificateAuthorities'

Error: Errors found in the connection profile in the card
Command failed`

Looks that the JSON struct of ibm-container-service/cs-offerings/kube-configs/composer-card-import.yaml are wrong. The CA Session shows:

        "ca.org1.example.com": {
              "url": "http://localhost:7054",
              "certificateAuthorities": {
              "caName": "ca.org1.example.com"
            }
          },

and should be:

        "certificateAuthorities": {
            "ca.org1.example.com": {
              "url": "http://localhost:7054",
              "caName": "ca.org1.example.com"
            }
          },
pvrbharg commented 6 years ago

The fix provided by @rischioto worked for me as well as my customer that I am currently engaged with on their Azure cloud instance. FYI and thank you @rischioto.

lesleyannjordan commented 6 years ago

See ticket #110 for full set of changes required. Impleted under PR #114

sstone1 commented 6 years ago

Looks resolved; if not, Composer support has been removed anyway.