openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

[Data] MWDI test_v1.1.3 Production: Cache Object very often missing #889

Open alattoch opened 7 months ago

alattoch commented 7 months ago

Hi Massimo,

within the MWDI test_v1.1.3 at the Production I have detected that the Content in the Cache is missing. When trying to extract the CC from the Cache is responding 500. I extract it out of the live, then the CC get included/loaded into the Cache. The Problem here is: Why are so many Cache Objects missing? I can not find any entry in the Container Log that indicates that the Device have been delete.

This in an example out of many. [appserver@mwappserver2 ~]$ docker logs --tail=5000 microwavedeviceinventory_test_v1.1.3 -t | grep 222270057 2>/dev/null 2024-03-13T12:48:42.091107266Z InternalServerError: unable to fetch records for mountName 222270057 2024-03-13T12:48:42.107585856Z GET /core-model-1-4:network-control-domain=cache/control-construct=222270057 500 1044.600 ms - 81 2024-03-13T12:48:42.413248334Z callback : POST http://10.20.64.40:3003/v1/record-service-request header :{"user":"User Name","originator":"MicroWaveDeviceInventory","x-correlator":"Bfa72AdC-Ca40-CC9D-15a2-7c3Ce7bEf91F","trace-indicator":1,"customer-journey":"unknown","operation-key":"Operation key not yet provided.","Content-Type":"application/json"}body :{"x-correlator":"550e8400-e29b-11d4-a716-446655440000","trace-indicator":"1.3.1","user":"User Name","originator":"Resolver","application-name":"MicroWaveDeviceInventory","release-number":"1.1.0","operation-name":"/core-model-1-4:network-control-domain=cache/control-construct=222270057","response-code":500}response code:204 2024-03-13T12:52:25.591731132Z callback : http://10.20.64.9:8080/rests/data/network-topology:network-topology/topology=topology-netconf/node=222270057/yang-ext:mount/core-model-1-4:control-construct header :{"Authorization":"Basic bXdkaV9yZWFkXzI6TVdESUA3NjU0Iw=="}body :""response code:200 2024-03-13T12:52:26.004858003Z GET /core-model-1-4:network-control-domain=live/control-construct=222270057 200 27030.241 ms - 5690646 2024-03-13T12:52:26.119959368Z callback : POST http://10.20.64.40:3003/v1/record-service-request header :{"user":"User Name","originator":"MicroWaveDeviceInventory","x-correlator":"9fBdd188-ccC3-C94B-37Df-DD037F4c0fF9","trace-indicator":1,"customer-journey":"unknown","operation-key":"Operation key not yet provided.","Content-Type":"application/json"}body :{"x-correlator":"550e8400-e29b-11d4-a716-446655440000","trace-indicator":"1.3.1","user":"User Name","originator":"Resolver","application-name":"MicroWaveDeviceInventory","release-number":"1.1.0","operation-name":"/core-model-1-4:network-control-domain=live/control-construct=222270057","response-code":200}response code:204 2024-03-13T12:53:54.129805551Z GET /core-model-1-4:network-control-domain=cache/control-construct=222270057 200 1697.643 ms - 5690646 2024-03-13T12:53:54.226230426Z callback : POST http://10.20.64.40:3003/v1/record-service-request header :{"user":"User Name","originator":"MicroWaveDeviceInventory","x-correlator":"Aba0eF8f-d4ad-4ABE-89D9-2a6920ADf96a","trace-indicator":1,"customer-journey":"unknown","operation-key":"Operation key not yet provided.","Content-Type":"application/json"}body :{"x-correlator":"550e8400-e29b-11d4-a716-446655440000","trace-indicator":"1.3.1","user":"User Name","originator":"Resolver","application-name":"MicroWaveDeviceInventory","release-number":"1.1.0","operation-name":"/core-model-1-4:network-control-domain=cache/control-construct=222270057","response-code":200}response code:204 [appserver@mwappserver2 ~]$

I cannot see this behavior at the MWDI 1.0.6.

nardecchia-siae commented 7 months ago

Hi Andreas, I don't know why, the only way to have the device deleted from cache is via a notification from notification proxy or from a realignment of the device list which should delete the no more connected devices. in tag 1.0.6 the management of notifications was absent