Pomba: SDC context builder returns OK dataQuality and no data.

Description

SDC Context builder logs show that it was unable to download the artifact, but doesn't report the error to the context aggregator.

2019-03-11T20:36:46.977Z qtp346224929-4190 ERROR org.onap.pomba.contextbuilder.sdc.service.SpringService RequestId=e46ff362-3ad8-4cca-ad8a-9d6a95c78463, ServiceName=Pomba SDC ContextBuilder, ServiceInstanceId=, StartTime=2019-03-11T20:36:46.664Z, ClientAddress=null, PartnerName=postman, ServerFQDN=pomba-pomba-sdcctxbuilder-6d67bd99bd-rk5fw 500 Internal Server Error, Reason: Failed to retrieve CSAR artifact from SDC: failed to send request to ASDC

SDC context builder should return a dataQuality error in this case.

Environment

None

Activity

Show:

Former user March 28, 2019 at 8:58 PM
Edited

Tested the fix. SDC Ctx builder set Error to dataQuality status if the audit entry is not found, as expected.

 

2019-03-28T20:47:37.731Z pool-2-thread-3 INFO AAIRESTClient RequestId=8888888, ServiceName=context-aggregator, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, InstanceId=87c948c7-0ea6-4f00-9252-69fac19e4332, StartTime=2019-03-28T20:47:37.684Z, InvocationID=403e17d3-3fab-442d-b487-92cdd4ca2600, ClientAddress=pomba-pomba-contextaggregator-68fd7978b-2hsrw, PartnerName=Pomba AC0004I|AC0004I request at url = http://pomba-sdcctxbuilder:9530/sdccontextbuilder/service/context?serviceInstanceId=PombaDemoCust_001-ServiceInst-001&modelVersionId=pomba-demo-sdc-model-001-version001&modelInvariantId=pomba-demo-sdc-model-001 resulted in http response: 404 Not Found|
2019-03-28T20:47:37.733Z pool-2-thread-3 ERROR org.onap.pomba.contextaggregator.service.ContextAggregatorProcessor RequestId=8888888, ServiceName=context-aggregator, ServiceInstanceId=PombaDemoCust_001-ServiceInst-001, InstanceId=87c948c7-0ea6-4f00-9252-69fac19e4332, StartTime=2019-03-28T20:47:37.684Z, InvocationID=403e17d3-3fab-442d-b487-92cdd4ca2600, ClientAddress=pomba-pomba-contextaggregator-68fd7978b-2hsrw, PartnerName=Pomba, StatusCode=ERROR Setting dataQuality status for 'sdc' context builder to ERROR: Failed to retrieve model data for sdc, reason: {"timestamp":"2019-03-28T20:47:37.729+0000","status":404,"error":"Not Found","message":"Not Found","path":"/sdccontextbuilder/service/context"}.

Former user March 25, 2019 at 5:55 PM

Any issues with retrieval of data will result in a DataQuality of errror: 

 

For e.g: 

sdc: Failed to retrieve model data for sdc, reason: {\"timestamp\":\"2019-03-25T17:33:21.419+0000\",\"status\":404,\"error\":\"Not Found\",\"message\":\"Not Found\",\"path\":\"/sdccontextbuilder/service/context\"}

Former user March 15, 2019 at 6:16 PM

The fix is included in https://gerrit.onap.org/r/#/c/82298/

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created March 14, 2019 at 3:46 PM
Updated August 12, 2023 at 3:56 AM
Resolved March 28, 2019 at 8:26 PM

Flag notifications