kubernetes/test/e2e_node
Kubernetes Submit Queue ba62dafe39 Merge pull request #37663 from Random-Liu/fix-node-e2e-firewall-configure
Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)

Node E2E: Fix node e2e firewall configure.

Get rid of the misleading error message:
```
W1129 12:57:16.967] E1129 12:57:16.967130   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.201.208 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
W1129 12:57:17.271] E1129 12:57:17.271169   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.201.208 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
W1129 12:57:17.557] E1129 12:57:17.556683   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.128.178 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
W1129 12:57:17.771] I1129 12:57:17.771236   29815 remote.go:231] Killing any existing node processes on tmp-node-e2e-a1212c32-gci-dev-56-8977-0-0
W1129 12:57:17.877] E1129 12:57:17.877123   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.128.178 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
W1129 12:57:17.898] I1129 12:57:17.898711   29815 remote.go:239] Extracting tar on tmp-node-e2e-a1212c32-gci-dev-56-8977-0-0
W1129 12:57:17.941] E1129 12:57:17.941566   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.154.237 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
W1129 12:57:18.020] I1129 12:57:18.019802   29815 remote.go:231] Killing any existing node processes on tmp-node-e2e-a1212c32-coreos-alpha-1122-0-0-v20160727
W1129 12:57:18.024] E1129 12:57:18.024044   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.154.237 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
```

The problem is that the command 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" returns an error when the rule is not found, which is not expected behaviour.

@freehan
2016-12-03 04:27:48 -08:00
..
builder rename test/e2e_node/build/ to builder/ 2016-10-24 14:47:26 -07:00
conformance Final cleanup for node conformance test. 2016-11-23 13:39:54 -08:00
environment Update ubuntu image to e2e-node-ubuntu-trusty-docker10-v2-image. 2016-11-22 01:22:20 -08:00
jenkins Revert "Modify GCI mounter to enable NFSv3" 2016-12-01 11:47:24 -08:00
remote Merge pull request #37663 from Random-Liu/fix-node-e2e-firewall-configure 2016-12-03 04:27:48 -08:00
runner Collect serial output when test fails in node e2e. 2016-12-01 10:41:24 -08:00
services remove some options from mega-struct 2016-11-29 10:59:43 -05:00
system Add a reporter to the system verification check 2016-11-12 16:36:40 +02:00
apparmor_test.go Move GroupVersion* to pkg/runtime/schema 2016-11-23 21:03:36 -06:00
benchmark_util.go Replace client with clientset in code 2016-10-23 22:00:35 +02:00
BUILD InodeEviction test tests that when some pods create many empty files, both in their container and in volumes, they are evicted before pods that act normally. 2016-11-28 13:09:40 -08:00
cgroup_manager_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
container.go test/e2e_node 2016-11-23 15:53:09 -08:00
container_manager_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
density_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
disk_eviction_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
dynamic_kubelet_configuration_test.go Add dynamic kubelet configuration utilities to node e2e tests 2016-11-02 10:02:21 -07:00
e2e_node_suite_test.go Merge pull request #36334 from luxas/add_preflight 2016-12-01 04:52:07 -08:00
garbage_collector_test.go Merge pull request #37392 from Random-Liu/final-cleanup-for-nct 2016-11-29 22:39:52 -08:00
gubernator.sh Fix error message around gcloud calls in node e2e and gubernator 2016-09-17 01:05:20 -04:00
image_id_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
image_list.go Kubelet: Use RepoDigest for ImageID when available 2016-10-10 15:16:58 -04:00
inode_eviction_test.go changed api to api/v1 2016-11-28 14:24:43 -08:00
kubelet_test.go Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
lifecycle_hook_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
log_path_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
memory_eviction_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
mirror_pod_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
OWNERS add Lantao Liu as node e2e reviewer. Relieve pwittroc@ from node e2e maintenance 2016-08-11 12:56:05 -07:00
README.md Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
resource_collector.go test/e2e_node 2016-11-23 15:53:09 -08:00
resource_usage_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
restart_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
runtime_conformance_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
simple_mount.go test/e2e_node 2016-11-23 15:53:09 -08:00
summary_test.go test/e2e_node 2016-11-23 15:53:09 -08:00
util.go test/e2e_node 2016-11-23 15:53:09 -08:00
volume_manager_test.go test/e2e_node 2016-11-23 15:53:09 -08:00