<div dir="ltr"><div><div><div>Let&#39;s say I have defined several CreateUsers plugins as follows:<br><br>[plugin createAuser]<br>setup_class = starcluster.plugins.users.CreateUsers<br>usernames = user_a<br><br>[plugin createBuser]<br>setup_class = starcluster.plugins.users.CreateUsers<br>usernames = user_b<br><br>[plugin createCuser]<br>setup_class = starcluster.plugins.users.CreateUsers<br>usernames = user_c<br><br></div>And I define a cluster to run at creation time the createAuser pluging, but at some later date I would like to add user_b to that same cluster.<br><br></div>I should be able to run the command &quot;starcluster runplugin createBuser &lt;clustername&gt;&quot; and get user_b propagated into that cluster should I not?<br><br></div>If so, I am not getting the desired behavior. <br><br> In fact this mechanism for adding a user evalente after cluster creation outputs the following:<br><div><div><div><div><br>$ starcluster runplugin create_evalente_user i04dft<br>StarCluster - (<a href="http://star.mit.edu/cluster">http://star.mit.edu/cluster</a>) (v. 0.95.6)<br>Software Tools for Academics and Researchers (STAR)<br>Please submit bug reports to <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br><br>&gt;&gt;&gt; Running plugin create_evalente_user<br>&gt;&gt;&gt; Creating 1 cluster users<br>4/4 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%  <br>&gt;&gt;&gt; Configuring passwordless ssh for 1 cluster users<br>!!! ERROR - Error occured while running plugin &#39;create_evalente_user&#39;:<br>!!! ERROR - Unhandled exception occured<br>Traceback (most recent call last):<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/cli.py&quot;, line 274, in main<br>    sc.execute(args)<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/commands/runplugin.py&quot;, line 40, in execute<br>    self.cm.run_plugin(plugin_name, cluster_tag)<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/cluster.py&quot;, line 380, in run_plugin<br>    cl.run_plugin(plug, name=plugin_name)<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/cluster.py&quot;, line 1722, in run_plugin<br>    func(*args)<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/plugins/users.py&quot;, line 82, in run<br>    auth_conn_key=True)<br>  File &quot;/usr/lib/python2.7/site-packages/StarCluster-0.95.6-py2.7.egg/starcluster/node.py&quot;, line 500, in generate_key_for_user<br>    home_folder = user.pw_dir<br>AttributeError: &#39;NoneType&#39; object has no attribute &#39;pw_dir&#39;<br><br>!!! ERROR - Oops! Looks like you&#39;ve found a bug in StarCluster<br>!!! ERROR - Crash report written to: /home/evalente/.starcluster/logs/crash-report-24900.txt<br>!!! ERROR - Please remove any sensitive data from the crash report<br>!!! ERROR - and submit it to <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br><br>**************************************************************<br><br></div><div>I tracked down users.py and found that the self._usernames contains evalente, but newusers gets a list of existing users back from the self._get_newusers_batch_file<br></div><div> call.<br><br></div><div>Has anyone else used the plugin in this manner successfully?  What other ways have people used to achieve user creation post cluster creation?<br><br></div><div>Thanks,<br></div><div>Eduardo<br></div></div></div></div></div>