Hi Ambica,

Could you share your OXM file for your "sector" class?
So you are able to PUT a new object into aai-resources, but are unable to GET 
it through the /nodes/ query?

I don't know if that error message is causing any problem because the 
traversal-update-query-data job appears to be completed successfully.
That /nodes/ query is through aai-resources rather than aai-traversal.

Are you able to GET your new object through its own REST API, e.g. GET 
/networks/sectors/sector/{sector-name} or GET /network/sectors ?


Keong

From: Ambica Chattoraj [mailto:[email protected]]
Sent: Wednesday, May 29, 2019 10:40 PM
To: Keong Lim <[email protected]>; [email protected]
Subject: AAI node query issue

Hi Keong,

I have deployed AAI in k8 using helm charts.
I created a new object  i.e sector and deployed it successfully. My requirement 
was to update the new-objects primary key .

In the new deployment , https://<ip<https://%3cip>> 
/aai/v14/nodes/sector?sector-name=some_value is not working, whereas it is 
working for pnf and rest.

Note-Cleared the Cassandra schema

In other deployment (without k8 and helm env) the same image is used and the 
query is working fine  and giving the expected result.
While deploying
[cid:[email protected]]

On executing the below command kubectl logs -f -n onap 
dev-aai-aai-traversal-update-query-data-dsxz5, I noticed the below error.Could 
it be the reason?

Begin putTool for named-query getVserver-1.0.json
End putTool for named-query getVserver-1.0.json
Begin putTool for named-query getWlBundleId-1.0.json
End putTool for named-query getWlBundleId-1.0.json
Begin putTool for named-query vnf-to-esr-system-info-1.0.json
End putTool for named-query vnf-to-esr-system-info-1.0.json
Begin putTool for named-query vnf-to-service-instance-1.0.json
End putTool for named-query vnf-to-service-instance-1.0.json
ls: cannot access 
'/opt/app/aai-traversal/resources/etc/scriptdata/resource-model-json/*.json': 
No such file or directory
ls: cannot access 
'/opt/app/aai-traversal/resources/etc/scriptdata/service-model-json/*.json': No 
such file or directory
updateQueryData.sh completed 2019-05-29 03:38:20
See output and error file: 
/opt/app/aai-traversal/logs/misc/updateQueryData.sh.log.2019-05-29

Regards,
Ambica
============================================================================================================================
Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17323): https://lists.onap.org/g/onap-discuss/message/17323
Mute This Topic: https://lists.onap.org/mt/31833142/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to