Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-2937

DMAAP Feed provisioning - Issue with multiple client_id

XMLWordPrintable

      Jira to track the issue reported by kkuzmick

      It was found during test the application config json is generated incorrectly when multiple client_id  is present (this can happen when cleanup is not done and/or multiple instances deployed)

       

      Added below notes from KK

      Current implementation of helm charts grabs all mrClientIds in deployment for dcae-pm-mapper-init-merge-config  (see marked code)

       

      for file in $(ls topics*); do              
       NUM=$(echo "$file" | sed 's/topicsConfig-\([0-9]\+\) resp.json/\1/')              
       export MR_FILES_PUBLISHER_CLIENT_ID_"$NUM"="$(grep -o '"mrClientId":"[^"]*' "$file" | cut -d '"' -f4)" 
      done
      

      Unfortunately when there is more mrClientId then we have an issue with this approach,  init container try to assign all client ids  to  client_id  key-> see attached PERFORMANCE_MEASUREMENTS topic.json file , and marked code below.

      streams_publishes:
       dmaap_publisher:
       dmaap_info:
       client_id: 1633594150887
       1633589949076
       1633595468529
       client_role: org.onap.dcae.pmPublisher
       location: san-francisco
       topic_url: http://message-router:3904/events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS
       type: message_router
       streams_subscribes:
       dmaap_subscriber:
       dmaap_info:
       decompress: true
       delivery_url: https://dcae-pm-mapper:8443/delivery
       location: san-francisco
       password: password
       privileged: true
       subscriber_id:
       username: username
       type: data_router
       trust_store_pass_path: /opt/app/pm-mapper/etc/cert/trust.pass
       trust_store_path: /opt/app/pm-mapper/etc/cert/trust.jks
      

       

       

       

            jackl Jack Lucas
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: