-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
state.sls fails to render state with pillar data: Jinja variable 'dict object' has no attribute #29028
Comments
When rewriting the state to use bugdemo.sls
Works correctly on the good minion
Works incorrectly on the bad minion
It never filled in the value "problem" into the state. |
@kevins9, thanks for the report. Is it possible for you to reproduce this on 2015.8.1? |
I updated the minion to 2015.8.1, and the problem persists - the pillar value is undefined when running state.sls:
The master is still running the same version as prior. I may be able to update that later today and test again. |
Thanks for the extra info, @kevins9. |
Any news on this issue? I am seeing the same problems here on 2015.8.1 on Ubuntu 14.04 LTS. |
@joberget, not that I know of. |
I can confirm this issue on Debian 8.2 with the minion version 2015.8.3 and 2015.5.8 booth from http://repo.saltstack.com/apt/debian/8. It works with the Ubuntu packages 2015.5.3 on my debian system from:
|
same issue here with minion 2015.5.5 running on opensuse 13.2 |
salt.sls_id fills in the pillar data and runs the individual ID. Overall SLS still doesn't run. this does not: master version: salt 2015.2.0-805-gadc9977 (Lithium) But the same thing happens on just the minion with salt-call. It's talking to master and master reports rendering the pillar data, but maybe in wrong format because of different version? So should I upgrade master to match versions? UPDATE 12/16/15: RESOLVED -- I just did a yum install of salt on the master and got the update, and the problem is fixed. salt 2015.5.5 (Lithium) |
Update: on kucerarichard's advice I tested master 2015.5.5 with minion 2015.5.5 (CentOS 7) and had success. I also tested master 2015.5.5 with minion 2015.8.1 (CentOS 7), since I still had that system available from an earlier test - and that works as well. Unfortunately, it seems that both of these combinations are now experiencing #27792 any time my pillar YAML contains a sequence of mappings - that used to work before, and pass a YAML lint. I will soon add my findings to that issue instead, however. |
I'm seeing the same behavior on 2016.3.1. Strangely enough this was working Friday when I left work and it's broken today (Monday) without anyone doing any changes as far as I know.
EDIT: Seeing this repeated in journalctl every time I run my orchestration state. |
This line throws the exception even though I can clearly see that my key is in decoded_context on the line above. |
Tried doing a EDIT: Not sure if this will help in pinning down the issue but here's the traceback after taking the line from my previous comment out of the try block:
EDIT2: Btw it would be nice to get the line number from EDIT3: As @kevins9 mentions here where this is happening is a sequence of mappings. I.E. EDIT4: This is insane. I downgraded to 2016.3.0 and tried again, still broken. Went out for lunch, now it's working again. WTF? |
This randomly resurfaced and is once again blocking deployment... This is nasty. EDIT: Seems as if the machines have been upgraded during my vacation, back on 2016.3.1 again so that might be causing this. Anything relevant changed between 2016.3.0 and 2016.3.1? EDIT2: Working in 2016.3.1. This time it might have been my doing... |
Similar problem here on Ubuntu 14.04 LTS:
|
Hello All,
|
@IliyanIliev1 if your domain is Looks like you're trying to lookup an entry ( Unrelated, I'm pretty sure this issue can be closed now as it's only full of user errors from what I can see. |
Hi Team,
|
I take my words back. dict object attribute not found error is due malformed pillar data .sls file. |
I also get error . salt-master version :- salt-master 2016.11.3 (Carbon) and salt-master version :- salt-master 2016.11.3 (Carbon) Data failed to compile:
|
@vikrant-agarwal Salt v2016.11.3 is no longer supported and breaking changes are likely. |
I'm convinced this issue has been fixed by #58369. I am closing the issue for now, if anyone is able to re-produce this in a version >3002 please comment and we'll re-open the issue. |
This is only occurring on my minions running Salt 2015.5.5 and CentOS 7. Issue is similar to #16727 and #16656.
Version info - master and minion
Pillar top.sls
Pillar bugdemo.sls
minion /etc/salt/grains
Master /srv/salt/dev/bugdemo.sls
(Note: master config has "dev" saltenv configured with root /srv/salt/dev)
Evidence
Pillar value is present:
State fails to render when calling state.sls:
Yet oddly enough, state.show_sls works:
This works on another minion:
The text was updated successfully, but these errors were encountered: