Bug #50224 mysql-cluster-manager crashed when defining hosts
Submitted: 11 Jan 2010 10:23 Modified: 12 Jan 2010 12:18
Reporter: Johan Andersson Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Cluster Manager: Agent Severity:S3 (Non-critical)
Version:mysql-cluster-manager-0.7.0r1022-linux-r OS:Any
Assigned to: CPU Architecture:Any
Tags: create cluster, mcm

[11 Jan 2010 10:23] Johan Andersson
Description:
I am using MySQL Cluster 7.0.9.
It has been installed on hosts:
a,b,c,d
mysql-cluster-manager is also running at the hosts listed above.

create site --hosts=a,b,c,d mysite;
add package  --basedir=/usr/local/mysql/ mypackage;

then when i do:

mysql> create cluster --package=mypackage --processhosts=ndb_mgmd@a,ndb_mgmd@b,ndbd@c,ndbd@d,mysqld@a,mysqld@b  mycluster;
No connection. Trying to reconnect...
Connection id:    1
Current database: *** NONE ***

How to repeat:
Run the command above

11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-store.c:931]: Found existing match : tmp_name=`mysite' 
11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-store.c:287]: Looking up cluster name mycluster
11/01 11:15:26.031: (debug) [T0xe96010 chass]: opening repository directory
11/01 11:15:26.031: (debug) [T0xe96010 chass]: Nonmatching name : tmp_name=`mypackage' 
11/01 11:15:26.031: (debug) [T0xe96010 chass]: Nonmatching name : tmp_name=`mysite' 
11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-commands.c:413]: packagename=`mypackage' 
11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-commands.c:417]: processhosts=`ndb_mgmd@a,ndb_mgmd@b,ndbd@c,ndbd@d,mysqld@a,mysqld@b' 
11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-commands.c:424]: prochost len = 2
11/01 11:15:26.031: (debug) last message repeated 5 times
11/01 11:15:26.031: (debug) [T0xe96010 chass@manager-store.c:276]: Looking up site package mypackage
11/01 11:15:26.031: (debug) [T0xe96010 chass]: opening repository directory
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:931]: Found existing match : tmp_name=`mypackage' 
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:752]: starting getsitepackagefromstore
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:754]: size of manager_sitepackage 56
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:644]: Aquiring store scan mutex
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:646]: Got store scan mutex
11/01 11:15:26.032: (debug) [T0xe96010 chass]: opening repository directory
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:679]: returning filename retfilename=`manager/rep/sitepackage.mypackage.13' 
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:681]: Releasing store scan mutex
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:683]: Released store scan mutex
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:756]: open sitepacakge configfile: manager/rep/sitepackage.mypackage.13
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:771]: creating xdrstdio for DECODE
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-store.c:777]:  From store packagename mypackage
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:465]: manager-commands.c:465 : Using registered package mypackage
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:473]: Creating cluster config object
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:482]: currentprochost = ndb_mgmd@ a
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:495]: proc@hostname = ndb_mgmd @ a
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:503]: creating process prochost[0]=`ndb_mgmd' 
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:2545]: Adding procname=`ndb_mgmd' internalid=0x1(1) 
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-api-util.c:929]: manager_buffer_encode_sitepackage()
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-api-util.c:933]: xdr_sizeof(pkg):212
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-api-util.c:936]: Encoding package
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-api-util.c:953]: manager_buffer_decode_sitepackage() decoding size = 212
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-commands.c:2570]: Initial settings for config 'cluster'
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-xml.c:1243]: Cache config def for version '5.1.37-ndb-7.0.8'
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-api-util.c:217]: hostaddress=`a' is on my host: yes
11/01 11:15:26.032: (debug) [T0xe96010 chass@manager-xml.c:1115]: Initializing xml config definitions from file /userdata/root/mysql-cluster-manager-0.7.0r1022-linux-rhel5-x86-64bit/var/mysql_5.1.30.xml
11/01 11:15:26.036: (debug) [T0xe96010 chass@manager-xml.c:1133]: Initializing xml config definitions from executable /usr/local/mysql/mysql//bin/ndb_config --xml --configinfo | egrep -v __ndbmt_classic
11/01 11:15:26.223: ((error)) Parsing XML config definition failed: attribute 'initial' invalid for element 'param'

<CRASH>

Suggested fix:
don' know
[11 Jan 2010 10:41] Johan Andersson
I will try with the latest version first and see if the same problem is there too.
[11 Jan 2010 12:15] Johan Andersson
I tested with the new version. It works so this is _not_ a bug.