Closed MadsRC closed 9 years ago
Might be a difference between versions of ipset. Will take a look.
@MadsRC, thanks for the report.
Spun up a CentOS 7 VM and ran some tests using the same state and pillar data you have. It ran clean with no errors.
[root@localhost pillar]# salt --versions-report Salt: 2015.5.3 Python: 2.7.5 (default, Jun 17 2014, 18:11:42) Jinja2: 2.7.2 M2Crypto: 0.21.1 msgpack-python: 0.4.6 msgpack-pure: Not Installed pycrypto: 2.6.1 libnacl: Not Installed PyYAML: 3.10 ioflo: Not Installed PyZMQ: 14.3.1 RAET: Not Installed ZMQ: 3.2.5 Mako: Not Installed Tornado: Not Installed
A bit more digging around to see if I can replicate the issue.
Update: Noticed an issue with it that might be related. Digging into it now.
@MadsRC Can you see what version of ipset you have installed?
@garethgreenaway I'm running "ipset v6.11, protocol version: 6"
@MadsRC Thanks! I'll see if I can find that version and duplicate the issue.
@MadsRC To confirm you're using CentOS 7? Reason I ask is that CentOS 7 has version 6.19 and installing version 6.11 doesn't work because of kernel mismatches, etc.
@garethgreenaway - I'm sorry, I must have been confused when I wrote that bugreport - The OS is CloudLinux, which is based on CentOS 6.
No worries! :) let me spin up a 6 VM and test.
Test VM running CentOS 6.6 and I'm able to duplicate the issue. Looking into why this is happening.
Updated: Found the cause. in the _find_set_info function when it's gathering information about the ipset set, the -t option is supposed to show a terse version of the output so the members of the set shouldn't be disabled but with this version of ipset they apparently are. Fix should be fairly simple. Working on a pull request for it now.
Thank you @garethgreenaway , I'll pull down the latest version of 2015.5 and test it.
Finally had time to test it and it works for me.
Nice, thanks @MadsRC.
I'm trying to get ipset working, and I'm getting this error:
From what I can see it fails to parse ´ipset list -t blacklist´ as it expects "Members" where that command actually outputs:
The operating system is CLoudLinux (CentOS 6).