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

network driver macvlan does not receive an ipv6 address from dhcp #1072

Open
TrevorBenson opened this issue Sep 2, 2024 · 1 comment
Open

Comments

@TrevorBenson
Copy link

TrevorBenson commented 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:

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 Engine
Version:      5.3.0-dev-ef905ef8d
API Version:  5.3.0-dev-ef905ef8d
Go Version:   go1.21.11 (Red Hat 1.21.11-1.el9_4)
Built:        Thu Aug 29 17:00:00 2024
OS/Arch:      linux/amd64

host:
  arch: amd64
  buildahVersion: 1.37.0
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.10-1.20240313132120223048.main.19.gaffab49.el9.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: '
  cpuUtilization:
    idlePercent: 97.58
    systemPercent: 0.9
    userPercent: 1.52
  cpus: 12
  databaseBackend: boltdb
  distribution:
    distribution: rhel
    version: "9.4"
  eventLogger: journald
  freeLocks: 1919
  hostname: adateststs01
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.14.0-427.31.1.el9_4.x86_64
  linkmode: dynamic
  logDriver: journald
  memFree: 9876156416
  memTotal: 63905845248
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.12.1-1.20240830115453292212.main.12.g81fd123.el9.x86_64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.13.0-dev
    package: netavark-1.12.1-1.20240830115532915099.main.28.g5d534f0.el9.x86_64
    path: /usr/libexec/podman/netavark
    version: netavark 1.13.0-dev
  ociRuntime:
    name: crun
    package: crun-1.16-1.20240813143753154884.main.16.g26c7687.el9.x86_64
    path: /usr/bin/crun
    version: |-
      crun version UNKNOWN
      commit: 313fbcecf6aa0ac54c17b96e46d5b01bfaf912d2
      rundir: /run/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-0^20231204.gb86afe3-1.el9.x86_64
    version: |
      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: false
    path: /run/podman/podman.sock
  rootlessNetworkCmd: pasta
  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: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.3-1.el9.x86_64
    version: |-
      slirp4netns version 1.2.3
      commit: c22fde291bb35b354e6ca44d13be181c76a0a432
      libslirp: 4.4.0
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.2
  swapFree: 8589930496
  swapTotal: 8589930496
  uptime: 390h 57m 50.00s (Approximately 16.25 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.access.redhat.com
  - registry.redhat.io
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 30
    paused: 0
    running: 29
    stopped: 1
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphRootAllocated: 482947891200
  graphRootUsed: 207428919296
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "true"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 134
  runRoot: /run/containers/storage
  transientStore: false
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 5.3.0-dev-ef905ef8d
  Built: 1724976000
  BuiltTime: Thu Aug 29 17:00:00 2024
  GitCommit: ""
  GoVersion: go1.21.11 (Red Hat 1.21.11-1.el9_4)
  Os: linux
  OsArch: linux/amd64
  Version: 5.3.0-dev-ef905ef8d

podman-5.3.0~dev-1.20240830165428154093.main.1374.ef905ef8d.el9.x86_64



### Podman in a container

No

### Privileged Or Rootless

Privileged

### Upstream Latest Release

Yes

### Additional environment details

_No response_

### Additional information

_No response_
@TrevorBenson 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
@Luap99 Luap99 transferred this issue from containers/podman Sep 3, 2024
@Luap99
Copy link
Member

Luap99 commented Sep 3, 2024

ipv6 support in the netavark dhcp proxy is not implemented so this is expected for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants