NSO-developer / nso-ansible-demo

Simple demo of the Ansible modules for NSO
Apache License 2.0
34 stars 24 forks source link

JSON rate limit on NSO #4

Closed jabelk closed 6 years ago

jabelk commented 6 years ago

got this error running with devices with large config, is that a rate limiting on NSO, ncs.conf side?

JABELK-M-D3BK:devices-playbooks jabelk$ ansible-playbook device-show.yaml [DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths , use [defaults] inventory=/path/to/file|dir instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [Show] *****

TASK [Load variables] *** ok: [localhost]

TASK [Show devices config (no operational data)] **** fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "NSO show_config returned JSON-RPC error: {u'data': {u'reason': u'output exceeds output limit 102400 bytes'}, u'message': u'Method failed', u'code': -32000, u'type': u'rpc.method.failed', u'internal': u'jsonrpc_data411'}"} to retry, use: --limit @/Users/jabelk/teaching_ansible/nso-ansible-demo/devices-playbooks/device-show.retry

PLAY RECAP ** localhost : ok=1 changed=0 unreachable=0 failed=1

JABELK-M-D3BK:devices-playbooks jabelk$