-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<junos_install_config> "exceptions.ValueError " Error when using overwrite on ex-vc using *.set config file #232
Comments
Opened in error. Config had protected interfaces. |
if this is reproducible, we should investigate issue and identify root cause. |
Issue is reproducible everytime. Installed this config with policies and got the error. regress@vm-nomadic-ubuntu:~/ansible_junos/mydir_ansible/pb$ ansible-playbook replace_config --limit triplane -v PLAY [Replace Config on Devices] ********************************************** GATHERING FACTS *************************************************************** TASK: [config ... {{file}}] *************************************************** FATAL: all hosts have already failed -- aborting PLAY RECAP ******************************************************************** triplane : ok=1 changed=0 unreachable=0 failed=1 regress@vm-nomadic-ubuntu:~/ansible_junos/mydir_ansible/pb$
|
I did a look into this:
|
provided a fix via |
@vnitinv - please enhance the error message in your code patch to indicate that "set" and "override" cannot be used together. then resubmit the PR. thank you. |
this bug should be filed against Juniper/ansible-junos-stdlib since it the fix should be there. @mamathac - please close here, reopen there, and make reference to this issue thread. thank you. |
@jeremyschulman Error message will be coming as "conflicting args, cannot use 'set' with 'overwrite'" to the ansible user (similar to what is coming by PyEZ) |
Created Juniper/ansible-junos-stdlib#19 |
<junos_install_config>
Model : EX VC
Ansible Playbook:
hosts: all
connection: local
gather_facts: yes
vars:
timeout: 300
tasks:
junos_install_config:
host={{ inventory_hostname }}
file=/usr/local/junos/config/triplane_policy.set
timeout=300
overwrite='yes'
logfile={{logdir}}/config.log
Result:
failed: [triplane] => {"changed": false, "failed": true, "file": "/usr/local/junos/config/triplane_policy.set"}
msg: Unable to make changes
FATAL: all hosts have already failed -- aborting
PLAY RECAP ***************************************************************
Log File:
2014-05-29 14:42:23,555:CONFIG:triplane:connecting to host: regress@triplane
2014-05-29 14:42:29,951:CONFIG:triplane:pushing file: /usr/local/junos/config/triplane_policy.set
2014-05-29 14:42:29,951:CONFIG:triplane:taking lock
2014-05-29 14:42:30,015:CONFIG:triplane:loading config
2014-05-29 14:42:30,016:CONFIG:triplane:'exceptions.ValueError' object has no attribute 'rsp'
Works fine when loaded manually.
Overwrite flag set could be the issue, since merge config is working fine
The text was updated successfully, but these errors were encountered: