Failed to create network
lapnd opened this issue · 4 comments
lapnd commented
Hello,
I'm trying to launch iPerf test from tutorial http://openbaton.github.io/documentation/iperf-NSR/
I got this issue when try to launch the service
Not created Network with name: private successfully on VimInstance openstack. Caused by: org.openbaton.exceptions.VimDriverException: org.openbaton.catalogue.nfvo.networks.BaseNetwork cannot be cast to org.openbaton.catalogue.nfvo.networks.Network. Error code: 422
This is openbaton log
2017-12-01 04:49:00.231 INFO 10897 --- [http-nio-8080-exec-9] o.o.n.c.a.NetworkServiceRecordManagement : Fetched NetworkServiceDescriptor: NSD iperf + floatingIPs
2017-12-01 04:49:00.231 INFO 10897 --- [http-nio-8080-exec-9] o.o.n.c.a.NetworkServiceRecordManagement : VNFD are:
2017-12-01 04:49:00.232 INFO 10897 --- [http-nio-8080-exec-9] o.o.n.c.a.NetworkServiceRecordManagement : Checking if all vnfm are registered and active
2017-12-01 04:49:00.235 WARN 10897 --- [http-nio-8080-exec-9] o.o.n.c.a.NetworkServiceRecordManagement : VNFPackage does not provide supported VIM. I will skip the check!
2017-12-01 04:49:00.237 INFO 10897 --- [http-nio-8080-exec-9] o.o.nfvo.core.core.NetworkManagement : Creating network private on vim openstack
2017-12-01 04:49:00.287 ERROR 10897 --- [http-nio-8080-exec-9] org.openbaton.vim_impl.vim.GenericVIM : Not created Network with name: private successfully on VimInstance openstack. Caused by: org.openbaton.exceptions.VimDriverException: org.openbaton.catalogue.nfvo.networks.BaseNetwork cannot be cast to org.openbaton.catalogue.nfvo.networks.Network
2017-12-01 04:49:00.288 ERROR 10897 --- [http-nio-8080-exec-9] o.o.n.a.e.GlobalExceptionHandler : Exception was thrown -> Return message: Not created Network with name: private successfully on VimInstance openstack. Caused by: org.openbaton.exceptions.VimDriverException: org.openbaton.catalogue.nfvo.networks.BaseNetwork cannot be cast to org.openbaton.catalogue.nfvo.networks.Network
This openstack plugin log
[pool-3-thread-7] DEBUG org.openbaton.nfvo.common.configuration.NfvoGsonDeserializerVimInstance - Looking for class org.openbaton.catalogue.nfvo.viminstances.OpenstackVimInstance
[pool-3-thread-7] INFO org.openbaton.drivers.openstack4j.OpenStack4JDriver - Listed images for BaseVimInstance with name: openstack -> Images: [GlanceImage{id=b64f4d77-ae34-4124-b583-8e55878c087f, name=ubuntu-14.04-server-cloudimg-amd64-disk1, status=ACTIVE, diskFormat=RAW, containerFormat=BARE, size=262406656, owner=4a0f3bdeff834bf3803e48cdf6582c50, minRam=0, minDisk=0, created=Fri Dec 01 04:20:16 UTC 2017, updated=Fri Dec 01 04:20:17 UTC 2017, isPublic=true, isProtected=false, isDeleted=false, propterties={},
}]
[pool-3-thread-7] INFO org.openbaton.drivers.openstack4j.OpenStack4JDriver - Received all networks: [NeutronNetwork{name=yardstick-public, status=ACTIVE, subnets=[450e3a29-052a-404e-87d8-aa9ceb3620e1], provider:physical_network=extnet, adminStateUp=true, tenantId=4a0f3bdeff834bf3803e48cdf6582c50, provider:network_type=FLAT, router:external=true, id=e3d65436-7d8f-42eb-9106-d2d0d3091e2f, shared=false}]
[pool-3-thread-7] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Getting Subnet with extId: 450e3a29-052a-404e-87d8-aa9ceb3620e1 from BaseVimInstance with name: openstack
[pool-3-thread-7] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Found subnet: NeutronSubnet{id=450e3a29-052a-404e-87d8-aa9ceb3620e1, name=public, enableDHCP=false, network-id=e3d65436-7d8f-42eb-9106-d2d0d3091e2f, tenant_id=4a0f3bdeff834bf3803e48cdf6582c50, dns_nameservers=[], allocation_pools=[NeutronPool{start=10.70.5.50, end=10.70.5.100}], host_routes=[], ip_version=V4, gateway_ip=10.70.5.1, cidr=10.70.5.0/24}
[pool-3-thread-7] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Reply queue is: amq.gen-Yot9iiWZ3KPoRC55T2wceg
[pool-3-thread-5] INFO org.openbaton.drivers.openstack4j.OpenStack4JDriver -
Waiting for RPC requests
[pool-3-thread-5] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Received message
[pool-3-thread-5] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - There are 2 parameters
[pool-3-thread-5] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Looking for method: createNetwork
[pool-3-thread-5] DEBUG org.openbaton.nfvo.common.configuration.NfvoGsonDeserializerVimInstance - Looking for class org.openbaton.catalogue.nfvo.viminstances.OpenstackVimInstance
[pool-3-thread-5] DEBUG org.openbaton.drivers.openstack4j.OpenStack4JDriver - Reply queue is: amq.gen-8GAVx7Gmq2oASIBBb3oOoQ
I use
- latest Openbaton verision
- Openstack Pike (AIO, installed using Packstack)
Do you know what I were missing?
lorenzotomasini commented
Indeed is a bug in the create network, i am working on it
lorenzotomasini commented
The issue is fixed on 5.1 and master branch, a new minor release is also done (5.1.1) for nfvo and openstack4j plugin.
@flaviomu is publishing the new debians, as soon as they are out you can test them and let us know if the problem persist
flaviomu commented
@lapd-viosoft the new debians are out
lapnd commented
Thank you!
It's working fine!