#elalto #pnfsimulator #deployment #deployment #elalto #pnfsimulator


hbarawkar@...
 

Hi,
I am using elalto relese pnfsimulator 
Git link  https://github.com/hbarawkar/integration.git

run the docker-compose up
config.json format 
{
  "simulatorParams": {
    "vesServerUrl": "http://18.222.109.116:8080/eventListener/v7",
    "repeatInterval": 10,
    "repeatCount": 2
  },
  "templateName": "notification.json",
  "patch": {}
}

notification.json format 

{
  "event": {
    "commonEventHeader": {
      "domain": "notification",
      "eventName": "vFirewallBroadcastPackets",
      "eventId": "4cfc-91cf-31a46",
      "priority": "Normal",
      "reportingEntityName": "myVNF",
      "sequence": 1,
      "sourceName": "ClosedLoopVNF",
      "startEpochMicrosec": 1531616794,
      "lastEpochMicrosec": 1531719042,
      "vesEventListenerVersion": "7.0.1",
      "version": "4.0.1"
    },
    "notificationFields": {
      "changeIdentifier": "PM_MEAS_FILES",
      "changeType": "FileReady",
      "arrayOfNamedHashMap": [
        {
          "name": "A20161221.1031-1041.bin.gz",
          "hashMap": {
            "fileformatType": "org.3GPP.32.435#measCollec",
            "fileFormatVersion": "V10",
            "location": "ftpes://192.169.0.1:22/ftp/rop/A20161224.1030-1045.bin.gz",
            "compression": "gzip"
          }
        },
        {
          "name": "A20161222.1042-1102.bin.gz",
          "hashMap": {
            "fileFormatType": "org.3GPP.32.435#measCollec",
            "fileFormatVersion": "V10",
            "location": "ftpes://192.168.0.102:22/ftp/rop/A20161224.1045-1100.bin.gz",
            "compression": "gzip"
          }
        }
      ],
      "notificationFieldsVersion": "2.0"
    }
  }
}

docker compose file file code 

version: '3'
 
services:
 
  mongo:
    image: mongo
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: zXcVbN123!
      MONGO_INITDB_DATABASE: pnf_simulator
    volumes:
      - ./db:/docker-entrypoint-initdb.d
    ports:
      - "27017:27017"
 
  mongo-express:
    image: mongo-express
    restart: always
    ports:
    - 8081:8081
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: zXcVbN123!
 
  pnf-simulator:
    image: nexus3.onap.org:10003/onap/pnfsimulator
    ports:
      - "5000:5000"
    volumes:
      - ./logs:/var/log
      - ./templates:/app/templates
      - ./store:/app/store
    restart: on-failure
    depends_on:
      - mongo
      - mongo-express
 

Facing some issues with mongoDB connection refuse screen shot attached  and attache the log file

error 1. Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
error 2. java.lang.IllegalArgumentException: Could not resolve placeholder 'templates.dir' in value "${templates.dir}"
error 3. Exception in monitor thread while connecting to server localhost:27017
error 4. Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

Regards





 


Przybysz, Marcin (Nokia - PL/Wroclaw)
 

There is an issue raised for this problem : https://jiradc.int.net.nokia.com/browse/ONAP-5322

Please track jiira.

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of hbarawkar via Lists.Onap.Org
Sent: Monday, March 16, 2020 11:55 AM
To: onap-discuss@...
Subject: [onap-discuss] #elalto #pnfsimulator #deployment

 

Hi,
I am using elalto relese pnfsimulator 
Git link  https://github.com/hbarawkar/integration.git

run the docker-compose up

config.json format 

{

  "simulatorParams": {

    "repeatInterval": 10,

    "repeatCount": 2

  },

  "templateName": "notification.json",

  "patch": {}

}

notification.json format 

{

  "event": {

    "commonEventHeader": {

      "domain": "notification",

      "eventName": "vFirewallBroadcastPackets",

      "eventId": "4cfc-91cf-31a46",

      "priority": "Normal",

      "reportingEntityName": "myVNF",

      "sequence": 1,

      "sourceName": "ClosedLoopVNF",

      "startEpochMicrosec": 1531616794,

      "lastEpochMicrosec": 1531719042,

      "vesEventListenerVersion": "7.0.1",

      "version": "4.0.1"

    },

    "notificationFields": {

      "changeIdentifier": "PM_MEAS_FILES",

      "changeType": "FileReady",

      "arrayOfNamedHashMap": [

        {

          "name": "A20161221.1031-1041.bin.gz",

          "hashMap": {

            "fileformatType": "org.3GPP.32.435#measCollec",

            "fileFormatVersion": "V10",

            "location": "ftpes://192.169.0.1:22/ftp/rop/A20161224.1030-1045.bin.gz",

            "compression": "gzip"

          }

        },

        {

          "name": "A20161222.1042-1102.bin.gz",

          "hashMap": {

            "fileFormatType": "org.3GPP.32.435#measCollec",

            "fileFormatVersion": "V10",

            "location": "ftpes://192.168.0.102:22/ftp/rop/A20161224.1045-1100.bin.gz",

            "compression": "gzip"

          }

        }

      ],

      "notificationFieldsVersion": "2.0"

    }

  }

}


docker compose file file code 

version: '3'

 

