Hi James

Yes I am using Cassandra locally

Best Regards
Bharath T

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: FORSYTH, JAMES <[email protected]>
Sent: Thursday, January 25, 2018 1:13:56 AM
To: bharath thiruveedula; [email protected]; KAJUR, HARISH V
Subject: Re: [AAI] Unable to add "getQueryList" namedquery

Bharath,

Are you using Cassandra locally?  Sometimes if your config is set to 
“inmemory”, even after you have updated an object on one service it won’t 
appear in the other.  \

Thanks,
jimmy

From: bharath thiruveedula <[email protected]>
Date: Wednesday, January 24, 2018 at 2:41 PM
To: "FORSYTH, JAMES" <[email protected]>, "[email protected]" 
<[email protected]>, HARISH V KAJUR <[email protected]>
Subject: Re: [AAI] Unable to add "getQueryList" namedquery


Hi James,



I solved this issue by adding the header "Real-Time: true"



But while searching for named-query, I again face node not found error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Fault>
    <requestError>
        <serviceException>
            <messageId>SVC3001</messageId>
            <text>Resource not found for %1 using id %2 (msg=%3) (ec=%4)</text>
            <variables>
                <variable>POST Search</variable>
                <variable>getNamedQueryResponse</variable>
                <variable>Node Not Found:Node could not be found for nodeType = 
[named-query], propertyName = [named-query-uuid], propertyValue = 
[0367193e-c785-4d5f-9cb8-7bc89dc9ddb7]
</variable>
                <variable>ERR.5.4.6114</variable>
            </variables>
        </serviceException>
    </requestError>
</Fault>




I ran the query for 
"https://127.0.0.1:8443/aai/v11/service-design-and-creation/named-queries<https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2F127.0.0.1%3A8443%2Faai%2Fv11%2Fservice-design-and-creation%2Fnamed-queries&data=02%7C01%7C%7Cfefb8c08f54f41fd9a7c08d56362dc20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524198605228042&sdata=2zpwoZpekkMT%2BmrXIJDJcnmfFLsy829TydhQV1koiO0%3D&reserved=0>"
 and I got the expected response as:
<?xml version="1.0" encoding="UTF-8"?>
<named-queries 
xmlns="http://org.openecomp.aai.inventory/v11";><https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__org.openecomp.aai.inventory_v11-2522-253E%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DiSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk%26s%3D6OcmPQGGKhZqWG3MCp_NDn5cfJXvNnqTV8VGLePLE90%26e%3D&data=02%7C01%7C%7Cfefb8c08f54f41fd9a7c08d56362dc20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524198605228042&sdata=l9E3tQfzCa7Tt6h98iVA1c0S5Vvz4YdW05F3rCr3rUk%3D&reserved=0>
    <named-query>
        
<named-query-uuid>0367193e-c785-4d5f-9cb8-7bc89dc9ddb7</named-query-uuid>
        <named-query-name>get-component-list</named-query-name>
        <named-query-version>1.1</named-query-version>
        <description>Named Query - Get Component List</description>
        <resource-version>1516820998664</resource-version>
    </named-query>
</named-queries>


Best Regards

Bharath T

________________________________
From: [email protected] <[email protected]> 
on behalf of bharath thiruveedula <[email protected]>
Sent: Tuesday, January 23, 2018 6:10 AM
To: FORSYTH, JAMES; [email protected]; KAJUR, HARISH V
Subject: Re: [onap-discuss] [AAI] Unable to add "getQueryList" namedquery


Hi Jimmy,



I got the following XML  as output for GET 
"/aai/v11/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32"




<?xml version="1.0" encoding="UTF-8"?>
<model 
xmlns="http://org.openecomp.aai.inventory/v11";><https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__org.openecomp.aai.inventory_v11-2522-253E%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DiSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk%26s%3D6OcmPQGGKhZqWG3MCp_NDn5cfJXvNnqTV8VGLePLE90%26e%3D&data=02%7C01%7C%7Cfefb8c08f54f41fd9a7c08d56362dc20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524198605228042&sdata=l9E3tQfzCa7Tt6h98iVA1c0S5Vvz4YdW05F3rCr3rUk%3D&reserved=0>
    
<model-invariant-id>80b712fd-0ad3-4180-a99c-8c995cf1cc32</model-invariant-id>
    <model-type>widget</model-type>
    <resource-version>1516667644133</resource-version>
</model>

Attached the POSTMAN screenshots


Best Regards
Bharath T

________________________________
From: FORSYTH, JAMES <[email protected]>
Sent: Tuesday, January 23, 2018 3:11 AM
To: bharath thiruveedula; [email protected]; KAJUR, HARISH V
Subject: Re: [AAI] Unable to add "getQueryList" namedquery


Hi, Bharath,



If you do a search for 
/aai/v11/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32,
 what do you get?



Thanks,

jimmy



From: bharath thiruveedula <[email protected]>
Date: Sunday, January 21, 2018 at 10:54 PM
To: "[email protected]" <[email protected]>, HARISH V KAJUR 
<[email protected]>, "FORSYTH, JAMES" <[email protected]>
Subject: [AAI] Unable to add "getQueryList" namedquery



Hi AAI team,



I am trying to setup development environment of AAI using 
"https://wiki.onap.org/pages/viewpage.action?pageId=10782088<https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__nam03.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Furldefense.proofpoint.com-252Fv2-252Furl-253Fu-253Dhttps-2D3A-5F-5Fwiki.onap.org-5Fpages-5Fviewpage.action-2D3FpageId-2D3D10782088-2526d-253DDwMFAw-2526c-253DLFYZ-2Do9-5FHUMeMTSQicvjIg-2526r-253DOej6QUk5p2KdqNEWySpOHA-2526m-253DPzIk9jeOPSkmW0vqKe7uqDOVlgLLyZMNSSZxEjvwshI-2526s-253DvBT75eIRqTvGIB5BJ1dOYUtKnhf7ZEsO3puP5Fn-2DVZw-2526e-253D-26data-3D02-257C01-257C-257C2ca14eef57274b297b0308d561e0eeb4-257C84df9e7fe9f640afb435aaaaaaaaaaaa-257C1-257C0-257C636522541058130344-26sdata-3DdRq-252FlWWZsWOFWYGGk01LLHYEq10ZcqRmTawH0gwU5fo-253D-26reserved-3D0%26d%3DDwMFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DiSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk%26s%3DE_U1_MTtpxh7GAjIzhJCbDhfnEN779g4laXphQJTpt8%26e%3D&data=02%7C01%7C%7Cfefb8c08f54f41fd9a7c08d56362dc20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524198605228042&sdata=7ejfFv6x%2BxBy%2BVRbyY5wRWJxM%2FtaC86OJKwDRvf3ecM%3D&reserved=0>".
 I ran AddWidgets json in the POSTMAN. But while adding "getQueryList" 
namedquery, i got the following error:



2018-01-22T03:43:22.143+0000|2018-01-22T03:43:22.182+0000|36935cd3-8724-4ff3-9540-a1410be9c511||qtp564413599-33||PUT
 
/aai/v11/service-design-and-creation/named-queries/named-query/0367193e-c785-4d5f-9cb8-7bc89dc9ddb7|jimmy-postman|ERROR|404|Error
 making edge to target node:3003:Not Found:Node of type model. Could not find 
object at: 
/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32||WARN||127.0.1.1|0|bharath-hp||org.onap.aai.rest.LegacyMoxyConsumer|||||||co=:Rolling
 back Titan transaction



I have checked the model corresponding to named-query , it exists. Do I missing 
anything here?





Best Regards

Bharath T














_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to