Hi All,
we have written a NSO service and running it in stacked mode. Everything works fine as expected if we run one request at a time.
Whenever i give two requests simultaneously on two different devices, one of them fails with application error, something like below. The error seen for one device contains error from other device. But in actual, there is no issue with the payload we are sending. The same netconf payload works if we give single request. Can someone help me in understanding what could have gone wrong in case of simultaneous requests
[nso@localhost ~]$ sleep 1s && netconf-console -u nso -p 'Cwork123!' --port=2022 --rpc=payload-10.xml
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<rpc-error>
<error-type>application</error-type>
<error-tag>data-missing</error-tag>
<error-severity>error</error-severity>
<error-app-tag>missing-choice</error-app-tag>
<error-path xmlns:myservice-internal="http://cisco.com/ns/nso/fp/examples/myservice-internal">
/rpc/edit-config/config/myservice-internal:tm-tc[myservice-internal:name='service_1001'][myservice-internal:node-name='192.168.124.15']/myservice-internal:telemetry-model-driven/myservice-internal:destination-group[myservice-internal:id='CW_dbaa7347-0429-44b0-b7b7-b70cbd9fedc7_858c0b80e1ffe91e10dead2df5529923f2cafb85']/myservice-internal:ipv4-destination[myservice-internal:address='192.168.124.100'][myservice-internal:port='9010']/myservice-internal:protocol
</error-path>
<error-message xml:lang="en">/myservice-internal:tm-tc[name='service_1001'][node-name='192.168.124.15']/telemetry-model-driven/destination-group[id='CW_dbaa7347-0429-44b0-b7b7-b70cbd9fedc7_858c0b80e1ffe91e10dead2df5529923f2cafb85']/ipv4-destination[address='192.168.124.100'][port='9010']/protocol: must configure one of: tcp, udp, grpc</error-message>
<error-info>
<bad-element>protocol</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
[nso@localhost ~]$