Open JohanPy opened 6 years ago
There is a nil pointer in the docker driver so this issue should be moved to the docker driver repo. i suppose from the logs, the problem is while retrieving the image id from the tag defined in the vnfd.json
. Most probably because was never pulled in the docker engine. Although the pull should be done while uploading the package, please try to pull manually the mongodb image and try again, but this time using the right docker images. You do not need the full standalone openbaton, but the nfvo, vnfm and plugin.
you can use this compose file:
version: '3'
services:
nfvo:
image: openbaton/nfvo:latest
depends_on:
- rabbitmq_broker
- nfvo_database
restart: always
environment:
- NFVO_RABBIT_BROKERIP=rabbitmq_broker
- NFVO_PLUGIN_INSTALLATION-DIR=/dev/null
- NFVO_VIM_ACTIVE_CHECK=false
- SPRING_RABBITMQ_HOST=rabbitmq_broker
- SPRING_DATASOURCE_URL=jdbc:mysql://nfvo_database:3306/openbaton
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.mariadb.jdbc.Driver
- SPRING_JPA_DATABASE-PLATFORM=org.hibernate.dialect.MySQLDialect
ports:
- "8080:8080"
vnfm-docker:
image: openbaton/vnfm-docker-go:latest
depends_on:
- nfvo
restart: always
command: -ip rabbitmq_broker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
driver-docker:
image: openbaton/driver-docker-go:latest
depends_on:
- nfvo
restart: always
command: -ip rabbitmq_broker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
nfvo_database:
image: mariadb
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=openbaton
- MYSQL_USER=admin
- MYSQL_PASSWORD=changeme
rabbitmq_broker:
image: rabbitmq:3-management-alpine
hostname: openbaton-rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=openbaton
ports:
- "5672:5672"
- "15672:15672"
the workers are completely unrelated with the json format issue you hit. would be good to have a way to replicate it
Thank you for your help !
I had already pulled the lastest mongo docker before starting OpenBaton and the image is in the list with the same tag ( ["mongo:latest"] ) as the config file :
image:
upload: "false"
names:
- "mongo:latest"
link: "mongo:latest"
image-config:
name: "mongo:latest"
Furthermore with this compose file it works perfectly (thank you again) and I use the same pop.json and the same .jar for my VNF package (but I dind't use my config.toml for the driver and the vnfm).
My problem is sloved, but if you think there is a real bug and it's not just a misconfiguration in the dockers I used to run OpenBaton I can pursue the investigation.
I will try to reproduce the misconfiguration json and open an issue if I can do it.
Hello,
I am following the same tutorial as you @JohanPy that is docker-tutorial .
I have already installed:
My problem is that when I try to launch a NSD, this mongo db for example, the VNFM driver sais
[ERRO] docker-vnf -> handleMess ▶ ERROR: &{**Image with name or id** [mongo:latest] **not found** 0xc4200c78c0 88263e7d-eacd-4226-8cb9-0225e9aa1fd3}
Why not found? In the Point of Presence information it appears (see screen shot) Do you have any idea about what could be happening? @JohanPy @lorenzotomasini @raj2569 @mcilloni
Thanks in advance. Regards.
Hi @prom450 , Could you solve your problem ?I have a similar issue like yours. I created the issue here. I want to to run Iperf NSD tutorial in two different docker containers as in this tutorial. But, the VNFM says [ERRO] docker-vnf -> handleMess ▶ ERROR: &{Image with name or id [iperfserver:latest] not found 0xc4200cf200 d0f4c0cc-ad9a-4a8e-81c5-630590db75a2}
although In the Point of Presence information the image appears. Thanks !
Hello,
I'm following the docker tutorial, the first steps go well without problems but when I try to launch the Mongo NS I got "an uncaught exception. Message is: java.lang.NullPointerException" from the NFVO.
I can't figure out what I did wrong. I'd like some help.
Log and explanations :
openbaton.log
no log in the plugin directory for docker (only for plugin-openstack and plugin-test)
dockerVNFM
docker driver
All my docker images are listed and I can run manually the mongo:lastest docker
I use those command to launch my environement :
with this config.toml
(I needed to increase the "workers" value to avoid having an error "JSON malformated" )
The vnfpakage files are the same I just change the image upload parameter to "false"
I created the NSD using the webui and just by selecting mongodb from the VNFDs Catalogue menu