all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment
@ 2024-10-28 15:58 Daniel Herzig
  2024-11-08 13:53 ` [pve-devel] applied: " Thomas Lamprecht
  2024-11-08 15:08 ` [pve-devel] " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Herzig @ 2024-10-28 15:58 UTC (permalink / raw)
  To: pve-devel; +Cc: Andres Moya

As reported here [0], statically assigned IPv6 addresses get lost
after a short while for Rocky and Almalinux 9 containers.

As pointed out by Andres, the additional option `IPV6_AUTOCONF=no`
for the corresponding network interface seems to prevent the
configured IPv6 address to be dropped.

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=5745

Reported-by: Andres Moya <andres.moya.i@gmail.com>
Signed-off-by: Daniel Herzig <d.herzig@proxmox.com>
---
 src/PVE/LXC/Setup/CentOS.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm
index 2ad1f0c..fddcffa 100644
--- a/src/PVE/LXC/Setup/CentOS.pm
+++ b/src/PVE/LXC/Setup/CentOS.pm
@@ -228,7 +228,7 @@ sub setup_network {
 	    } elsif ($d->{ip6} eq 'dhcp') {
 		$data .= "DHCPV6C=yes\n";
 	    } else {
-		$data .= "IPV6ADDR=$d->{ip6}\n";
+		$data .= "IPV6ADDR=$d->{ip6}\nIPV6_AUTOCONF=no\n";
 		if (defined($d->{gw6})) {
 		    if (!PVE::Network::is_ip_in_cidr($d->{gw6}, $d->{ip6}, 6) &&
 			!PVE::Network::is_ip_in_cidr($d->{gw6}, 'fe80::/10', 6)
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [pve-devel] applied: [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment
  2024-10-28 15:58 [pve-devel] [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment Daniel Herzig
@ 2024-11-08 13:53 ` Thomas Lamprecht
  2024-11-08 15:08 ` [pve-devel] " Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2024-11-08 13:53 UTC (permalink / raw)
  To: Proxmox VE development discussion, Daniel Herzig

Am 28/10/2024 um 16:58 schrieb Daniel Herzig:
> As reported here [0], statically assigned IPv6 addresses get lost
> after a short while for Rocky and Almalinux 9 containers.
> 
> As pointed out by Andres, the additional option `IPV6_AUTOCONF=no`
> for the corresponding network interface seems to prevent the
> configured IPv6 address to be dropped.
> 
> [0] https://bugzilla.proxmox.com/show_bug.cgi?id=5745
> 
> Reported-by: Andres Moya <andres.moya.i@gmail.com>
> Signed-off-by: Daniel Herzig <d.herzig@proxmox.com>
> ---
>  src/PVE/LXC/Setup/CentOS.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment
  2024-10-28 15:58 [pve-devel] [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment Daniel Herzig
  2024-11-08 13:53 ` [pve-devel] applied: " Thomas Lamprecht
@ 2024-11-08 15:08 ` Thomas Lamprecht
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2024-11-08 15:08 UTC (permalink / raw)
  To: Proxmox VE development discussion, Daniel Herzig; +Cc: Andres Moya

Am 28/10/2024 um 16:58 schrieb Daniel Herzig:
> As reported here [0], statically assigned IPv6 addresses get lost
> after a short while for Rocky and Almalinux 9 containers.
> 
> As pointed out by Andres, the additional option `IPV6_AUTOCONF=no`
> for the corresponding network interface seems to prevent the
> configured IPv6 address to be dropped.
> 
> [0] https://bugzilla.proxmox.com/show_bug.cgi?id=5745
> 
> Reported-by: Andres Moya <andres.moya.i@gmail.com>
> Signed-off-by: Daniel Herzig <d.herzig@proxmox.com>
> ---
>  src/PVE/LXC/Setup/CentOS.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm
> index 2ad1f0c..fddcffa 100644
> --- a/src/PVE/LXC/Setup/CentOS.pm
> +++ b/src/PVE/LXC/Setup/CentOS.pm
> @@ -228,7 +228,7 @@ sub setup_network {
>  	    } elsif ($d->{ip6} eq 'dhcp') {
>  		$data .= "DHCPV6C=yes\n";
>  	    } else {
> -		$data .= "IPV6ADDR=$d->{ip6}\n";
> +		$data .= "IPV6ADDR=$d->{ip6}\nIPV6_AUTOCONF=no\n";
>  		if (defined($d->{gw6})) {
>  		    if (!PVE::Network::is_ip_in_cidr($d->{gw6}, $d->{ip6}, 6) &&
>  			!PVE::Network::is_ip_in_cidr($d->{gw6}, 'fe80::/10', 6)

FYI, you missed updating the tests (and I checked to late), so I fixed that up
in a follow-up commit [0], please do a full build+deploy cycle before sending
patches to catch such things.

[0]: https://git.proxmox.com/?p=pve-container.git;a=commitdiff;h=1df0a49b5b30c0a7c3d50f435fabbb37c0c92b8d


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-08 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-28 15:58 [pve-devel] [PATCH container] fix #5742: lxc: setup: centos template keep static ipv6 assignment Daniel Herzig
2024-11-08 13:53 ` [pve-devel] applied: " Thomas Lamprecht
2024-11-08 15:08 ` [pve-devel] " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal