FS#77364 - [podman] quadlet generate systemd service with wrong podman binary path

Attached to Project: Community Packages
Opened by HaoCheng (tkit) - Friday, 03 February 2023, 01:47 GMT
Last edited by David Runge (dvzrv) - Saturday, 04 February 2023, 11:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

podman quadlet generate systemd service with wrong podman binary path `/usr/local/bin/podman`.

Additional info:
* package version(s)
LANG=C pacman -Qi podman
Name : podman
Version : 4.4.0-1
Description : Tool and library for running OCI-based containers in pods
Architecture : x86_64
URL : https://github.com/containers/podman
Licenses : Apache
Groups : None
Provides : None
Depends On : catatonit conmon containers-common crun iptables libdevmapper.so=1.02-64 libgpgme.so=11-64 libseccomp.so=2-64 slirp4netns
Optional Deps : apparmor: for AppArmor support [installed]
btrfs-progs: support btrfs backend devices [installed]
cni-plugins: for an alternative container-network-stack implementation
podman-compose: for docker-compose compatibility
podman-docker: for Docker-compatible CLI [installed]
Required By : podman-docker
Optional For : kind
Conflicts With : None
Replaces : None
Installed Size : 78.98 MiB
Packager : Morten Linderud <foxboron@archlinux.org>
Build Date : Thu Feb 2 07:25:31 2023
Install Date : Thu Feb 2 18:03:50 2023
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
* config and/or log files etc.
https://raw.githubusercontent.com/containers/podman/main/test/e2e/quadlet/basic.kube
* link to upstream bug report, if any
None

Steps to reproduce:
mkdir -p ~/.config/containers/systemd
cd ~/.config/containers/systemd
wget https://raw.githubusercontent.com/containers/podman/main/test/e2e/quadlet/basic.kube
/usr/lib/podman/quadlet --dryrun --user
quadlet-generator[35997]: Loading source unit file /home/tkit/.config/containers/systemd/basic.kube
---basic.service---
## assert-podman-args "kube"
## assert-podman-args "play"
## assert-podman-final-args-regex .*/podman_test.*/quadlet/deployment.yml
## assert-podman-args "--replace"
## assert-podman-args "--service-container=true"
## assert-podman-stop-args "kube"
## assert-podman-stop-args "down"
## assert-podman-stop-final-args-regex .*/podman_test.*/quadlet/deployment.yml
## assert-key-is "Unit" "RequiresMountsFor" "%t/containers"
## assert-key-is "Service" "KillMode" "mixed"
## assert-key-is "Service" "Type" "notify"
## assert-key-is "Service" "NotifyAccess" "all"
## assert-key-is "Service" "Environment" "PODMAN_SYSTEMD_UNIT=%n"
## assert-key-is "Service" "SyslogIdentifier" "%N"

[X-Kube]
Yaml=deployment.yml

[Unit]
SourcePath=/home/tkit/.config/containers/systemd/basic.kube
RequiresMountsFor=%t/containers

[Service]
KillMode=mixed
Environment=PODMAN_SYSTEMD_UNIT=%n
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
ExecStart=/usr/local/bin/podman kube play --replace --service-container=true /home/tkit/.config/containers/systemd/deployment.yml
ExecStop=/usr/local/bin/podman kube down /home/tkit/.config/containers/systemd/deployment.yml
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 04 February 2023, 11:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 4.4.0-2
Comment by HaoCheng (tkit) - Friday, 03 February 2023, 01:57 GMT
here is a working patch for this bug, you may apply it to the PKGBUID.
Comment by HaoCheng (tkit) - Friday, 03 February 2023, 10:34 GMT
typo: quallet shoud be quadlet. (Where to find the edit option)
Comment by David Runge (dvzrv) - Friday, 03 February 2023, 23:36 GMT
@tkit: Thanks for the report!

Please check whether podman 4.4.0-2 fixes this for you.
Comment by HaoCheng (tkit) - Saturday, 04 February 2023, 01:05 GMT
@dvzrv:thanks it fixes

Loading...