podman: podman generate systemd service files fail for rootless pods
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
-
create nginx pod named ‘nginx’, port maps 80 and 443 to rootless ports
-
run nginx in pod
-
podman generate systemd --name nginx --files
-
copy these to /etc/systemd/system && daemon reload
-
systemctl start services, auth as user, errors will report no such container.
Describe the results you received: no such container with infra id no such pod with id
Describe the results you expected: pod starts
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 1.7.0
RemoteAPI Version: 1
Go Version: go1.13.5
Git Commit: b7ce1157b00af09f4a09e39b377aa3abff46ee05-dirty
Built: Sat Jan 11 04:49:39 2020
OS/Arch: linux/amd64
(paste your output here)
Output of podman info --debug:
debug:
compiler: gc
git commit: b7ce1157b00af09f4a09e39b377aa3abff46ee05-dirty
go version: go1.13.5
podman version: 1.7.0
host:
BuildahVersion: 1.12.0
CgroupVersion: v1
Conmon:
package: Unknown
path: /usr/bin/conmon
version: ‘conmon version 2.0.9, commit: 60b42f20f222df9da07a01ee444327348b9f54ee’
Distribution:
distribution: arch
version: unknown
IDMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 110000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 110000
size: 65536
MemFree: 850952192
MemTotal: 16781709312
OCIRuntime:
name: runc
package: Unknown
path: /usr/bin/runc
version: |-
runc version 1.0.0-rc9
commit: d736ef14f0288d6993a1845745d6756cfc9ddd5a
spec: 1.0.1-dev
SwapFree: 0
SwapTotal: 0
arch: amd64
cpus: 16
eventlogger: journald
hostname: malt
kernel: 5.4.14-arch1-1
os: linux
rootless: true
slirp4netns:
Executable: /usr/bin/slirp4netns
Package: Unknown
Version: |-
slirp4netns version 0.4.3
commit: 2244b9b6461afeccad1678fac3d6e478c28b4ad6
uptime: 27h 20m 25.12s (Approximately 1.12 days)
registries:
search:
- docker.io
- registry.fedoraproject.org
- quay.io
- registry.access.redhat.com
- registry.centos.org store: ConfigFile: /home/cicero/.config/containers/storage.conf ContainerStore: number: 26 GraphDriverName: vfs GraphOptions: {} GraphRoot: /home/cicero/.local/share/containers/storage GraphStatus: {} ImageStore: number: 13 RunRoot: /run/user/1000 VolumePath: /home/cicero/.local/share/containers/storage/volumes
(paste your output here)
Package info (e.g. output of rpm -q podman or apt list podman):
Arch package
(paste your output here)
Additional environment details (AWS, VirtualBox, physical, etc.): physical desktop, AMD.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (10 by maintainers)
Do a
systemctl --user daemon-reloadbefore. Also note that we need to pass--usertosystemctl.