openslice / io.openslice.mano

MANO wrapper service
Apache License 2.0
2 stars 1 forks source link

Check why duplicate onboarding descriptors are being created #7

Open kostistr opened 1 year ago

kostistr commented 1 year ago

Duplicate onboarding descriptors generate the error below:

2022-11-08 09:52:34,507 INFO io.openslice.mano.MANOController : Got MP Version:OSMvTEN, 2022-11-08 09:52:34,513 INFO io.openslice.mano.MANOController : NSD 2ff4e345-c123-4a6f-b9cc-0b30c0400ef1 added, 2022-11-08 09:52:34,517 INFO io.openslice.mano.MANOController : NSD 2ff4e345-c123-4a6f-b9cc-0b30c0400ef1 does not exist. Adding to db., 2022-11-08 09:52:34,538 ERROR io.openslice.mano.MANOController : null, java.lang.NullPointerException, at io.openslice.mano.MANOClient.getVxFOnBoardedDescriptorByVxFAndMP(MANOClient.java:633), at io.openslice.mano.MANOController.synchronizeNSDsOSM10(MANOController.java:1857), at io.openslice.mano.MANOController.synchronizeNSDs(MANOController.java:1507), at io.openslice.mano.MANOController.checkAndUpdateMANOProvidersResources(MANOController.java:872), at io.openslice.mano.MANOController.checkAndUpdateRunningDeploymentDescriptors(MANOController.java:2212), at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method), at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), at java.base/java.lang.reflect.Method.invoke(Method.java:567), at org.apache.camel.support.ObjectHelper.invokeMethodSafe(ObjectHelper.java:382), at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:494), at org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:316), at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:286), at org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:146), at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:81), at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:463), at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:179), at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64), at org.apache.camel.processor.Pipeline.process(Pipeline.java:184), at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398), at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:210), at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76), at java.base/java.util.TimerThread.mainLoop(Timer.java:556), at java.base/java.util.TimerThread.run(Timer.java:506)

Idea: Check the soft delete operation, if it leaves orphan onboarding descriptors.