# Runtime Error from Juniper.junos role

**URL:** <https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [April 10, 2017, 10:44pm UTC](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185 "2017-04-10T22:44:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Ratcliffe](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Daniel\_Ratcliffe](https://forum.ansible.com/u/Daniel_Ratcliffe)\
**Post date:** [April 10, 2017, 10:44pm UTC](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185/1 "2017-04-10T22:44:33Z")

</div>

Hello,

I installed Ansible(2.2.1.0), the Juniper.junos(1.4.0) role from Ansible galaxy with junos-eznc (2.1.1). I tried to create a test playbook to obtain the version of my test switch as shown below.

---

<div class="post-metadata">

**Author:** ![Daniel\_Ratcliffe](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Daniel\_Ratcliffe](https://forum.ansible.com/u/Daniel_Ratcliffe)\
**Post date:** [April 11, 2017, 4:19pm UTC](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185/2 "2017-04-11T16:19:44Z")

</div>

I’ve resolved this. There was an update made to junos-eznc that broke the version of Juniper-junos on Ansible-Galaxy. I had to pull a more recent version from the git repo.

Daniel

---

<div class="post-metadata">

**Author:** ![MYN](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MYN](https://forum.ansible.com/u/MYN)\
**Post date:** [April 16, 2017, 10:24am UTC](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185/3 "2017-04-16T10:24:17Z")

</div>

Hi Daniel,

Would you please share how did you upgrade? I am also getting similar error.

"TASK [GET-MODEL] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [192.168.56.103]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV\n self.\_cipher = factory.new(key, \*args, \*\*kwargs)\nTraceback (most recent call last):\n File "/home/yasir/.ansible/tmp/ansible-tmp-1492337992.22-261119891504603/junos\_get\_facts", line 2168, in \n main()\n File "/home/yasir/.ansible/tmp/ansible-tmp-1492337992.22-261119891504603/junos\_get\_facts", line 176, in main\n dev.facts[‘has\_2RE’] = dev.facts[‘2RE’]\n File "/usr/local/lib/python2.7/dist-packages/jnpr/junos/factcache.py", line 171, in **setitem** \n raise RuntimeError("facts are read-only!")\nRuntimeError: facts are read-only!\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “parsed”: false}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
192.168.56.103 : ok=0 changed=0 unreachable=0 failed=1 "

Thanks,

MYN