services:

 

  mongo:

    image: mongo

    restart: always

    environment:

      MONGO_INITDB_ROOT_USERNAME: root

      MONGO_INITDB_ROOT_PASSWORD: zXcVbN123!

      MONGO_INITDB_DATABASE: pnf_simulator

    volumes:

      - ./db:/docker-entrypoint-initdb.d

    ports:

      - "27017:27017"

 

  mongo-express:

    image: mongo-express

    restart: always

    ports:

    - 8081:8081

    environment:

      ME_CONFIG_MONGODB_ADMINUSERNAME: root

      ME_CONFIG_MONGODB_ADMINPASSWORD: zXcVbN123!

 

  pnf-simulator:

    image: nexus3.onap.org:10003/onap/pnfsimulator

    ports:

      - "5000:5000"

    volumes:

      - ./logs:/var/log

      - ./templates:/app/templates

      - ./store:/app/store

    restart: on-failure

    depends_on:

      - mongo

      - mongo-express

 


Facing some issues with mongoDB connection refuse screen shot attached  and attache the log file

error 1. Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
error 2. java.lang.IllegalArgumentException: Could not resolve placeholder 'templates.dir' in value "${templates.dir}"
error 3. Exception in monitor thread while connecting to server localhost:27017

error 4. Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

Regards


 

 


Przybysz, Marcin (Nokia - PL/Wroclaw)
 

Sorry it’s internal link 😊

I will let you know once correction is ready.

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of Przybysz, Marcin (Nokia - PL/Wroclaw) via Lists.Onap.Org
Sent: Monday, March 16, 2020 3:47 PM
To: onap-discuss@...; hbarawkar@...
Subject: Re: [onap-discuss] #elalto #pnfsimulator #deployment

 

There is an issue raised for this problem : https://jiradc.int.net.nokia.com/browse/ONAP-5322

Please track jiira.

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of hbarawkar via Lists.Onap.Org
Sent: Monday, March 16, 2020 11:55 AM
To: onap-discuss@...
Subject: [onap-discuss] #elalto #pnfsimulator #deployment

 

Hi,
I am using elalto relese pnfsimulator 
Git link  https://github.com/hbarawkar/integration.git

run the docker-compose up

config.json format 

{

  "simulatorParams": {

    "repeatInterval": 10,

    "repeatCount": 2

  },

  "templateName": "notification.json",

  "patch": {}

}

notification.json format 

{

  "event": {

    "commonEventHeader": {

      "domain": "notification",

      "eventName": "vFirewallBroadcastPackets",

      "eventId": "4cfc-91cf-31a46",

      "priority": "Normal",

      "reportingEntityName": "myVNF",

      "sequence": 1,

      "sourceName": "ClosedLoopVNF",

      "startEpochMicrosec": 1531616794,

      "lastEpochMicrosec": 1531719042,

      "vesEventListenerVersion": "7.0.1",

      "version": "4.0.1"

    },

    "notificationFields": {

      "changeIdentifier": "PM_MEAS_FILES",

      "changeType": "FileReady",

      "arrayOfNamedHashMap": [

        {

          "name": "A20161221.1031-1041.bin.gz",

          "hashMap": {

            "fileformatType": "org.3GPP.32.435#measCollec",

            "fileFormatVersion": "V10",

            "location": "ftpes://192.169.0.1:22/ftp/rop/A20161224.1030-1045.bin.gz",

            "compression": "gzip"

          }

        },

        {

          "name": "A20161222.1042-1102.bin.gz",

          "hashMap": {

            "fileFormatType": "org.3GPP.32.435#measCollec",

            "fileFormatVersion": "V10",

            "location": "ftpes://192.168.0.102:22/ftp/rop/A20161224.1045-1100.bin.gz",

            "compression": "gzip"

          }

        }

      ],

      "notificationFieldsVersion": "2.0"

    }

  }

}


docker compose file file code 

version: '3'

 

services:

 

  mongo:

    image: mongo

    restart: always

    environment:

      MONGO_INITDB_ROOT_USERNAME: root

      MONGO_INITDB_ROOT_PASSWORD: zXcVbN123!

      MONGO_INITDB_DATABASE: pnf_simulator

    volumes:

      - ./db:/docker-entrypoint-initdb.d

    ports:

      - "27017:27017"

 

  mongo-express:

    image: mongo-express

    restart: always

    ports:

    - 8081:8081

    environment:

      ME_CONFIG_MONGODB_ADMINUSERNAME: root

      ME_CONFIG_MONGODB_ADMINPASSWORD: zXcVbN123!

 

  pnf-simulator:

    image: nexus3.onap.org:10003/onap/pnfsimulator

    ports:

      - "5000:5000"

    volumes:

      - ./logs:/var/log

      - ./templates:/app/templates

      - ./store:/app/store

    restart: on-failure

    depends_on:

      - mongo

      - mongo-express

 


Facing some issues with mongoDB connection refuse screen shot attached  and attache the log file

error 1. Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
error 2. java.lang.IllegalArgumentException: Could not resolve placeholder 'templates.dir' in value "${templates.dir}"
error 3. Exception in monitor thread while connecting to server localhost:27017

error 4. Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

Regards

 

 


hbarawkar@...
 

Hi ,

We would like to know to expected date to close this issue or  Is there any external link to track this issue ?

Regards