You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating podman network using driver macvlan with ipv6 enabled and ipam-driver dhcp passes through an ipv4 address, but not an ipv6 address.
Steps to reproduce the issue
Steps to reproduce the issue
1.podman network create -d macvlan -o parent=enp1s0 --ipv6 --ipam-driver=dhcp macvlan-dhcp
2. systemctl enable --now netavark-dhcp-proxy.socket
3. podman run -dit --name alpine_macvlantest --hostname apline1 --network macvlan-dhcp alpine
4. podman exec -it alpine_macvlantest ip a s
5. Observe no IPv6 address assigned via dhcp request:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 4a:cf:e9:f8:b7:9c brd ff:ff:ff:ff:ff:ff
inet 192.168.197.63/24 brd 192.168.197.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::48cf:e9ff:fef8:b79c/64 scope link
valid_lft forever preferred_lft forever
Creating a connection profile via nmcli for type macvlan using the same macvlan.parent enp1s0 with ipv4 and ipv6 set to auto the DHCP request produces both an IPv4 and an IPv6 address assigned from DHCP.
Describe the results you received
Only an IPv4 address is assigned.
Describe the results you expected
An IPv6 address is also assigned.
podman info output
Client: Podman EngineVersion: 5.3.0-dev-ef905ef8dAPI Version: 5.3.0-dev-ef905ef8dGo Version: go1.21.11 (Red Hat 1.21.11-1.el9_4)Built: Thu Aug 29 17:00:00 2024OS/Arch: linux/amd64host:
arch: amd64buildahVersion: 1.37.0cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- rdma
- misccgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.10-1.20240313132120223048.main.19.gaffab49.el9.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.10, commit: 'cpuUtilization:
idlePercent: 97.58systemPercent: 0.9userPercent: 1.52cpus: 12databaseBackend: boltdbdistribution:
distribution: rhelversion: "9.4"eventLogger: journaldfreeLocks: 1919hostname: adateststs01idMappings:
gidmap: nulluidmap: nullkernel: 5.14.0-427.31.1.el9_4.x86_64linkmode: dynamiclogDriver: journaldmemFree: 9876156416memTotal: 63905845248networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.12.1-1.20240830115453292212.main.12.g81fd123.el9.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.13.0-devpackage: netavark-1.12.1-1.20240830115532915099.main.28.g5d534f0.el9.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.13.0-devociRuntime:
name: crunpackage: crun-1.16-1.20240813143753154884.main.16.g26c7687.el9.x86_64path: /usr/bin/crunversion: |- crun version UNKNOWN commit: 313fbcecf6aa0ac54c17b96e46d5b01bfaf912d2 rundir: /run/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20231204.gb86afe3-1.el9.x86_64version: | pasta 0^20231204.gb86afe3-1.el9.x86_64 Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: falsepath: /run/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: 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_CHROOTrootless: falseseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: falseslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.2.3-1.el9.x86_64version: |- slirp4netns version 1.2.3 commit: c22fde291bb35b354e6ca44d13be181c76a0a432 libslirp: 4.4.0 SLIRP_CONFIG_VERSION_MAX: 3 libseccomp: 2.5.2swapFree: 8589930496swapTotal: 8589930496uptime: 390h 57m 50.00s (Approximately 16.25 days)variant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- registry.access.redhat.com
- registry.redhat.io
- docker.iostore:
configFile: /etc/containers/storage.confcontainerStore:
number: 30paused: 0running: 29stopped: 1graphDriverName: overlaygraphOptions:
overlay.mountopt: nodev,metacopy=ongraphRoot: /var/lib/containers/storagegraphRootAllocated: 482947891200graphRootUsed: 207428919296graphStatus:
Backing Filesystem: xfsNative Overlay Diff: "false"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "true"imageCopyTmpDir: /var/tmpimageStore:
number: 134runRoot: /run/containers/storagetransientStore: falsevolumePath: /var/lib/containers/storage/volumesversion:
APIVersion: 5.3.0-dev-ef905ef8dBuilt: 1724976000BuiltTime: Thu Aug 29 17:00:00 2024GitCommit: ""GoVersion: go1.21.11 (Red Hat 1.21.11-1.el9_4)Os: linuxOsArch: linux/amd64Version: 5.3.0-dev-ef905ef8d
TrevorBenson
changed the title
network driver macvlan does not pass an ipv6 address
network driver macvlan does not receive an ipv6 address from dhcp
Sep 2, 2024
Issue Description
Creating podman network using driver macvlan with ipv6 enabled and ipam-driver dhcp passes through an ipv4 address, but not an ipv6 address.
Steps to reproduce the issue
Steps to reproduce the issue
1.
podman network create -d macvlan -o parent=enp1s0 --ipv6 --ipam-driver=dhcp macvlan-dhcp
2.
systemctl enable --now netavark-dhcp-proxy.socket
3.
podman run -dit --name alpine_macvlantest --hostname apline1 --network macvlan-dhcp alpine
4.
podman exec -it alpine_macvlantest ip a s
5. Observe no IPv6 address assigned via dhcp request:
Creating a connection profile via nmcli for type macvlan using the same macvlan.parent enp1s0 with ipv4 and ipv6 set to auto the DHCP request produces both an IPv4 and an IPv6 address assigned from DHCP.
Describe the results you received
Only an IPv4 address is assigned.
Describe the results you expected
An IPv6 address is also assigned.
podman info output
podman-5.3.0~dev-1.20240830165428154093.main.1374.ef905ef8d.el9.x86_64
The text was updated successfully, but these errors were encountered: