-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The API reference lists a single element as reponse to a request to the remove network endpoint. The API returns an array instead.
Steps to reproduce the issue:
-
podman system service unix:///home/`whoami`/testing.sock --log-level=debug --time=500 -
podman network create testing -
curl -X DELETE --unix-socket /home/`whoami`/testing.sock http://d/v3.2.0/libpod/networks/testing [{"Name":"testing","Err":null}]
Describe the results you received:
An array of results.
Describe the results you expected:
A single result.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 3.2.0-dev
API Version: 3.2.0-dev
Go Version: go1.15.10
Git Commit: 6ff56ab50a10e2350013c4ff1bf4b8d5d7b5aa87-dirty
Built: Tue Jan 1 01:00:00 1980
OS/Arch: linux/amd64
Output of podman info --debug:
host:
arch: amd64
buildahVersion: 1.20.1-dev
cgroupManager: cgroupfs
cgroupVersion: v1
conmon:
package: 'conmon: /usr/libexec/podman/conmon'
path: /usr/libexec/podman/conmon
version: 'conmon version 2.0.27, commit: '
cpus: 12
distribution:
distribution: debian
version: "10"
eventLogger: file
hostname: DESKTOP
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 5.4.72-microsoft-standard-WSL2
linkmode: static
memFree: 12503470080
memTotal: 13346447360
ociRuntime:
name: crun
package: 'crun: /usr/bin/crun'
path: /usr/bin/crun
version: |-
crun version 0.18.1-7931a-dirty
commit: 7931a1eab0590eff4041c1f74e2844b297c31cea
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
remoteSocket:
path: /tmp/podman-run-1000/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
selinuxEnabled: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: 'slirp4netns: /usr/bin/slirp4netns'
version: |-
slirp4netns version 1.1.8
commit: unknown
libslirp: 4.3.1-git
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.4.4
swapFree: 4294967296
swapTotal: 4294967296
uptime: 51m 52.44s
registries:
search:
- docker.io
- quay.io
store:
configFile: /home/alpaca/.config/containers/storage.conf
containerStore:
number: 4
paused: 0
running: 0
stopped: 4
graphDriverName: overlay
graphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: 'fuse-overlayfs: /usr/bin/fuse-overlayfs'
Version: |-
fusermount3 version: 3.4.1
fuse-overlayfs: version 1.4
FUSE library version 3.4.1
using FUSE kernel interface version 7.27
graphRoot: /home/alpaca/.local/share/containers/storage
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
imageStore:
number: 15
runRoot: /tmp/podman-run-1000/containers
volumePath: /home/alpaca/.local/share/containers/storage/volumes
version:
APIVersion: 3.2.0-dev
Built: 315532800
BuiltTime: Tue Jan 1 01:00:00 1980
GitCommit: 6ff56ab50a10e2350013c4ff1bf4b8d5d7b5aa87-dirty
GoVersion: go1.15.10
OsArch: linux/amd64
Version: 3.2.0-dev
Package info (e.g. output of rpm -q podman or apt list podman):
Static build from here.
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Checked troubleshooting guide, didn't find any static builds from CI besides the one from the 3.1.2 release I downloaded earlier.
Additional environment details (AWS, VirtualBox, physical, etc.):
Windows 10, 64bit, WLS2, Debian 10