element of dhcp-all-interface does not support IPv6

Bug #1754219 reported by zhengyong
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Harald Jensås

Bug Description

dhcp-all-interface can only get one IPv4 address, does not support to get one IPv6 address.

zhengyong (zhengy23)
Changed in diskimage-builder:
assignee: nobody → zhengyong (zhengy23)
Revision history for this message
Harald Jensås (harald-jensas) wrote :

@zhengyong - did you ever get around to write any patches for this? (If not, I'll pick this upp and fix this.)

Revision history for this message
zhengyong (zhengy23) wrote :

hello harald-jensas, I have not write any patches, you pick this up

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/692110

Changed in diskimage-builder:
assignee: zhengyong (zhengy23) → Harald Jensås (harald-jensas)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.opendev.org/692110
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=f94508d537432817619932074a5f98ea08d93055
Submitter: Zuul
Branch: master

commit f94508d537432817619932074a5f98ea08d93055
Author: Harald Jensås <email address hidden>
Date: Wed Oct 30 12:27:30 2019 +0100

    Add IPv6 support in dhcp-all-interfaces

    When the rdisc6 utility is available probe for router
    advertisement. configure eni and rhel-netscripts interfaces
    to do IPv6 address configuration according to the flags
    in the RA recived from the router.

    The systemd service file timeout is DIB_DHCP_TIMEOUT * 2,
    so that DHCPv4 can timout, and dhcpv6 run before the service
    times out.

    Retries are commented in dhclient.conf, without it we end up
    trying DIB_DHCP_TIMEOUT * 60 before the client move on to
    IPv6.

    WHEN:
      Stateful address conf. : No
      Stateful other conf. : No
    THEN:
      Do not run dhclient at all, autoconfiguration via
      SLAAC only.

    WHEN:
      Stateful address conf. : No
      Stateful other conf. : Yes
    THEN:
      Run "dhclient -6 -S", The ``-S`` option makes the
      dhcp client not request an address, only other
      options such as DNS servers and NTP servers from
      DHCPv6 server.

    WHEN:
      Stateful address conf. : Yes
      Stateful other conf. : Yes
    THEN:
      The dhcp client should request an address _and_ other
      options such as DNS servers and NTP servers from
      DHCPv6 server.

    NOTE: No IPv6 support added for suse-netscripts

    Closes-Bug: 1754219
    Change-Id: Icdc79875c33f894ab7eaec8afdfb33a731efff99

Changed in diskimage-builder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to diskimage-builder (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/696532

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to diskimage-builder (master)

Reviewed: https://review.opendev.org/696532
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=7948fee7e25707904f81ccc8854a1f98265c8f0b
Submitter: Zuul
Branch: master

commit 7948fee7e25707904f81ccc8854a1f98265c8f0b
Author: Harald Jensås <email address hidden>
Date: Thu Nov 28 13:20:16 2019 +0100

    Install ndisc6 package in element script

    The ndisc6 package is not yet available in EPEL 8.
    See: https://bugzilla.redhat.com/show_bug.cgi?id=1779134

    Until the package is available set the pkg-map to "" for
    the ndisc6 package when distro is redhat and install the
    package using || true in the element script instead so
    that CentOS 8 build's do not fail because of the missing
    package.

    Once the package is in EPEL 8 this change can be reverted.

    Related-Bug: #1754219
    Change-Id: Icd4bad8852ce5ba40fb0e7b0d335191efbe88c67

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.