-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException during the docker tutorial #288
Comments
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 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 :
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 Why not found? In the Point of Presence information it appears (see screen shot) |
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 |
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
The text was updated successfully, but these errors were encountered: