cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
586
Views
0
Helpful
1
Replies

Retrieving VNF-INFO via NSO JSON-RPC API

Gary Jiang
Cisco Employee
Cisco Employee

Hi Experts,

I have NSO 5.2.1.2 installed with NFVO 4.2.

With NSO JSON-RPC calls, I was able to retrieve info from some service points, but not others. See below "good" ones in green and "bad" ones in red:

"service_points": {
"/nfv:nfv/cisco-nfvo:internal/sol3-deployment": "/nfv:nfv/cisco-nfvo:internal/sol3-deployment",
"/nfv:nfv/cisco-nfvo:internal/netconf-deployment": "/nfv:nfv/cisco-nfvo:internal/netconf-deployment",
"/nfv:nfv/cisco-nfvo:ns-info": "/nfv:nfv/cisco-nfvo:ns-info",
"/nfv:nfv/cisco-nfvo:onboarding/netconf/volume": "/nfv:nfv/cisco-nfvo:onboarding/netconf/volume",
"/nfv:nfv/cisco-nfvo:onboarding/netconf/image": "/nfv:nfv/cisco-nfvo:onboarding/netconf/image",
"/nfv:nfv/cisco-nfvo:onboarding/netconf/flavour": "/nfv:nfv/cisco-nfvo:onboarding/netconf/flavour",
"/nfv:nfv/cisco-nfvo:vnf-info": "/nfv:nfv/cisco-nfvo:vnf-info"
}

 

Command below took the last "vnf-info" service point as an example to show what "bad" means:

$ curl -i -X POST -d '{"jsonrpc":"2.0","id":4,"method":"get_schema","params":{"th":1,"path":"/nfv:nfv/cisco-nfvo:vnf-info","evaluate_when_entries":true,"insert_values":true,"levels":-1}}' -H 'Content-Type: application/json' --cookie 'sessionid_8080=sess4oBSe/I4JA63/HLSchgcxA==;' http://192.168.25.15:8080/jsonrpc

HTTP/1.1 200 OK

Date: Wed, 19 Feb 2020 21:07:11 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Cache-Control: private, no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, s-maxage=0

Content-Length: 157

Content-Type: application/json

Vary: Accept-Encoding

 

{"jsonrpc":"2.0","error":{"type":"rpc.internal_error","code":-32603,"message":"Internal error (reason unknown)","internal":"webui_session_server723"},"id":4}

 

No clue what's wrong with the message, I went to NSO log directory and did a "tail -f *" when sending the command above again. Here is the screen:

19-Feb-2020::16:07:11.727 evaluating: /nfv/cisco-nfvo:vnf-info: (vnfm-type='cisco-nfvo:netconf')

and

(vim-type='cisco-nfvo:openstack' or vim-type='cisco-nfvo:csp')

19-Feb-2020::16:07:11.728 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.728 result: /nfv/cisco-nfvo:vnf-info: false

19-Feb-2020::16:07:11.729 evaluating: /nfv/cisco-nfvo:vnf-info/sol3-vnfm-type: ../vnfm-type='cisco-nfvo:sol3'

19-Feb-2020::16:07:11.729 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.729 result: /nfv/cisco-nfvo:vnf-info/sol3-vnfm-type: false

19-Feb-2020::16:07:11.730 evaluating: /nfv/cisco-nfvo:vnf-info/netconf-vnfm-type: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.730 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.730 result: /nfv/cisco-nfvo:vnf-info/netconf-vnfm-type: false

19-Feb-2020::16:07:11.730 evaluating: /nfv/cisco-nfvo:vnf-info: vnfm-type='cisco-nfvo:sol3' and sol3-vnfm-type='cisco-nfvo:cbam'

19-Feb-2020::16:07:11.731 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.731 result: /nfv/cisco-nfvo:vnf-info: false

19-Feb-2020::16:07:11.731 evaluating: /nfv/cisco-nfvo:vnf-info: vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.732 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.732 result: /nfv/cisco-nfvo:vnf-info: false

19-Feb-2020::16:07:11.732 evaluating: /nfv/cisco-nfvo:vnf-info/vmware-locators: ../vim-type='cisco-nfvo:vcenter'

19-Feb-2020::16:07:11.733 get_elem(/nfv/cisco-nfvo:vnf-info/vim-type) = not_found

19-Feb-2020::16:07:11.733 result: /nfv/cisco-nfvo:vnf-info/vmware-locators: false

19-Feb-2020::16:07:11.734 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/management-ip: ../managed

19-Feb-2020::16:07:11.735 exists(/nfv/cisco-nfvo:vnf-info/vdu/managed) = false

19-Feb-2020::16:07:11.735 result: /nfv/cisco-nfvo:vnf-info/vdu/management-ip: false

19-Feb-2020::16:07:11.735 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/management-port: ../managed

19-Feb-2020::16:07:11.735 exists(/nfv/cisco-nfvo:vnf-info/vdu/managed) = false

19-Feb-2020::16:07:11.736 result: /nfv/cisco-nfvo:vnf-info/vdu/management-port: false

19-Feb-2020::16:07:11.736 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.736 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.736 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.737 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.737 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.738 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.738 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/vim-vm-name: ../../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.739 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.739 result: /nfv/cisco-nfvo:vnf-info/vdu/vim-vm-name: false

19-Feb-2020::16:07:11.739 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/image-name: not(../netconf-volume/boot-index)

19-Feb-2020::16:07:11.739 get_next(/nfv/cisco-nfvo:vnf-info/vdu/netconf-volume) = false

19-Feb-2020::16:07:11.740 result: /nfv/cisco-nfvo:vnf-info/vdu/image-name: true

19-Feb-2020::16:07:11.740 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/flavour-name: not(../../vim-type='cisco-nfvo:vcenter')

19-Feb-2020::16:07:11.740 get_elem(/nfv/cisco-nfvo:vnf-info/vim-type) = not_found

19-Feb-2020::16:07:11.740 result: /nfv/cisco-nfvo:vnf-info/vdu/flavour-name: true

19-Feb-2020::16:07:11.741 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vim-type='cisco-nfvo:csp'

19-Feb-2020::16:07:11.741 get_elem(/nfv/cisco-nfvo:vnf-info/vim-type) = not_found

19-Feb-2020::16:07:11.741 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.741 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vim-type='cisco-nfvo:csp'

19-Feb-2020::16:07:11.742 get_elem(/nfv/cisco-nfvo:vnf-info/vim-type) = not_found

19-Feb-2020::16:07:11.742 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.742 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.743 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.743 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.743 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.744 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.744 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.744 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.744 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.745 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.745 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.745 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.745 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.746 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.746 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.746 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.747 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/onboard-volume: ../netconf-volume and not(../../vim-type='cisco-nfvo:vcenter')

19-Feb-2020::16:07:11.748 get_next(/nfv/cisco-nfvo:vnf-info/vdu/netconf-volume) = false

19-Feb-2020::16:07:11.748 result: /nfv/cisco-nfvo:vnf-info/vdu/onboard-volume: false

19-Feb-2020::16:07:11.749 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/onboard-image: ../image-name

19-Feb-2020::16:07:11.749 get_elem(/nfv/cisco-nfvo:vnf-info/vdu/image-name) = not_found

19-Feb-2020::16:07:11.749 result: /nfv/cisco-nfvo:vnf-info/vdu/onboard-image: false

19-Feb-2020::16:07:11.750 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/onboard-flavour: ../flavour-name

19-Feb-2020::16:07:11.751 get_elem(/nfv/cisco-nfvo:vnf-info/vdu/flavour-name) = not_found

19-Feb-2020::16:07:11.751 result: /nfv/cisco-nfvo:vnf-info/vdu/onboard-flavour: false

19-Feb-2020::16:07:11.751 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.752 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.752 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.753 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.753 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.753 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.754 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.754 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.754 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.754 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.755 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.755 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.755 evaluating: /nfv/cisco-nfvo:vnf-info/vdu: ../vnfm-type='cisco-nfvo:sol3'

19-Feb-2020::16:07:11.756 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.756 result: /nfv/cisco-nfvo:vnf-info/vdu: false

19-Feb-2020::16:07:11.756 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:sol3'

19-Feb-2020::16:07:11.757 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.757 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.757 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:sol3'

19-Feb-2020::16:07:11.758 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.758 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.758 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:sol3'

19-Feb-2020::16:07:11.758 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.758 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.759 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.759 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.759 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.759 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-project: ../vim-connector

19-Feb-2020::16:07:11.760 get_elem(/nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-connector) = not_found

19-Feb-2020::16:07:11.760 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-project: false

19-Feb-2020::16:07:11.760 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-region: ../vim-connector

19-Feb-2020::16:07:11.760 get_elem(/nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-connector) = not_found

19-Feb-2020::16:07:11.760 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-region: false

19-Feb-2020::16:07:11.761 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-vdc: ../vim-connector

19-Feb-2020::16:07:11.761 get_elem(/nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-connector) = not_found

19-Feb-2020::16:07:11.761 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation/vim-vdc: false

19-Feb-2020::16:07:11.761 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.762 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.762 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.762 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.762 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.763 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

19-Feb-2020::16:07:11.763 evaluating: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: ../../vnfm-type='cisco-nfvo:netconf'

19-Feb-2020::16:07:11.763 get_elem(/nfv/cisco-nfvo:vnf-info/vnfm-type) = not_found

19-Feb-2020::16:07:11.763 result: /nfv/cisco-nfvo:vnf-info/vdu/resource-allocation: false

 

Anyone able to interpret what went wrong?

 

Thanks

Gary

 

 

 

1 Reply 1

rogaglia
Cisco Employee
Cisco Employee

I would recommend you to open a TAC ticket because "Internal error (reason unknown)" is typically a sign that something is wrong beyond where a forum can help you.