Issue #16675 has been updated by eric sorenson. Status changed from Unreviewed to Investigating Target version set to 3.0.1
This seems like a real problem in our parameter validation in telly -- Ken did you pick up ownership of this one because you're looking at it? ---------------------------------------- Bug #16675: Issue with puppetlabs-firewall and puppet 3.0 https://projects.puppetlabs.com/issues/16675#change-72743 Author: Jason Hancock Status: Investigating Priority: Normal Assignee: Ken Barber Category: Target version: 3.0.1 Affected Puppet version: 3.0.0 Keywords: firewall provider params Branch: Platform information: * OS: CentOS 6.3 * ruby-1.8.7.352-7.el6_2.x86_64 * puppet-3.0.0-1.el6.noarch * facter-1.6.10-1.el6.x86_64 I'm using the puppetlabs-firewall module version 0.0.4. The problem I'm having is that if the port changes for a firewall rule, I end up getting an error. Doesn't happen on puppet 2.7.x. Start with an empty set of rules: <pre> [root@localhost tmp]# iptables -F </pre> site.pp: <pre> node default { firewall { '100 allow sshd': state => 'NEW', dport => 22, proto => 'tcp', action => 'accept', } } </pre> Output (it's fine): <pre> [root@localhost tmp]# /usr/bin/puppet agent --onetime --no-daemonize --verbose --no-splay Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb Info: Caching catalog for node.example.com Info: Applying configuration version '1349129193' /Firewall[100 allow sshd]/ensure: created Finished catalog run in 0.22 seconds </pre> Verify the rule was created: <pre> [root@localhost tmp]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere multiport dports ssh /* 100 allow sshd */ state NEW Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination </pre> Update site.pp, change dport to some other port... <pre> node default { firewall { '100 allow sshd': state => 'NEW', dport => 1022, proto => 'tcp', action => 'accept', } } </pre> And notice the error message: <pre> [root@localhost tmp]# /usr/bin/puppet agent --onetime --no-daemonize --verbose --no-splay Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb Info: Caching catalog for node.example.com Info: Applying configuration version '1349129242' Error: The iptables provider can not handle attribute dport Error: /Firewall[100 allow sshd]/dport: change from 22 to 1022 failed: The iptables provider can not handle attribute dport Finished catalog run in 0.15 seconds </pre> On a 2.7.19 puppet client on the same machine, this same test yields the following result: <pre> [root@localhost tmp]# /usr/bin/puppet agent --onetime --no-daemonize --verbose --no-splay info: Retrieving plugin info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb info: Caching catalog for node.example.com info: Applying configuration version '1349129242' notice: /Firewall[100 allow sshd]/dport: dport changed ['22'] to '1022' notice: Firewall[100 allow sshd](provider=iptables): Properties changed - updating rule notice: Finished catalog run in 0.30 seconds </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
