[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1028313: bullseye-pu: package isc-dhcp/4.4.1-2.3+deb11u2



Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: isc-dhcp@packages.debian.org
Control: affects -1 + src:isc-dhcp

[ Reason ]
Under not completely understood conditions, dhclient completely removes
IPv6 addresses from use and is unable to restore them.  This problem was
fixed in the separate script upstream maintains some years ago.

[ Impact ]
Cloud environments rely heavily on DHCPv6, this is also where this
problem showed up in the first place.  If not via pu, this problem can
be fixed by a change to the cloud images.  But this will make any
further fix via packages impossible for the remainder of the release
cycle.

[ Tests ]
Images including the minimal change have been tested manually.  No
automatic tests are possible as the conditions are not completely
understood.

[ Changes ]
Included is a minimal backport of the lifetime setup code.


commit b13dea6dba9bd095840f8d3e12370f140ade8201
Author: Bastian Blank <waldi@debian.org>
Date:   Mon Jan 9 09:15:10 2023 +0000

    Backport missing IPv6 address lifetime handling
    
    See merge request debian/isc-dhcp!7

diff --git a/debian/changelog b/debian/changelog
index ab4ac22..9198b1c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+isc-dhcp (4.4.1-2.3+deb11u2) UNRELEASED; urgency=medium
+
+  * Backport missing IPv6 address lifetime handling. (closes: #1022969)
+
+ -- Bastian Blank <waldi@debian.org>  Mon, 09 Jan 2023 09:27:49 +0100
+
 isc-dhcp (4.4.1-2.3+deb11u1) bullseye-security; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff --git a/debian/dhclient-script.linux b/debian/dhclient-script.linux
index f9b734a..017745d 100644
--- a/debian/dhclient-script.linux
+++ b/debian/dhclient-script.linux
@@ -395,8 +395,9 @@ case "$reason" in
     BOUND6|RENEW6|REBIND6)
         if [ "${new_ip6_address}" ]; then
             # set leased IP
-            ip -6 addr add ${new_ip6_address} \
-                dev ${interface} scope global
+            ip -6 addr replace ${new_ip6_address} \
+                dev ${interface} scope global valid_lft ${new_max_life} \
+                preferred_lft ${new_preferred_life}
         fi
 
         # update /etc/resolv.conf


Reply to: