@@ -49,9 +49,9 @@ setup() {
4949 # the default c/storage behavior is to make the mount propagation private.
5050 export _PODMAN_TEST_OPTS=" --storage-opt=skip_mount_home=true --cgroup-manager=cgroupfs --root=$PODMAN_UPGRADE_WORKDIR /root --runroot=$PODMAN_UPGRADE_WORKDIR /runroot --tmpdir=$PODMAN_UPGRADE_WORKDIR /tmp"
5151
52- # Old netavark used iptables but newer versions might uses nftables.
53- # Networking can only work correctly if both use the same firewall driver so force iptables .
54- printf " [network]\nfirewall_driver=\" iptables \" \n" > $PODMAN_UPGRADE_WORKDIR /containers.conf
52+
53+ # Starting with v6.0.0 we only test upgrade from versions that support nftables .
54+ printf " [network]\nfirewall_driver=\" nftables \" \n" > $PODMAN_UPGRADE_WORKDIR /containers.conf
5555 export CONTAINERS_CONF_OVERRIDE=$PODMAN_UPGRADE_WORKDIR /containers.conf
5656}
5757
@@ -64,21 +64,6 @@ setup() {
6464 OLD_PODMAN=quay.io/podman/stable:$PODMAN_UPGRADE_FROM
6565 $PODMAN pull $OLD_PODMAN
6666
67- # Can't mix-and-match iptables.
68- # This can only fail when we bring in new CI VMs. If/when it does fail,
69- # we'll need to figure out how to solve it. Until then, punt.
70- iptables_old_version=$( $PODMAN run --rm $OLD_PODMAN iptables -V)
71- run -0 expr " $iptables_old_version " : " .*(\(.*\))"
72- iptables_old_which=" $output "
73-
74- iptables_new_version=$( iptables -V)
75- run -0 expr " $iptables_new_version " : " .*(\(.*\))"
76- iptables_new_which=" $output "
77-
78- if [[ " $iptables_new_which " != " $iptables_old_which " ]]; then
79- die " Cannot mix iptables; $PODMAN_UPGRADE_FROM container uses $iptables_old_which , host uses $iptables_new_which "
80- fi
81-
8267 # Shortcut name, because we're referencing it a lot
8368 pmroot=$PODMAN_UPGRADE_WORKDIR
8469
223208
224209@test " images" {
225210 run_podman images -a --format ' {{.Names}}'
226- assert " ${lines[0]} " =~ " \[localhost/podman-pause:${PODMAN_UPGRADE_FROM## v} -.*\]" " podman images, line 0"
227- assert " ${lines[1]} " = " [$IMAGE ]" " podman images, line 1"
211+ # Filter out the podman-pause image which isn't present for
212+ # versions >= 5.5.0
213+ run -0 grep -v " localhost/podman-pause" <<< " $output"
214+ assert " ${lines[0]} " = " [$IMAGE ]" " podman images, line 0"
228215}
229216
230217@test " ps : one container running" {
0 commit comments