openbaton / openstack4j-plugin

Apache License 2.0
3 stars 12 forks source link

Can not register a PoP [Code : 422] Help wanted #70

Closed omeshF closed 6 years ago

omeshF commented 6 years ago

I am using the latest NFVO and trying to upload a PoP with the following json

{ "name":"vim-instance", "authUrl":"http://192.168.174.136:5000/v2.0", "tenant":"tenant-name", "username":"userName", "password":"password", "keyPair":"keyName", "securityGroups": [ "securityName" ], "type":"openstack4j", "location":{ "name":"Berlin", "latitude":"52.525876", "longitude":"13.314400" } } I receive the following error.

org.openbaton.exceptions.PluginException: Error instantiating plugin: no plugin found with name: vim-drivers.openstack4j. into queues: [nfvo.event.register, nfvo.event.unregister, nfvo.manager.handling, vim-drivers.openstack.openstack, vim-drivers.test.test, vnfm.nfvo.actions, vnfm.nfvo.actions.reply] Code: 422

Following is a log from openstack plugin log

LF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/lib/openbaton/plugins/vim-drivers/openbaton-plugin-vimdriver-openstack-4j-5.2.0.jar!/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/openbaton/plugins/vim-drivers/openbaton-plugin-vimdriver-openstack-4j-5.2.0.jar!/lib/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory] 2018-05-02 14:23:31:345 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:346 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:347 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:347 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:348 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:348 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:361 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:362 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:368 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:368 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:370 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:370 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:372 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:373 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:375 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:375 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:376 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:376 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$ 2018-05-02 14:23:31:379 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - external-properties-file: /etc/openbaton/plugin/openstack/driver.properties doesn't exist 2018-05-02 14:23:31:379 +0100 [main] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Properties are {connection-timeout=10000, external-properties-file=/etc/openbaton/plugin/openstack/driver.properti$

Please help. Thank you in advance

omeshF commented 6 years ago

@gc4rella @

mpauls commented 6 years ago

Using type 'openstack' in the VIM definition will fix the issue. Alternatively, you may change the type of the openstack4j driver also to 'openstack4j' in the configuration files of the driver itself. I close this issue for the moment. You can reopen it if this will not fix it.