Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-2863

pairwise: AAI customQuery is failing in drools-pdp for operational policies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • Guilin Release
    • None
    • Policy 10/1 - 10/15

      During pairwise testing of Policy - CDS interactions using drools-pdp, the operational policy is failing at A&AI custom query step. 

      Lab Used: PFPP 

      Below are the drools logs showing the failure:

      [2020-10-09T12:30:11.726+00:00|INFO|ControlLoopOperationParams|Thread-173] started operation AAI.CustomQuery for c7c6a4aa-bb61-4a15-b831-ba1472dd4a65 [2020-10-09T12:30:11.727+00:00|INFO|OperationPartial|Thread-173] [OUT|REST|https://aai.onap:8443/aai/v16/query?format=resource|]
      { "start": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f/vservers/vserver/c82153dc-8d84-4e69-9673-5e0a60030779", "query": "query/closed-loop" }
      [2020-10-09T12:30:11.731+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK [2020-10-09T12:30:11.734+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS [2020-10-09T12:30:11.734+00:00|INFO|HttpClient|pool-8-thread-1] --> HTTP/1.1 200 OK [2020-10-09T12:30:11.735+00:00|INFO|CambriaSimplerBatchPublisher|pool-8-thread-1] cambria reply ok (18 ms):
      {"serverTimeMs":1,"count":1}
      [2020-10-09T12:30:11.735+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/0427b4f3-343f-4c6e-8ec7-fcfdba1e909a/dev-policy-drools-pdp-0?timeout=15000&limit=100 [2020-10-09T12:30:11.735+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET https://message-router:3905/events/POLICY-PDP-PAP/0427b4f3-343f-4c6e-8ec7-fcfdba1e909a/dev-policy-drools-pdp-0?timeout=15000&limit=100 (anonymous) ... [2020-10-09T12:30:11.764+00:00|INFO|CambriaSimplerBatchPublisher|pool-8-thread-1] sending 1 msgs to /events/POLICY-CL-MGT. Oldest: 29 ms [2020-10-09T12:30:11.764+00:00|INFO|HttpClient|pool-8-thread-1] POST https://message-router:3905/events/POLICY-CL-MGT (anonymous) ... [2020-10-09T12:30:11.795+00:00|INFO|HttpClient|pool-8-thread-1] --> HTTP/1.1 200 OK [2020-10-09T12:30:11.796+00:00|INFO|CambriaSimplerBatchPublisher|pool-8-thread-1] cambria reply ok (32 ms):
      {"serverTimeMs":11,"count":1}
      [2020-10-09T12:30:12.309+00:00|INFO|HttpOperation|Thread-174] AAI.CustomQuery: response received for c7c6a4aa-bb61-4a15-b831-ba1472dd4a65 [2020-10-09T12:30:12.310+00:00|INFO|OperationPartial|Thread-174] [IN|REST|https://aai.onap:8443/aai/v16/query?format=resource|] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Fault> <requestError> <serviceException> <messageId>SVC3002</messageId> <text>Error writing output performing %1 on %2 (msg=%3) (ec=%4)</text> <variables> <variable>GET</variable> <variable>v16/query</variable> <variable>Internal Error:java.lang.IllegalArgumentException: Error parsing media type 'text/html, image/gif, image/jpeg, ; q=.2, */; q=.2'</variable> <variable>ERR.5.4.4000</variable> </variables> </serviceException> </requestError> </Fault> [2020-10-09T12:30:12.310+00:00|INFO|HttpOperation|Thread-174] AAI.CustomQuery request failed with http error code 500 for c7c6a4aa-bb61-4a15-b831-ba1472dd4a65
      

            jrh3 jrh3
            a.sreekumar a.sreekumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: