Bug #106485 ndb management does not start when ipv6 disabled
Submitted: 17 Feb 2022 9:13 Modified: 11 Jul 2023 23:54
Reporter: Manu George Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: NDB API Severity:S2 (Serious)
Version:8.0.28 OS:Linux
Assigned to: CPU Architecture:Any

[17 Feb 2022 9:13] Manu George
Description:
ndb management node failed to start when ipv6 disabled using kernel parameter.

How to repeat:
add  ipv6.disable=1 in GRUB_CMDLINE_LINUX option in grub.
update grup and reboot server.
Start ndb management node by ndb_mgmd -f /var/lib/mysql-cluster/config.ini

Get the following error

MySQL Cluster Management Server mysql-8.0.28 ndb-8.0.28
2022-02-17 08:39:16 [MgmtSrvr] ERROR    -- At least one hostname in the configuration does not match a local interface. Failed to bind on xxx.xxx.xxx.xxx
2022-02-17 08:39:16 [MgmtSrvr] ERROR    -- The hostname this node should have according to the configuration does not match a local interface. Attempt to bind '192.168.0.71' failed with error: 97 'Address family not supported by protocol'
[17 Feb 2022 14:21] MySQL Verification Team
Hi,

Thanks for the report. I will verify this behavior but I'm not sure we can do much about it but let us see what the ndbcluster team will say. Use --bind-address to only bind to ipv4 for workaround.

thanks
[17 Feb 2022 15:18] Manu George
I tried --bind-address command line option. But it failed with same error.
[16 Dec 2022 23:43] Shawn Heisey
I'm having this problem on version 8.0.31-1ubuntu22.04.  ipv6 is disabled on all my servers.
[11 Jul 2023 23:54] Jon Stephens
Documented fix as follows in the NDB 8.0.34 and 8.1.0 changelogs:

    NDB did not start if IPv6 support was not enabled on the host,
    even when no nodes in the cluster used any IPv6 addresses.

Closed.