Closed markopenbaton closed 7 years ago
Hi @markopenbaton
This feature is used by myself many time and it is working. There must be some wrong configuration with your openstack installation.
When you say
Assign floating ip for the VM upon launch I believe you mean that after the VM is deployed you are not able to assign floating ip to it. Is there enough available?
yes that is correct after the VM is deployed i am not able to assign floating ip to it. There are more than 4-5 floating ip's available in the pool and also below is the way i have coded in the NSD.
"vnfc":[ { "connection_point":[ { "floatingIp":"random", "virtual_link_reference":"mgmt" } ] }
Is there any other changes apart from above do i need to code in order to make this working..?
I have checked my openstack installation it is good there are no issues.
finally floating ip's are not assigned to the vm upon launch with "floatingIp":"random" in NSD Can you suggest...?
@markopenbaton could you please provide the log of the NFVO and openstack plugin? I think this will help us understanding why your floating IPs are not assigned. Thx.
hi below is the log
hi 2016-11-17 23:10:47.583 ERROR 22905 --- [SimpleAsyncTaskExecutor-378] org.openbaton.vim_impl.vim.OpenstackVIM : Not launched VM with hostname bind9-85 successfully on VimInstance vim-instance. Caused by: org.openbaton.exceptions.VimDriverException: java.lang.NullPointerException: description 2016-11-17 23:10:47.610 ERROR 22905 --- [OpenbatonTask-5] o.o.n.v.tasks.abstracts.AbstractTask : There was an uncaught exception. Message is: org.openbaton.exceptions.VimException: Not launched VM with hostname bind9-85 successfully on VimInstance vim-instance. Caused by: org.openbaton.exceptions.VimDriverException: java.lang.NullPointerException: description 2016-11-17 23:10:47.671 INFO 22905 --- [OpenbatonTask-5] o.o.n.v.tasks.abstracts.AbstractTask : Saved the VNFR bind9 with status error after an exception 2016-11-17 23:10:48.094 INFO 22905 --- [SimpleAsyncTaskExecutor-107] org.openbaton.nfvo.vnfm_reg.VnfmManager : Executing Task errorTask for vnfr bind9. Cyclic=true 2016-11-17 23:10:48.095 ERROR 22905 --- [OpenbatonTask-20] o.o.n.v.tasks.abstracts.AbstractTask : ERROR from VNFM: java.lang.NullPointerException 2016-11-17 23:10:48.106 ERROR 22905 --- [OpenbatonTask-20] o.o.n.v.tasks.abstracts.AbstractTask : ERROR for VNFR: bind9 2016-11-17 23:10:48.120 ERROR 22905 --- [OpenbatonTask-20] o.o.n.v.tasks.abstracts.AbstractTask : There was an uncaught exception. Message is: Object of class [org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord] with identifier [6e71288e-af72-4fe9-9771-270ee9c47157]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord#6e71288e-af72-4fe9-9771-270ee9c47157] 2016-11-17 23:11:31.483 INFO 22905 --- [SimpleAsyncTaskExecutor-379] org.openbaton.vim_impl.vim.OpenstackVIM : Launched VNFCInstance: VNFCInstance{vim_id='9d0307bc-27d0-4a54-a23c-18d709ca3fa6', vc_id='0f1e47df-3162-41f3-8ef6-40869f95cb15', hostname='scscf-477', state='null', vnfComponent=VNFComponent{connection_point=[VNFDConnectionPoint{floatingIp='null', virtual_link_reference='mgmt'}], id='c07e0994-6bd2-4e90-9590-7826cdc5c107', version=0}, floatingIps=[], ips=[Ip{id='null', version=0, netName='mgmt', ip='192.168.0.35'}]} VNFComponent{connection_point=[VNFDConnectionPoint{floatingIp='null', virtual_link_reference='mgmt'}], id='null', version=0} on VimInstance vim-instance this is what log says finally throws this error by open baton upon bind9 vm launch when i added"floatingIp":"random", in the NSD
@markopenbaton could you please provide the whole log files of the NFVO, of openstack plugin and of the GenericVNFM?
which version of openstack are you using?
The NFVO version i am using is 3.0. I am still having issues in floating ip assignment. It is not working as expected
same issue also i am faceing
Assign floating ip for the VM upon launch is not working with Openbaton
added "vnfc":[
{
"connection_point":[
{
"floatingIp":"random", "virtual_link_reference":"mgmt" } ] } in The Nsd.
and tried launching the vm. Assign floating ip for the VM upon launch is not working with Openbaton
Thanks Mark