-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
# bats test/100-bridge-iptables.bats
✗ iptables - internal network
(in test file test/100-bridge-iptables.bats, line 22)
`assert "$output" == "$before" "make sure tables have not changed"' failed
nsenter -n -m -w -t 691 ip link set lo up
nsenter -n -m -w -t 691 iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
nsenter -n -m -w -t 691 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.XQo3PG/config --file /usr/lib64/netavark/ptest/test
{"podman":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"32:d0:98:db:24:1d","subnets":[{"gateway":"10.88.0.1","ipn}
nsenter -n -m -w -t 691 iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1 packets, 40 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 1 packets, 40 bytes)
pkts bytes target prot opt in out source destination
#/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#| FAIL: make sure tables have not changed
#| expected: 'Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination '
#| actual: 'Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)'
#| > ' pkts bytes target prot opt in out source destination '
#| > 'Chain INPUT (policy ACCEPT 0 packets, 0 bytes)'
#| > ' pkts bytes target prot opt in out source destination '
#| > 'Chain OUTPUT (policy ACCEPT 1 packets, 40 bytes)'
#| > ' pkts bytes target prot opt in out source destination '
#| > 'Chain POSTROUTING (policy ACCEPT 1 packets, 40 bytes)'
#| > ' pkts bytes target prot opt in out source destination '
#\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
✗ iptables - port range forwarding dual - udp
(in test file test/100-bridge-iptables.bats, line 499)
`test_port_fw ip=dual proto=udp range=3' failed
nsenter -n -m -w -t 4964 ip link set lo up
{
"container_id": "xZFWLlTE9Pfy5eAkZOKXBmRoiKnKTioU25XCLLv9gqUXNxuBCzTCAtt5hyTQQ4NV",
"container_name": "name-aNR6UljgUg",
"port_mappings": [
{
"host_ip": "",
"container_port": 15320,
"host_port": 27963,
"range": 3,
"protocol": "udp"
}
],
"networks": {
"podman1": {
"static_ips": [
"10.47.233.213", "fd88:2da4:7d39:3786::578e"
],
"interface_name": "eth0"
}
},
"network_info": {
"podman1": {
"name": "podman1",
"id": "ed82e3a703682a9c09629d3cf45c1f1e7da5b32aeff3faf82837ef4d005356e6",
"driver": "bridge",
"network_interface": "podman1",
"subnets": [
{"subnet":"10.47.233.0/24","gateway":"10.47.233.1"}, {"subnet":"fd88:2da4:7d39:3786::/64","gateway":"fd88:2da4:7d39:3786::1"}
],
"ipv6_enabled": true,
"internal": false,
"dns_enabled": false,
"ipam_options": {
"driver": "host-local"
}
}
}
}
nsenter -n -m -w -t 4964 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.yKHKNX/config setup /proc/4966/ns/net
{"podman1":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"f6:7d:af:c7:dd:ee","subnets":[{"gateway":"10.47.233.1","}
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27963
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27963
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27964
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27964
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27965
nsenter -n -m -w -t 4964 ncat -4 --udp 10.47.233.1 27965
#/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#| FAIL: ncat received data
#| expected: 'SGNRmbzylW'
#| actual: 'SGNRmbzylW'
#| > 'timeout: sending signal TERM to command 'ncat''
#\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
✗ iptables - bridge teardown
(in test file test/100-bridge-iptables.bats, line 924)
`assert "${#lines[@]}" == 1 "only loopback adapter"' failed
nsenter -n -m -w -t 8405 ip link set lo up
nsenter -n -m -w -t 8405 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.N83fdC/config setup /proc/8407/ns/net
{"podman":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"22:12:8d:be:cf:80","subnets":[{"gateway":"10.88.0.1","ipn}
nsenter -n -m -w -t 8405 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.N83fdC/config setup /proc/8415/ns/net
{"podman":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"f2:0e:e7:e6:82:61","subnets":[{"gateway":"10.88.0.1","ipn}
nsenter -n -m -w -t 8405 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.N83fdC/config teardown /proc/8407/ns/net
nsenter -n -m -w -t 8405 ip link show podman1
3: podman1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 1e:06:7e:3a:0d:cb brd ff:ff:ff:ff:ff:ff
nsenter -n -m -w -t 8405 iptables -S NETAVARK_FORWARD
-N NETAVARK_FORWARD
-A NETAVARK_FORWARD -m conntrack --ctstate INVALID -j DROP
-A NETAVARK_FORWARD -d 10.88.0.0/16 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A NETAVARK_FORWARD -s 10.88.0.0/16 -j ACCEPT
nsenter -n -m -w -t 8405 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.N83fdC/config teardown /proc/8415/ns/net
nsenter -n -m -w -t 8405 ip link show podman1
Device "podman1" does not exist.
[ rc=1 (expected) ]
nsenter -n -m -w -t 8405 iptables -S NETAVARK_FORWARD
-N NETAVARK_FORWARD
-A NETAVARK_FORWARD -m conntrack --ctstate INVALID -j DROP
nsenter -n -m -w -t 8405 ip -o link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\ link/loopback 00:00:00:00:00:00 brd 00:00
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/sit 0.0.0.0 brd 0.0.0.0
#/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#| FAIL: only loopback adapter
#| expected: '1'
#| actual: '2'
#\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
✗ iptables - test firewalld reload
(in test file test/100-bridge-iptables.bats, line 1001)
`run_in_host_netns firewall-cmd --reload' failed
nsenter -n -m -w -t 9098 ip link set lo up
nsenter -n -m -w -t 9098 dbus-daemon --address=unix:path=/tmp/netavark_bats.aUZi58/netavark-firewalld --print-pid --config-file=/usr/lib64/netavark/f
9110
firewalld pid: 9111
nsenter -n -m -w -t 9098 firewall-cmd --state
not running
[ rc=252 ]
nsenter -n -m -w -t 9098 firewall-cmd --state
running
nsenter -n -m -w -t 9098 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.aUZi58/config --file /usr/lib64/netavark/ptest/tet
{"podman":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"9e:94:9e:42:2d:0f","subnets":[{"gateway":"10.88.0.1","ipn}
nsenter -n -m -w -t 9098 iptables -S POSTROUTING -t nat
-P POSTROUTING ACCEPT
-A POSTROUTING -j NETAVARK-HOSTPORT-MASQ
-A POSTROUTING -s 10.88.0.0/16 -j NETAVARK-1D8721804F16F
nsenter -n -m -w -t 9098 iptables -S NETAVARK-1D8721804F16F -t nat
-N NETAVARK-1D8721804F16F
-A NETAVARK-1D8721804F16F -d 10.88.0.0/16 -j ACCEPT
-A NETAVARK-1D8721804F16F ! -d 224.0.0.0/4 -j MASQUERADE
nsenter -n -m -w -t 9098 iptables -S FORWARD
-P FORWARD ACCEPT
-A FORWARD -m comment --comment "netavark firewall rules" -j NETAVARK_FORWARD
nsenter -n -m -w -t 9098 iptables -S NETAVARK_FORWARD
-N NETAVARK_FORWARD
-A NETAVARK_FORWARD -m conntrack --ctstate INVALID -j DROP
-A NETAVARK_FORWARD -d 10.88.0.0/16 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A NETAVARK_FORWARD -s 10.88.0.0/16 -j ACCEPT
nsenter -n -m -w -t 9098 firewall-cmd --reload
timeout: sending signal TERM to command 'nsenter'
[ rc=124 (** EXPECTED 0 **) ]
*** TIMED OUT ***
/usr/lib64/netavark/ptest/test/helpers.bash: line 49: 9111 Killed nsenter -n -t $HOST_NS_PID firewalld --nopid --nofork --system-co"
✗ iptables - port forwarding ipv4 - tcp with firewalld reload
(in test file test/100-bridge-iptables.bats, line 1027)
`test_port_fw firewalld_reload=true' failed
nsenter -n -m -w -t 9239 ip link set lo up
{
"container_id": "FR01hhVccwTLfBXpYKgRsh5QFav1V4hARRL5Le21fYcM8xwuz0DIULGA1S87fOyK",
"container_name": "name-qkut1KaoxG",
"port_mappings": [
{
"host_ip": "",
"container_port": 1077,
"host_port": 22638,
"range": 1,
"protocol": "tcp"
}
],
"networks": {
"podman1": {
"static_ips": [
"10.139.115.53"
],
"interface_name": "eth0"
}
},
"network_info": {
"podman1": {
"name": "podman1",
"id": "ed82e3a703682a9c09629d3cf45c1f1e7da5b32aeff3faf82837ef4d005356e6",
"driver": "bridge",
"network_interface": "podman1",
"subnets": [
{"subnet":"10.139.115.0/24","gateway":"10.139.115.1"}
],
"ipv6_enabled": true,
"internal": false,
"dns_enabled": false,
"ipam_options": {
"driver": "host-local"
}
}
}
}
nsenter -n -m -w -t 9239 dbus-daemon --address=unix:path=/tmp/netavark_bats.BLSES9/netavark-firewalld --print-pid --config-file=/usr/lib64/netavark/f
9265
firewalld pid: 9266
nsenter -n -m -w -t 9239 firewall-cmd --state
not running
[ rc=252 ]
nsenter -n -m -w -t 9239 firewall-cmd --state
running
nsenter -n -m -w -t 9239 /usr/libexec/podman/netavark --rootless false --config /tmp/netavark_bats.BLSES9/config setup /proc/9241/ns/net
{"podman1":{"dns_search_domains":[],"dns_server_ips":[],"interfaces":{"eth0":{"mac_address":"b2:ec:65:e4:e0:30","subnets":[{"gateway":"10.139.115.1",}
nsenter -n -m -w -t 9239 firewall-cmd --reload
timeout: sending signal TERM to command 'nsenter'
[ rc=124 (** EXPECTED 0 **) ]
*** TIMED OUT ***
/usr/lib64/netavark/ptest/test/helpers.bash: line 49: 9266 Killed nsenter -n -t $HOST_NS_PID firewalld --nopid --nofork --system-co"
/usr/lib64/netavark/ptest/test/helpers.bash: line 49: 9301 Killed nsenter -n -t $HOST_NS_PID $NETAVARK --config "$NETAVARK_TMPDIR/cd
54 tests, 5 failures
Metadata
Metadata
Assignees
Labels
No labels