Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifests: add passt #2420

Merged
merged 2 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions manifest-lock.aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,12 @@
"pam-libs": {
"evra": "1.5.2-16.fc38.aarch64"
},
"passt": {
"evra": "0^20230509.g96f8d55-1.fc38.aarch64"
},
"passt-selinux": {
"evra": "0^20230509.g96f8d55-1.fc38.noarch"
},
"passwd": {
"evra": "0.80-14.fc38.aarch64"
},
Expand Down
6 changes: 6 additions & 0 deletions manifest-lock.ppc64le.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,12 @@
"pam-libs": {
"evra": "1.5.2-16.fc38.ppc64le"
},
"passt": {
"evra": "0^20230509.g96f8d55-1.fc38.ppc64le"
},
"passt-selinux": {
"evra": "0^20230509.g96f8d55-1.fc38.noarch"
},
"passwd": {
"evra": "0.80-14.fc38.ppc64le"
},
Expand Down
6 changes: 6 additions & 0 deletions manifest-lock.s390x.json
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,12 @@
"pam-libs": {
"evra": "1.5.2-16.fc38.s390x"
},
"passt": {
"evra": "0^20230509.g96f8d55-1.fc38.s390x"
},
"passt-selinux": {
"evra": "0^20230509.g96f8d55-1.fc38.noarch"
},
"passwd": {
"evra": "0.80-14.fc38.s390x"
},
Expand Down
6 changes: 6 additions & 0 deletions manifest-lock.x86_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,12 @@
"pam-libs": {
"evra": "1.5.2-16.fc38.x86_64"
},
"passt": {
"evra": "0^20230509.g96f8d55-1.fc38.x86_64"
},
"passt-selinux": {
"evra": "0^20230509.g96f8d55-1.fc38.noarch"
},
"passwd": {
"evra": "0.80-14.fc38.x86_64"
},
Expand Down
2 changes: 2 additions & 0 deletions manifests/user-experience.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ packages:
- runc
- skopeo
- toolbox
# passt provides user-mode networking daemons for namespaces
- passt
# nvme-cli for managing nvme disks
- nvme-cli
# Used by admins interactively
Expand Down
53 changes: 53 additions & 0 deletions tests/kola/podman/rootless-pasta-networking
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash
## kola:
## description: Verify that rootless pasta networking passt works.
## # This test downloads containers and curls from the net.
## tags: "platform-independent needs-internet"
## # This test doesn't make meaningful changes to the system and
## # should be able to be combined with other tests.
## exclusive: false
## # This test reaches out to the internet and it could take more
## # time to pull down the container.
## timeoutMin: 3

# See https://github.com/coreos/fedora-coreos-tracker/issues/1436

set -xeuo pipefail
. $KOLA_EXT_DATA/commonlib.sh

runascoreuserscript='#!/bin/bash
set -euxo pipefail
# Just a basic test that uses pasta network and sets the gateway
podman run -i --net=pasta:-g,8.8.8.8 registry.fedoraproject.org/fedora:38 bash <<"EOF"
set -euxo pipefail
# Verify the 8.8.8.8 got set as the gateway. No /sbin/ip so just use /proc/net/route
cat /proc/net/route | grep 08080808
# Download something from the internet. Here we use one of the test
# fixtures from the ignition.resource.remote test.
result=$(curl https://ignition-test-fixtures.s3.amazonaws.com/resources/anonymous)
[ "$result" == "kola-anonymous" ] || exit 1
EOF
'

runascoreuser() {
# NOTE: If we don't use `| cat` the output won't get copied
# to our unit and won't show up in the `systemctl status` output
# of the ext test.
sudo -u core "$@" | cat
}

main() {

# Execute script as the core user to exercise rootless podman
runascoreuserscriptpath=$(mktemp --suffix=runascoreuser)
echo "$runascoreuserscript" > $runascoreuserscriptpath
chmod +x $runascoreuserscriptpath
chown core $runascoreuserscriptpath
if runascoreuser $runascoreuserscriptpath; then
ok "Podman with pasta networking succeeded!"
else
fatal "Podman with pasta networking failed"
fi
}

main