Re: [Starcluster] Starcluster git version: problem to start a cluster
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Thomas,
This was a stupid string formatting bug. I just fixed this in github.
Could you pull the latest code and try starting the smallcluster again?
BTW, if you're on irc.freenode.net I'll be on #starcluster most of the
day. Feel free to drop by and chat.
~Justin
On 04/15/2010 05:57 AM, Thomas Deselaers wrote:
> hi,
>
> I just tried to start a cluster using the git version of starcluster.
>
> First I created a suitable ~/.starcluster/config file and then I start
> starcluster start smallcluster test
>
> Then I get the following output and don't quite know where to start
> searching for problems.
>
>
> Cheers,
> thomas
>
>
> The output of that is the following:
> StarCluster - (http://web.mit.edu/starcluster)
> Software Tools for Academics and Researchers (STAR)
> Please submit bug reports to starcluster_at_mit.edu
>
>>>> Validating cluster settings...
>>>> Cluster settings are valid
>>>> Starting cluster...
>>>> Launching a 2-node cluster...
>>>> Launching master node...
>>>> Master AMI: ami-a19e71c8
>>>> Creating security group _at_sc-masters...
>>>> Creating security group _at_sc-test...
> Reservation:r-b64c45de
>>>> Launching worker nodes...
>>>> Node AMI: ami-a19e71c8
> Reservation:r-8a4c45e2
>>>> Waiting for cluster to start...
>>>> The master node is ec2-184-73-16-29.compute-1.amazonaws.com
>>>> Attaching volume vol-01b91368 to master node...
> cluster.py:346 - ERROR - Volume vol-01b91368 not available...please
> check and try again
>>>> Attaching volume vol-0b399362 to master node...
> cluster.py:346 - ERROR - Volume vol-0b399362 not available...please
> check and try again
>>>> Setting up the cluster...
>>>> Mounting EBS volume vol-01b91368 on /home...
> ssh.py:65 - WARNING - specified key does not end in either rsa or dsa,
> trying both
>>>> Using private key /home/desthoma/work/text/aws/id_ECKeypair-us-east (rsa)
>>>> Mounting EBS volume vol-0b399362 on /myopt...
>>>> Creating cluster user: sgeadmin
> ssh.py:65 - WARNING - specified key does not end in either rsa or dsa,
> trying both
>>>> Using private key /home/desthoma/work/text/aws/id_ECKeypair-us-east (rsa)
>>>> Configuring scratch space for user: sgeadmin
>>>> Configuring /etc/hosts on each node
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call last)
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/EGG-INFO/scripts/starcluster
> in <module>()
> 3 __requires__ = 'StarCluster==0.9999'
> 4 import pkg_resources
> ----> 5 pkg_resources.run_script('StarCluster==0.9999', 'starcluster')
> 6
> 7
>
> /home/desthoma/work/lib/python/setuptools-0.6c11-py2.5.egg/pkg_resources.py
> in run_script(self, requires, script_name)
> 487 ns.clear()
> 488 ns['__name__'] = name
> --> 489 self.require(requires)[0].run_script(script_name, ns)
> 490
> 491
>
> /home/desthoma/work/lib/python/setuptools-0.6c11-py2.5.egg/pkg_resources.py
> in run_script(self, script_name, namespace)
> 1212 )
> 1213 script_code = compile(script_text,script_filename,'exec')
> -> 1214 exec script_code in namespace, namespace
> 1215
> 1216 def _has(self, path):
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/EGG-INFO/scripts/starcluster
> in <module>()
> 4 import pkg_resources
> 5 pkg_resources.run_script('StarCluster==0.9999', 'starcluster')
> ----> 6
> 7
> 8
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/cli.pyc
> in main()
> 750 sys.exit(0)
> 751 try:
> --> 752 sc.execute(args)
> 753 except exception.BaseException,e:
> 754 log.error(e.msg)
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/cli.pyc
> in execute(self, args)
> 161 log.info('Cluster settings are valid')
> 162 if not self.opts.validate_only:
> --> 163 scluster.start(create=not self.opts.no_create)
> 164 if self.opts.login_master:
> 165 cluster.ssh_to_master(tag, self.cfg)
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/utils.pyc
> in wrapper(*arg, **kargs)
> 22 """Raw timing function """
> 23 time1 = time.time()
> ---> 24 res = func(*arg, **kargs)
> 25 time2 = time.time()
> 26 log.info('%s took %0.3f mins' % (func.func_name,
> (time2-time1)/60.0))
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/cluster.pyc
> in start(self, create)
> 395 self.nodes, self.master_node,
> 396 self.cluster_user, self.cluster_shell,
> --> 397 self.volumes
> 398 )
> 399 for plugin in self._plugins:
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/clustersetup.pyc
> in run(self, nodes, master, user, user_shell, volumes)
> 275 self._setup_cluster_user()
> 276 self._setup_scratch()
> --> 277 self._setup_etc_hosts()
> 278 self._setup_nfs()
> 279 self._setup_passwordless_ssh()
>
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/clustersetup.pyc
> in _setup_etc_hosts(self)
> 64 print >> host_file, "127.0.0.1
> localhost.localdomain localhost"
> 65 for node in self._nodes:
> ---> 66 print >> host_file, node.get_hosts_entry()
> 67 host_file.close()
> 68
> /home/desthoma/work/lib/python/StarCluster-0.9999-py2.5.egg/starcluster/node.pyc
> in get_hosts_entry(self)
> 152 def get_hosts_entry(self):
> 153 """ Returns /etc/hosts entry for this node """
> --> 154 etc_hosts_line = "%s %s" % self.private_ip_address, self.alias
> 155 return etc_hosts_line
> 156
>
> TypeError: not enough arguments for format string
>
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAkvHCBUACgkQ4llAkMfDcrke9ACeNzWczoBrvRqn7LfYQwNwgoFU
3SYAnj8fO729c42d6l9eJnwlGEXKEjqT
=QrGB
-----END PGP SIGNATURE-----
Received on Thu Apr 15 2010 - 08:35:35 EDT
This archive was generated by
hypermail 2.3.0.