spiegel_podman/test/e2e
Paul Holzinger dc9a65e348
test/e2e: use custom network config dir where needed
Since commit f250560a80 the play kube command uses its own network.
this is racy be design because we create the network followed by
creating/running pod/containers. This means in the meantime another
prune or reset process could wipe out the network config because we have
to share the network config directory by design in the test.

The problem is we only have one host netns which is shared between
tests. If the network config dir is not shared we cannot make conflict
checks for interface names and ip address. This results in different
tests trying to use the same interface and/or ip address which will
cause runtime failures in CNI and netavark.

The only solution I see is to make sure only the reset/prune tests are
using a custom network dir. This makes sure they do not wipe configs
that are otherwise required by other parallel running tests.

Fixes #17946

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-04-06 16:16:50 +02:00
..
build Merge pull request #16315 from flouthoc/remote-ignore-symlink 2023-03-28 23:23:07 +02:00
cdi build(deps): bump github.com/container-orchestrated-devices/container-device-interface 2023-02-20 14:51:04 +01:00
config Add support for oom_score_adj value from containers.conf 2023-03-17 12:04:37 -04:00
quadlet Merge pull request #17961 from ygalblum/quadlet-remap-keepid-map 2023-03-29 18:01:56 +02:00
sign e2e: reduce dependency on /tmp for e2e tests 2023-01-26 22:20:15 +09:00
testdata Add (podman {image,manifest} push --sign-by-sigstore=param-file.yaml) 2023-01-27 16:47:32 +01:00
attach_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
benchmarks_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
build_test.go test/e2e: use custom network config dir where needed 2023-04-06 16:16:50 +02:00
checkpoint_image_test.go test: podman run with checkpoint image 2022-12-02 14:39:33 +00:00
checkpoint_test.go e2e: reduce dependency on /tmp for e2e tests 2023-01-26 22:20:15 +09:00
cleanup_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
commit_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
common_test.go test/e2e: use custom network config dir where needed 2023-04-06 16:16:50 +02:00
config.go e2e: Avoid hard-coding ImageCacheDir 2023-01-30 10:14:08 +09:00
config_amd64.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
config_arm64.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
config_ppc64le.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
container_clone_test.go podman container clone env patch 2022-09-16 11:43:26 -04:00
container_create_volume_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
container_inspect_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
containers_conf_test.go Add support for cgroup_config from containers.conf 2023-04-01 11:12:13 -04:00
cp_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
create_staticip_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
create_staticmac_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
create_test.go Ensure that SQLite state handles name-ID collisions 2023-03-24 15:09:25 -04:00
diff_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
events_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
exec_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
exists_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
export_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
generate_kube_test.go Fix invalid pod name and hostname during kube generate 2023-04-05 17:43:02 -04:00
generate_spec_test.go Warning messages are printed and ignored if we use an unsupported option 2022-08-23 11:54:31 +09:00
generate_systemd_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
healthcheck_run_test.go e2e: healthcheck on stopped container: fix flake 2023-04-04 09:42:05 -06:00
history_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
image_scp_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
image_sign_test.go test/e2e: gpg keep stdout/err attached 2023-03-29 16:33:28 +02:00
images_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
import_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
info_test.go CI: test and confirm DESIRED_DATABASE 2023-03-16 15:32:56 -06:00
init_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
inspect_test.go Add container error message to ContainerState 2023-01-03 13:21:24 -05:00
kill_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
libpod_suite_remote_test.go Update Cirrus display names, and fix get-ci-vm script 2023-03-15 14:45:28 -04:00
libpod_suite_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
load_test.go enable gocritic linter 2022-04-26 18:12:22 +02:00
login_logout_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
logs_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
manifest_test.go Merge pull request #16549 from sstosh/remote-manifest-annotation 2022-12-12 09:29:06 -05:00
mount_rootless_test.go e2e: reduce dependency on /tmp for e2e tests 2023-01-26 22:20:15 +09:00
mount_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
negative_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
network_connect_disconnect_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
network_create_test.go network create: do not allow default as name 2023-01-20 14:52:07 +01:00
network_test.go test/e2e: use custom network config dir where needed 2023-04-06 16:16:50 +02:00
pause_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
play_build_test.go Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
play_kube_test.go libpod: mount safely subpaths 2023-03-31 19:48:03 +02:00
pod_clone_test.go [minor] fix duplicate test name 2022-07-07 11:23:17 -06:00
pod_create_test.go Ensure that SQLite state handles name-ID collisions 2023-03-24 15:09:25 -04:00
pod_infra_container_test.go Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
pod_initcontainers_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_inspect_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_kill_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_pause_test.go Fix podman pod unpaue TODO 2022-07-05 10:32:49 -04:00
pod_pod_namespaces_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_prune_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_ps_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_rm_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_start_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_stats_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_stop_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_top_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
port_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
prune_test.go test/e2e: use custom network config dir where needed 2023-04-06 16:16:50 +02:00
ps_test.go fix: don't output "ago" when container is currently up and running 2023-01-27 12:32:15 +01:00
pull_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
push_test.go Add (podman {image,manifest} push --sign-by-sigstore=param-file.yaml) 2023-01-27 16:47:32 +01:00
quadlet_test.go add quadlet -version flag 2023-04-04 11:32:47 +02:00
rename_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
restart_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
rm_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
rmi_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
run_aardvark_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
run_apparmor_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_cgroup_parent_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_cleanup_test.go e2e: Add rootless mount cleanup test 2022-08-05 12:01:51 +09:00
run_cpu_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_device_test.go ginkgo tests: apply ginkgolinter fixes 2022-12-20 16:47:17 +01:00
run_dns_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_entrypoint_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_env_test.go remote: allow --http-proxy for remote clients 2022-12-08 17:08:37 +01:00
run_exit_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_memory_test.go e2e: Add run --memory-swap test 2022-08-24 18:15:21 +09:00
run_networking_test.go Run make codespell 2023-03-21 16:00:54 -04:00
run_ns_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_passwd_test.go create: add support for --group-entry 2023-02-15 11:20:18 +05:30
run_privileged_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_seccomp_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_security_labels_test.go Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
run_selinux_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
run_signal_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_staticip_test.go e2e: fix run_staticip_test about no_proxy 2023-01-31 16:55:11 +09:00
run_test.go vendor containers/common@main 2023-03-23 15:16:57 +01:00
run_transient_test.go Ensure SQLite places uses the runroot in transient mode 2023-03-15 14:45:28 -04:00
run_userns_test.go test: reenable idmap test 2023-03-11 12:15:38 +01:00
run_volume_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_working_dir_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
runlabel_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
save_test.go test/e2e: gpg keep stdout/err attached 2023-03-29 16:33:28 +02:00
search_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
secret_test.go Add support for secret exists 2023-04-03 15:33:50 +03:00
start_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
stats_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
stop_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
system_connection_test.go fix port issues for CONTAINER_HOST 2022-11-16 11:01:30 -05:00
system_df_test.go fix --format {{json .}} output to match docker 2022-11-09 17:59:05 +01:00
system_dial_stdio_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
system_reset_test.go test/e2e: use custom network config dir where needed 2023-04-06 16:16:50 +02:00
system_service_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
systemd_activate_test.go Run make codespell 2023-03-21 16:00:54 -04:00
systemd_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
tag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
toolbox_test.go Clean up more language for inclusiveness 2023-01-27 09:40:27 -05:00
top_test.go vendor containers/psgo@v1.8.0 2022-10-14 17:28:15 +02:00
tree_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
trust_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
unshare_test.go e2e: fix some tests on remote 2023-02-08 18:07:41 +09:00
untag_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
update_test.go Fix default handling of pids-limit 2023-01-27 23:19:44 -06:00
version_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_create_test.go Fix typos. Improve language. 2023-02-09 21:56:27 +01:00
volume_exists_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
volume_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_ls_test.go podman volume ls: use report.Formatter over Template 2022-09-13 10:33:13 +02:00
volume_plugin_test.go fix volume-plugin-test flake 2023-03-30 09:15:13 +02:00
volume_prune_test.go fix != filter in volume prune 2023-02-15 10:55:21 +05:30
volume_rm_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
wait_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00