SO-Openstack adapter: Enable to create stack when using keystone v3 endpoint.

Description

If managed OpenStack cloud is configured to use keystone v3 endpoint, stack creation fails with the following stack trace:

2020-11-07T08:13:16.331Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.openstack.utils.MsoCommonUtils - RA_CONNECTION_EXCEPTION 300 Openstack Keystone Error on TokenAuth: Error [code=404, title=Not Found, message=The resource could not be found.]
2020-11-07T08:13:16.332Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.adapters.vnf.MsoVnfAdapterImpl - Error creating Stack
org.onap.so.openstack.exceptions.MsoOpenstackException: The resource could not be found.
at org.onap.so.openstack.utils.MsoCommonUtils.keystoneErrorToMsoException(MsoCommonUtils.java:188)
at org.onap.so.openstack.utils.MsoCommonUtils.getKeystoneAuthHolder(MsoCommonUtils.java:496)
at org.onap.so.openstack.utils.MsoHeatUtils.getHeatClient(MsoHeatUtils.java:582)
at org.onap.so.openstack.utils.MsoHeatUtils.queryHeatStack(MsoHeatUtils.java:632)
at org.onap.so.openstack.utils.MsoHeatUtils.createStack(MsoHeatUtils.java:181)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl.createVfModule(MsoVnfAdapterImpl.java:1052)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$FastClassBySpringCGLIB$$8b1f101c.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$EnhancerBySpringCGLIB$$39b196f6.createVfModule(<generated>)
at org.onap.so.adapters.vnf.VnfAdapterRest$CreateVfModuleTask.run(VnfAdapterRest.java:359)
at java.lang.Thread.run(Thread.java:748)
2020-11-07T08:13:16.333Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.adapters.vnf.MsoVnfAdapterImpl - unhandled exception in create VF
org.onap.so.adapters.vnf.exceptions.VnfException: 404 Not Found: The resource could not be found.
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl.createVfModule(MsoVnfAdapterImpl.java:1065)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$FastClassBySpringCGLIB$$8b1f101c.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$EnhancerBySpringCGLIB$$39b196f6.createVfModule(<generated>)
at org.onap.so.adapters.vnf.VnfAdapterRest$CreateVfModuleTask.run(VnfAdapterRest.java:359)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.onap.so.openstack.exceptions.MsoOpenstackException: The resource could not be found.
at org.onap.so.openstack.utils.MsoCommonUtils.keystoneErrorToMsoException(MsoCommonUtils.java:188)
at org.onap.so.openstack.utils.MsoCommonUtils.getKeystoneAuthHolder(MsoCommonUtils.java:496)
at org.onap.so.openstack.utils.MsoHeatUtils.getHeatClient(MsoHeatUtils.java:582)
at org.onap.so.openstack.utils.MsoHeatUtils.queryHeatStack(MsoHeatUtils.java:632)
at org.onap.so.openstack.utils.MsoHeatUtils.createStack(MsoHeatUtils.java:181)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl.createVfModule(MsoVnfAdapterImpl.java:1052)
... 11 common frames omitted
2020-11-07T08:13:16.367Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.adapters.vnf.VnfAdapterRest - Exception :
org.onap.so.adapters.vnf.exceptions.VnfException: Exception during create VF 404 Not Found: The resource could not be found.
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl.createVfModule(MsoVnfAdapterImpl.java:1088)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$FastClassBySpringCGLIB$$8b1f101c.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at org.onap.so.adapters.vnf.MsoVnfAdapterImpl$$EnhancerBySpringCGLIB$$39b196f6.createVfModule(<generated>)
at org.onap.so.adapters.vnf.VnfAdapterRest$CreateVfModuleTask.run(VnfAdapterRest.java:359)
at java.lang.Thread.run(Thread.java:748)
2020-11-07T08:13:16.394Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.adapters.vnf.BpelRestClient - Sending to BPEL server: http://so-bpmn-infra.onap:8081/mso/WorkflowMessage/VNFAResponse/96a6f96f-7ccb-4aa7-b850-69bb38c7930a
2020-11-07T08:13:16.394Z|1f37b290-9076-45ff-a6b9-df169447c92b|org.onap.so.adapters.vnf.BpelRestClient - Content is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vfModuleException>
<messageId>96a6f96f-7ccb-4aa7-b850-69bb38c7930a</messageId>
<category>INTERNAL</category>
<message>Exception during create VF 404 Not Found: The resource could not be found.</message>
<rolledBack>true</rolledBack>
</vfModuleException>

 

 

Environment

openstack-adapter:1.6.4

Activity

Show:

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created November 9, 2020 at 8:23 AM
Updated November 9, 2020 at 8:23 AM
Resolved November 9, 2020 at 8:23 AM