[pve-devel] applied: [PATCH RFC manager] ceph: disallow ipv4 in new cluster when ipv6 is enabled

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jun 28 15:15:43 CEST 2019


On 6/26/19 1:16 PM, Dominik Csapak wrote:
> ms_bind_ipv4 is default true and osds look for both
> ipv6 and ipv4 addresses in cluster network/public network
> 
> since we only allow for one network each (which must be either
> ipv4 or ipv6) we disallow ipv4 if ipv6 is detected
> 
> this fixes not starting osds on an ipv6 enabled, newly-setup cluster
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> i am not really sure if this makes sense this way, or if we should
> let the admin make this choice somehow
> 
> either way the current state is broken when using ipv6, since
> osds will not start, with the only hint in the syslog
> 

applied, it's probably the saner default, and people with more
complicated setup can remove or change it easily. If a future
ceph version (octopus?) supports dual stack fully we can remove it
during upgrade or at least mention it in the upgrade docs.
Thanks!

>  PVE/API2/Ceph/MON.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/PVE/API2/Ceph/MON.pm b/PVE/API2/Ceph/MON.pm
> index d86df30b..6ca45e5b 100644
> --- a/PVE/API2/Ceph/MON.pm
> +++ b/PVE/API2/Ceph/MON.pm
> @@ -247,6 +247,7 @@ __PACKAGE__->register_method ({
>  			if (Net::IP::ip_is_ipv6($ip)) {
>  			    $monaddr = "[$ip]";
>  			    $cfg->{global}->{ms_bind_ipv6} = 'true';
> +			    $cfg->{global}->{ms_bind_ipv4} = 'false';
>  			}
>  			run_command("monmaptool --create --clobber --addv $monid '[v2:$monaddr:3300,v1:$monaddr:6789]' --print $monmap");
>  		    }
> 





More information about the pve-devel mailing list