Automation

 View Only
last person joined: 18 hours ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Ansible connection error to vMX

    Posted 05-23-2021 01:25
    Hello All
    I am doing Day One Automation with Ansible I am following the guide but i keep getting the below error even when i copy/past the playbook any idea behind this, considering the communication between the server and the router is fine and I have test the NETCONF/SSH its working fine also I have done the Day One Automation with Salt it was also working fine. 

     ansible-playbook uptimerpc2.yaml

    Junos Username: 
    Junos Password:

    PLAY [Get device uptime] ********************************************************************************************************************************

    TASK [get uptime using galaxy module] *******************************************************************************************************************
    fatal: [vmx-1]: FAILED! => {"changed": false, "msg": "Unable to make a PyEZ connection: ConnectError(host: 192.168.10.50, msg: Raw)"}
    fatal: [vmx-2]: FAILED! => {"changed": false, "msg": "Unable to make a PyEZ connection: ConnectError(host: 192.168.10.51, msg: Raw)"}

    PLAY RECAP **********************************************************************************************************************************************
    vmx-1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
    vmx-2 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

    ------------------------------
    Hasan Abdulhadi
    ------------------------------


  • 2.  RE: Ansible connection error to vMX

     
    Posted 05-23-2021 14:02
    Hi, 

    I would suggest looking at
    https://community.juniper.net/answers/communities/community-home/digestviewer/viewthread?GroupId=43&MessageKey=009b5c13-2a1d-41f8-bd89-858a5e92984f&CommunityKey=bdb90a90-a9bd-4226-8f03-051df7d28113&tab=digestviewer&ReturnUrl=%2fanswers%2fcommunities%2fcommunity-home%2fdigestviewer%3fMessageKey%3dd57182fc-bbfc-4e4a-bbab-f103c01445c0%26CommunityKey%3dbdb90a90-a9bd-4226-8f03-051df7d28113#bm99aa35a7-e393-4058-bbb4-dfd20618bd82

    Similar symptoms which could be due to environment issues.

    Cheers,

    ------------------------------
    Ashvin
    ------------------------------