Remove iptables >1.4.11 specific functionality

Scientific Linux 6 (and likely other similar distributions such as CentOS 6) ship with iptables 1.4.7, which doesn't support the -C flag.

Looking at examples of how other systems are handling this, Saltstack actually parses the help document to figure out if "--check" is present, and then either uses it (if present), or does something similar to this patch (if absent): https://github.com/saltstack/salt/blob/d50fdcb456ab69407610c5fa2abab68605af8084/salt/modules/iptables.py#L462

@thockin This is a continuation of #1979, now with ~100% more actually working, less bash, and a bit more testability.

I'm getting the same results for the e2e tests for this and master (using vagrant to run it): basic.sh and guestbook.sh passing and the others failing.

Edit: After some confusion, it looks like I'm mistaken about this requiring a kernel upgrade. I've removed that sentence.
I think option 2 sounds most resonable, disagree?

On Fri, Nov 7, 2014 at 3:59 PM, Haney Maxwell <notifications@github.com>
wrote:

> In pkg/util/iptables/iptables.go:
>
> > @@ -146,19 +147,33 @@ func (runner *runner) run(op operation, args []string) ([]byte, error) {
> >
> >  // Returns (bool, nil) if it was able to check the existence of the rule, or
> >  // (<undefined>, error) if the process of checking failed.
> > -func (runner *runner) checkRule(args []string) (bool, error) {
> > -	out, err := runner.run(opCheckRule, args)
> > -	if err == nil {
> > -		return true, nil
> > +// Note: This avoids using iptables "-C" flag in order to be compatible with iptables
> > +// versions <1.4.11
> > +func (runner *runner) checkRule(table Table, chain Chain, args []string) (bool, error) {
>
> That sounds good. There are a few approaches to figuring out if -C works:
>
>    1. Parsing iptables --help and looking for "-C"
>    2. Parsing iptables --version and comparing with "1.4.11"
>    3. Running the command, checking if the exit code is 2 and the output
>    includes "option `-C' requires an argument" (which is the, imo extremely
>    unhelpful, output iptables 1.4.7 gives when faced with a -C command).
>
> Do you have a preference?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/2067/files#r20045867>
> .
>