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

podman network can not rm network created with --macvlan #8491

Closed
ypu opened this issue Nov 26, 2020 · 0 comments · Fixed by #8493
Closed

podman network can not rm network created with --macvlan #8491

ypu opened this issue Nov 26, 2020 · 0 comments · Fixed by #8493
Assignees
Labels
In Progress This issue is actively being worked by the assignee, please do not work on this at this time. 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

@ypu
Copy link
Contributor

ypu commented Nov 26, 2020

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

/kind bug

Description

podman network can not remove network created with --macvlan as the conflist file is not include a bridge. It will report:

Error: failed to find network interface name in "/etc/cni/net.d/podman-dhcp.conflist": unable to find interface name for network

Steps to reproduce the issue:

  1. Use podman network to create a network conflist file
# podman network create --macvlan ens8 podman-macvlan
/etc/cni/net.d/podman-macvlan.conflist
  1. Try to remove it with podman network rm
# podman network rm podman-macvlan
Error: failed to find network interface name in "/etc/cni/net.d/podman-macvlan.conflist": unable to find interface name for network

Describe the results you received:
Command failed with error message

Describe the results you expected:
the network can be delete as expected

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

Output of podman version:

Version:      2.2.0-dev
API Version:  2.1.0
Go Version:   go1.14.10
Git Commit:   397e9a9f1b146617120690243a89fa9541f0854c
Built:        Thu Nov 26 18:02:42 2020
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.18.0
  cgroupManager: systemd
  cgroupVersion: v1
  conmon:
    package: conmon-2.0.19-1.fc32.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.19, commit: 5dce9767526ed27f177a8fa3f281889ad509fea7'
  cpus: 4
  distribution:
    distribution: fedora
    version: "32"
  eventLogger: journald
  hostname: bootp-73-3-208.eng.pek2.redhat.com
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.7.15-200.fc32.x86_64
  linkmode: dynamic
  memFree: 2946670592
  memTotal: 8340848640
  ociRuntime:
    name: runc
    package: runc-1.0.0-144.dev.gite6555cc.fc32.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc10+dev
      commit: fbdbaf85ecbc0e077f336c03062710435607dbf1
      spec: 1.0.1-dev
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  rootless: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 4294426624
  swapTotal: 4294963200
  uptime: 526h 3m 9.95s (Approximately 21.92 days)
registries:
  search:
  - registry.access.redhat.com
  - registry.redhat.io
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  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: 2
  runRoot: /var/run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 2.1.0
  Built: 1606384962
  BuiltTime: Thu Nov 26 18:02:42 2020
  GitCommit: 397e9a9f1b146617120690243a89fa9541f0854c
  GoVersion: go1.14.10
  OsArch: linux/amd64
  Version: 2.2.0-dev

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

Yes

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

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 26, 2020
@Luap99 Luap99 self-assigned this Nov 26, 2020
@Luap99 Luap99 added the In Progress This issue is actively being worked by the assignee, please do not work on this at this time. label Nov 26, 2020
@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
In Progress This issue is actively being worked by the assignee, please do not work on this at this time. 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