You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using netntp.managed, I am able to successfully call state.sls to add a new NTP server, or remove an NTP server, but if I need to simultaneously add and delete at the same time, an exception is returned.
Setup
root@saltmaster:~# salt-master --version
salt-master 2016.11.2 (Carbon)
root@saltmaster:~# salt veos1 test.versions
veos1:
Salt Version:
Salt: 2016.11.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 0.9.1
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.6 (default, Oct 26 2016, 20:30:19)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 14.0.1
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: Ubuntu 14.04 trusty
machine: x86_64
release: 3.13.0-43-generic
system: Linux
version: Ubuntu 14.04 trusty
root@saltmaster:~# cat /srv/salt/router/ntp.sls
{% set ntp_peers = pillar.get('ntp.peers', {}) -%}
{% set ntp_servers = pillar.get('ntp.servers', {}) -%}
cf_ntp:
netntp.managed:
- peers: {{ntp_peers}}
- servers: {{ntp_servers}}
Steps to Reproduce Issue
Edit /srv/pillar/veos1.sls to cause both an add and a remove operation to occur at the same time, and call the state.
root@saltmaster:/srv/salt# salt veos1 state.sls router.ntp
veos1:
----------
ID: cf_ntp
Function: netntp.managed
Result: False
Comment: Cannot remove NTP servers: Cannot execute "load_template" on veos1 as bewing. Reason: Session is already in use by napalm!
Configuration discarded.Configuration was not changed on the device.
Started: 14:43:22.809419
Duration: 3546.171 ms
Changes:
----------
servers:
----------
added:
- 192.168.0.1
removed:
- 10.194.2.17
Summary for veos1
------------
Succeeded: 0 (changed=1)
Failed: 1
------------
Total states run: 1
Total run time: 3.546 s
ERROR: Minions returned with non-zero exit code
Description of Issue/Question
Using netntp.managed, I am able to successfully call state.sls to add a new NTP server, or remove an NTP server, but if I need to simultaneously add and delete at the same time, an exception is returned.
Setup
Steps to Reproduce Issue
Edit /srv/pillar/veos1.sls to cause both an add and a remove operation to occur at the same time, and call the state.
Debug log from the proxy:
Versions Report
The text was updated successfully, but these errors were encountered: