Repository navigation
Closed
Labels
bugbroken, incorrect, or confusing behaviorseverity-low4th level, cosemtic problems, work around exists
Milestone
Description
Description of Issue
This issue exists only on v2018 and v2019
When prod_state is not set, and the device exists on Zenoss we get the following error running the state:
[root@centos7-5 ~]# salt-call state.sls zenoss
local:
The State execution failed to record the order in which all states were executed. The state return missing data is:
{u'changes': {},
u'comment': u"An exception occurred in this state: 'Changes' should be a dictionary.",
u'name': u'later',
u'result': False}
----------
ID: zenoss_device_registration
Function: zenoss.monitored
Name: centos7-5.local
Result: False
Comment: An exception occurred in this state: 'Changes' should be a dictionary.
Changes:
The problem is on the following lines: https://github.com/saltstack/salt/blob/develop/salt/states/zenoss.py#L56-L62
It can also happen here: https://github.com/saltstack/salt/blob/develop/salt/states/zenoss.py#L88-L91
Should changes be set to an empty dict? None used to be an accepted value before v2018.
Steps to Reproduce Issue
Run the state below with device already on Zenoss.
zenoss_device_registration:
zenoss.monitored:
- name: centos7-5.local
- device_class: /Server/SSH/LinuxVersions Report
Salt Version:
Salt: 2018.3.4
Dependency Versions:
cffi: 1.6.0
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Jul 13 2018, 13:06:57)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.5.1804 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-862.11.6.el7.x86_64
system: Linux
version: CentOS Linux 7.5.1804 CoreMetadata
Metadata
Assignees
Labels
bugbroken, incorrect, or confusing behaviorseverity-low4th level, cosemtic problems, work around exists
Activity
dwoz commentedon Jul 29, 2019
@rossengeorgiev Thank you for reporting this!
rossengeorgiev commentedon Jul 30, 2019
hi @dwoz, how do I fix this? What should the value of
changesbe, when there are no changes?zloyded commentedon Oct 28, 2019
i have same bug in 2019.2.2. First time i`m seen it after upgrade salt to 2019.2.2
The State execution failed to record the order in which all states were executed. The state return missing data is: {u'changes': {}, u'comment': u"An exception occurred in this state: 'Changes' should be a dictionary.", u'name': u'later', u'result': False} The State execution failed to record the order in which all states were executed. The state return missing data is: {u'changes': {}, u'comment': u"An exception occurred in this state: 'Changes' should be a dictionary.", u'name': u'later', u'result': False} The State execution failed to record the order in which all states were executed. The state return missing data is: {u'changes': {}, u'comment': u"An exception occurred in this state: 'Changes' should be a dictionary.", u'name': u'later', u'result': False}Version report
Salt-master version report:
Salt-minion:
Steps for reproduce
rsyslog.sls:
nndhanasekaran commentedon Dec 3, 2019
I am facing same bug in same version 2019.2.2.
Error:
Salt State:
cat /srv/salt/sapconf/sap-vs-netweaver.sls
Version:
It will be great help if saltstack fix this issue ASAP.
stale commentedon Jan 7, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
rossengeorgiev commentedon Jan 7, 2020
The issue is not stale. There has been no response from the developers. This bot is damaging to the project as it closes valid issues and drives contributors away.
stale commentedon Jan 7, 2020
Thank you for updating this issue. It is no longer marked as stale.
sc-kanga commentedon Jun 8, 2020
I take it there is still no response from developers? I'm also experiencing this issue.
Fix zenoss.monitored returning None for changes