Bug #49125 Starting second management node failed with error message
Submitted: 26 Nov 2009 7:55
Reporter: Oli Sennhauser Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Linux
Assigned to: CPU Architecture:Any
Tags: 7.0.9b, error, failed, management, node, starting
Triage: Triaged: D3 (Medium) / R6 (Needs Assessment) / E6 (Needs Assessment)

[26 Nov 2009 7:55] Oli Sennhauser
Description:
I have a 2 node cluster with 2 management nodes started.
Then I stop a mgmd and try to start it again and get the following errors:

ndb_mgmd --initial --configdir=/home/mysql/cluster/7.0.9/ --ndb-nodeid=3
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- NDB Cluster Management Server. mysql-5.1.39 ndb-7.0.9b
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- Trying to get configuration from other mgmd(s) using 'nodeid=3,localhost:1186'...
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- Connected to 'localhost:1186'...
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 10, n2: 11, port: 4294908992
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 12, n2: 10, port: 4294932001
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 12, n2: 11, port: 4294920127
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 13, n2: 10, port: 4294924219
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 13, n2: 11, port: 4294921158
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 14, n2: 10, port: 4294921015
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 14, n2: 11, port: 4294927259
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 15, n2: 10, port: 4294928281
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 15, n2: 11, port: 4294908381
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 16, n2: 10, port: 4294920999
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 16, n2: 11, port: 4294917419
ConfigManager.cpp:622: require('ok') failed
Aborted

How to repeat:
ndb_mgmd -f config.ini --configdir=/home/mysql/cluster/7.0.9/ --ndb-nodeid=2
2009-11-26 08:25:10 [MgmtSrvr] INFO     -- NDB Cluster Management Server. mysql-5.1.39 ndb-7.0.9b
2009-11-26 08:25:10 [MgmtSrvr] INFO     -- Reading cluster configuration from 'config.ini'

ndb_mgmd -f config.ini --configdir=/home/mysql/cluster/7.0.9/ --ndb-nodeid=3
2009-11-26 08:25:49 [MgmtSrvr] INFO     -- NDB Cluster Management Server. mysql-5.1.39 ndb-7.0.9b
2009-11-26 08:25:49 [MgmtSrvr] INFO     -- Reading cluster configuration from 'config.ini'

ndbd
2009-11-26 08:25:57 [ndbd] INFO     -- Configuration fetched from 'localhost:1186', generation: 1

ndbd
2009-11-26 08:26:00 [ndbd] INFO     -- Configuration fetched from 'localhost:1186', generation: 1

ndb_mgm> 3 stop
Node 3 has shutdown.

ndb_mgmd --initial --configdir=/home/mysql/cluster/7.0.9/ --ndb-nodeid=3
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- NDB Cluster Management Server. mysql-5.1.39 ndb-7.0.9b
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- Trying to get configuration from other mgmd(s) using 'nodeid=3,localhost:1186'...
2009-11-26 07:54:45 [MgmtSrvr] INFO     -- Connected to 'localhost:1186'...
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 10, n2: 11, port: 4294908992
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 12, n2: 10, port: 4294932001
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 12, n2: 11, port: 4294920127
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 13, n2: 10, port: 4294924219
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 13, n2: 11, port: 4294921158
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 14, n2: 10, port: 4294921015
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 14, n2: 11, port: 4294927259
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 15, n2: 10, port: 4294928281
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 15, n2: 11, port: 4294908381
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 16, n2: 10, port: 4294920999
2009-11-26 07:54:45 [MgmtSrvr] ERROR    -- INTERNAL ERROR: Found dynamic ports with value in config, n1: 16, n2: 11, port: 4294917419
ConfigManager.cpp:622: require('ok') failed
Aborted

Suggested fix:
no idea
[26 Nov 2009 7:55] Oli Sennhauser
config.ini

Attachment: config.ini (application/octet-stream, text), 668 bytes.