-
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
Trouble with network.system #6922
Comments
So even though we return an error, the settings were actually applied properly? This is probably a sorting issue in the expected-vs-found settings comparison, plus a small type mismatch (the bool error). Shouldn't be too difficult to fix. Thanks for the report! |
Actually, the error is on "network.system" which I don't think actually gets applied. However, the "network.managed" portion applies correctly (defining eth0). Thanks! |
Interestingly, when I comment out the three lines that have boolean values like so:
I still get:
|
I have now successfully configured a much more complex host, using bonded interfaces, vlan bonding, and a bridge, without errors (by commenting out the entire network.system section and managing /etc/sysconfig/network by hand). This confirms two things:
|
Just wanted to confirm I'm still seeing this in 0.17.2, against both Fedora 17 and Fedora 19: system: renders on one of my minions to: system: which in turn generates:
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1278, in call
The rest of the network state still applies correctly as before, but the 'network.system' state does not apply. |
I had the same problem on CentOS 6 and was able to work around it - replace |
I can no longer replicate this bug in 2014.1.4. I would like to close this unless there are more recent reports of this failing. |
Replicatable on Ubuntu 14.04 w/ salt 2015.5 and no
Cause of the traceThe trace is caused because @rallytime / @cachedout: Putting those two bools behind quotes fixes the trace, but I'm very far from sure those aren't needed for value testing. Cause of the cause of the trace
As a side note, setting |
@rallytime bump? |
@The-Loeki Since the code has changed so much since 2014.1.4 and 2015.5 (and since @cachedout wasn't able to reproduce it) I suspect this might be something different/new. Would you mind opening a new request with all of the details you posted above? |
@rallytime: The cause of the trace lies in the fact that the Now as to why that test is triggered is a different discussion and an apparent semi-rarity; the one I documented is again reproducable with little to no reason to assume this has changed between 2014.1 and 2015.5 All in all there's two different components to this problem which need addressing; the and, since |
I've now got a CentOS 7 machine clean install exhibiting a variant of this behaviour (the first part of this bug is very similar).
The workaround in this case is the exact opposite of @sroegner; Problem is again that |
I'm seeing this issue with a very simple state that actually comes straight from the examples in the documentation:
This is on Debian 8 with Salt 2016.11.3 |
Er, went through the stack trace which is this:
And found that this was a failed attempt to build an error message. The actual error appears to be no value for the 'networking' option, which I guess comes from 'enabled' in the state. If I change my state to:
... then it doesn't error out! (Still haven't tested if it does what I want yet, though.) This could probably use a documentation fix! |
I'm not sure what all |
Just stumbled upon that issue under |
Still applies to
Resulting in:
|
Just pushed a fix for the error message producing a stack trace. |
Salt version 2019.2.0, ubuntu 18.04
The problems:
|
@cr1st1p can you check the neon RC? |
@cr1st1p I'm going to go ahead and close this for now - if this error is still happening with Salt v3000 please let me know and I'll re-open. |
@rallytime @waynew this error is still happening with Salt 3002.1 on ubuntu 20.04 Unless enabled: True is added as per comment: #6922 (comment) |
Can confirm error still exists on Ubuntu 18.04 on Salt 3002.6. |
I'm trying to use the network module on a Fedora 17 host with a very simple config, using salt 0.16.3 on both the master and minion. The interface applies correctly, but the network.system fails.
/srv/base/net/init.sls:
This seems to match the online documentation pretty precisely, however, when I try to apply the state to the host, I get the following error:
The text was updated successfully, but these errors were encountered: