I just joined the list and am responding to a post back in May 2010 with the same subject. I wrote this python script as recommended by Justin:<br><br><pre>def main():<br> cfg = starcluster.config.StarClusterConfig(); cfg.load()<br>
sc = cfg.get_cluster_template('smallcluster', 'mynewcluster')<br> if sc.is_valid():<br> sc.start(create=True)<br><br>if __name__ == "__main__":<br> main()<br><br><br></pre>The instances were created, but the only output I get is this instead of the usual status messages about the master node and installing SGE etc. <br>
<br>Reservation:r-74f42b19<br>2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100% <br>2/2 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100% <br>
<br>My guess is that starcluster.logger needs to be imported in some way, but I haven't figured out how. I'm new to starcluster and python, so I may be missing something obvious. I hope that using starcluster in this way is not considered a hack, and is somewhat officially supported. This gives me convenient access to cluster values, which I don't get by using the command-line tools. <br>
<br>thanks,<br>jeff<br><br>