Hi James,
I can see "inmemory" in target/* properties files.I changed it to cassandra. It worked! Thanks a lot! Best Regards Bharath T ________________________________ From: FORSYTH, JAMES <[email protected]> Sent: Thursday, January 25, 2018 1:27 AM To: bharath thiruveedula; [email protected]; KAJUR, HARISH V Subject: Re: [AAI] Unable to add "getQueryList" namedquery Hi, Bharath, Is your traversal service connected to the same instance of the graph? I would expect that named-query to work based on what you have below, so it could be that your traversal service is pointing at a different or inmemory graph or you need to set the Real-Time header on the named-query POST. Thanks, jimmy From: bharath thiruveedula <[email protected]> Date: Wednesday, January 24, 2018 at 2:45 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 Yes I am using Cassandra locally Best Regards Bharath T Get Outlook for iOS<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__aka.ms_o0ukef%26d%3DDwMF-g%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DXV0JX8j5PbKAwud1WGqZUseapjdNAf7btdghanCRVYE%26s%3DghbvmhgMLct_UUct34Opvm22oDwRq1q2d7IezlX2b2A%26e%3D&data=02%7C01%7C%7C4cc69730d6c742e4b0b908d56364c761%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524206854223994&sdata=PzCmoIqCOzXCxLvTq%2BcxZhF1qF9Btcgxl8FTIe78QkA%3D&reserved=0> ________________________________ 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://eur02.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-252F127.0.0.1-253A8443-252Faai-252Fv11-252Fservice-2Ddesign-2Dand-2Dcreation-252Fnamed-2Dqueries-26data-3D02-257C01-257C-257Cfefb8c08f54f41fd9a7c08d56362dc20-257C84df9e7fe9f640afb435aaaaaaaaaaaa-257C1-257C0-257C636524198605228042-26sdata-3D2zpwoZpekkMT-252BmrXIJDJcnmfFLsy829TydhQV1koiO0-253D-26reserved-3D0%26d%3DDwMF-g%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DXV0JX8j5PbKAwud1WGqZUseapjdNAf7btdghanCRVYE%26s%3DBiCq2qMZKOPhEEwVrBcztogNaj8k5Y-hN-sPVoMKrd4%26e%3D&data=02%7C01%7C%7C4cc69730d6c742e4b0b908d56364c761%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524206854223994&sdata=K6qLz9VScHnAYyd5wX%2FeCogvQmCOQiVPE0qJh1i%2Fu%2FA%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://eur02.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-253Dhttp-2D3A-5F-5Forg.openecomp.aai.inventory-5Fv11-2D2522-2D253E-2526d-253DDwQFAw-2526c-253DLFYZ-2Do9-5FHUMeMTSQicvjIg-2526r-253DOej6QUk5p2KdqNEWySpOHA-2526m-253DiSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk-2526s-253D6OcmPQGGKhZqWG3MCp-5FNDn5cfJXvNnqTV8VGLePLE90-2526e-253D-26data-3D02-257C01-257C-257Cfefb8c08f54f41fd9a7c08d56362dc20-257C84df9e7fe9f640afb435aaaaaaaaaaaa-257C1-257C0-257C636524198605228042-26sdata-3Dl9E3tQfzCa7Tt6h98iVA1c0S5Vvz4YdW05F3rCr3rUk-253D-26reserved-3D0%26d%3DDwMF-g%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DXV0JX8j5PbKAwud1WGqZUseapjdNAf7btdghanCRVYE%26s%3DKPIDA3dlLmqOKmWsW4PIShIqkZ4JrZ0Z91V3Y6B2Ask%26e%3D&data=02%7C01%7C%7C4cc69730d6c742e4b0b908d56364c761%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524206854223994&sdata=RSndiHr4pSgA%2FhSA8tD3%2Bqn9lfT4NB6YatgxLTzxkTQ%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://eur02.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-253Dhttp-2D3A-5F-5Forg.openecomp.aai.inventory-5Fv11-2D2522-2D253E-2526d-253DDwQFAw-2526c-253DLFYZ-2Do9-5FHUMeMTSQicvjIg-2526r-253DOej6QUk5p2KdqNEWySpOHA-2526m-253DiSV5XyHp9ykCVtcxfZj6HBrttU681ZBftZmkViz4yNk-2526s-253D6OcmPQGGKhZqWG3MCp-5FNDn5cfJXvNnqTV8VGLePLE90-2526e-253D-26data-3D02-257C01-257C-257Cfefb8c08f54f41fd9a7c08d56362dc20-257C84df9e7fe9f640afb435aaaaaaaaaaaa-257C1-257C0-257C636524198605228042-26sdata-3Dl9E3tQfzCa7Tt6h98iVA1c0S5Vvz4YdW05F3rCr3rUk-253D-26reserved-3D0%26d%3DDwMF-g%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DXV0JX8j5PbKAwud1WGqZUseapjdNAf7btdghanCRVYE%26s%3DKPIDA3dlLmqOKmWsW4PIShIqkZ4JrZ0Z91V3Y6B2Ask%26e%3D&data=02%7C01%7C%7C4cc69730d6c742e4b0b908d56364c761%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636524206854380246&sdata=JexLQE72lnQ0VhjdxYjPA7Y220qSXefJfb%2BidmfMv9U%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
