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 <bharath_...@hotmail.com> Date: Wednesday, January 24, 2018 at 2:41 PM To: "FORSYTH, JAMES" <jf2...@att.com>, "onap-discuss@lists.onap.org" <onap-discuss@lists.onap.org>, HARISH V KAJUR <vk2...@att.com> 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" and I got the expected response as: <?xml version="1.0" encoding="UTF-8"?> <named-queries xmlns="http://org.openecomp.aai.inventory/v11"><https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11-2522-253E&d=DwQFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=iSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk&s=6OcmPQGGKhZqWG3MCp_NDn5cfJXvNnqTV8VGLePLE90&e=> <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: onap-discuss-boun...@lists.onap.org <onap-discuss-boun...@lists.onap.org> on behalf of bharath thiruveedula <bharath_...@hotmail.com> Sent: Tuesday, January 23, 2018 6:10 AM To: FORSYTH, JAMES; onap-discuss@lists.onap.org; 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://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11-2522-253E&d=DwQFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=iSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk&s=6OcmPQGGKhZqWG3MCp_NDn5cfJXvNnqTV8VGLePLE90&e=> <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 <jf2...@att.com> Sent: Tuesday, January 23, 2018 3:11 AM To: bharath thiruveedula; onap-discuss@lists.onap.org; 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 <bharath_...@hotmail.com> Date: Sunday, January 21, 2018 at 10:54 PM To: "onap-discuss@lists.onap.org" <onap-discuss@lists.onap.org>, HARISH V KAJUR <vk2...@att.com>, "FORSYTH, JAMES" <jf2...@att.com> 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://urldefense.proofpoint.com/v2/url?u=https-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&d=DwMFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=iSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk&s=E_U1_MTtpxh7GAjIzhJCbDhfnEN779g4laXphQJTpt8&e=>". 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 onap-discuss@lists.onap.org https://lists.onap.org/mailman/listinfo/onap-discuss