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

Cannot join the uts namespace of a running container #5289

Closed
space88man opened this issue Feb 21, 2020 · 2 comments · Fixed by #5332
Closed

Cannot join the uts namespace of a running container #5289

space88man opened this issue Feb 21, 2020 · 2 comments · Fixed by #5332
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@space88man
Copy link

space88man commented Feb 21, 2020

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description
A container is unable to join the uts namespace of another running container.

Steps to reproduce the issue:

  1. podman run --rm -it --name uts_1 centos:8

  2. podman run --rm -it --name uts_2 --network container:uts_1 --uts container:uts_1 centos:8

Describe the results you received:
Error: unable to retrieve hostname from dependency container uts_1: container uts_1 not found in DB: no such container

Describe the results you expected:
Container uts_2 has joined the network/uts namespace of container uts_1

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

Version:            1.8.0
RemoteAPI Version:  1
Go Version:         go1.13.6
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: ""
  go version: go1.13.6
  podman version: 1.8.0
host:
  BuildahVersion: 1.13.1
  CgroupVersion: v2
  Conmon:
    package: conmon-2.0.10-2.fc31.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.10, commit: 6b526d9888abb86b9e7de7dfdeec0da98ad32ee0'
  Distribution:
    distribution: fedora
    version: "31"
  MemFree: 8489852928
  MemTotal: 33608642560
  OCIRuntime:
    name: crun
    package: crun-0.12.1-1.fc31.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.12.1
      commit: df5f2b2369b3d9f36d175e1183b26e5cee55dd0a
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 8
  eventlogger: journald
  hostname: podman.test.com
  kernel: 5.4.17-200.fc31.x86_64
  os: linux
  rootless: false
  uptime: 233h 0m 40.52s (Approximately 9.71 days)
registries:
  search:
  - docker.io
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - quay.io
store:
  ConfigFile: /etc/containers/storage.conf
  ContainerStore:
    number: 11
  GraphDriverName: overlay
  GraphOptions:
    overlay.mountopt: nodev,metacopy=on
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  ImageStore:
    number: 18
  RunRoot: /var/run/containers/storage
  VolumePath: /var/lib/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):

podman-1.8.0-2.fc31.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 21, 2020
@giuseppe
Copy link
Member

looks like the lookup for alias is broken.

It works if the full ID is provided

giuseppe added a commit to giuseppe/libpod that referenced this issue Feb 26, 2020
Previously --uts=container: expected the full container ID.

Closes: containers#5289

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member

PR here: #5332

giuseppe added a commit to giuseppe/libpod that referenced this issue Feb 26, 2020
Previously --uts=container: expected the full container ID.

Closes: containers#5289

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
mheon pushed a commit to mheon/libpod that referenced this issue Feb 27, 2020
Previously --uts=container: expected the full container ID.

Closes: containers#5289

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
snj33v pushed a commit to snj33v/libpod that referenced this issue May 31, 2020
Previously --uts=container: expected the full container ID.

Closes: containers#5289

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants