StarCluster - Mailing List Archive

Adding users after cluster creation (bug or misunderstanding)?

From: Eduardo Gurgel Valente <no email>
Date: Mon, 9 Mar 2015 10:41:37 -0400

Let's say I have defined several CreateUsers plugins as follows:

[plugin createAuser]
setup_class = starcluster.plugins.users.CreateUsers
usernames = user_a

[plugin createBuser]
setup_class = starcluster.plugins.users.CreateUsers
usernames = user_b

[plugin createCuser]
setup_class = starcluster.plugins.users.CreateUsers
usernames = user_c

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.

I should be able to run the command "starcluster runplugin createBuser
<clustername>" and get user_b propagated into that cluster should I not?

If so, I am not getting the desired behavior.

 In fact this mechanism for adding a user evalente after cluster creation
outputs the following:

$ starcluster runplugin create_evalente_user i04dft
StarCluster - ( (v. 0.95.6)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to

>>> Running plugin create_evalente_user
>>> Creating 1 cluster users
4/4 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
>>> Configuring passwordless ssh for 1 cluster users
!!! ERROR - Error occured while running plugin 'create_evalente_user':
!!! ERROR - Unhandled exception occured
Traceback (most recent call last):
line 274, in main
line 40, in execute, cluster_tag)
line 380, in run_plugin
    cl.run_plugin(plug, name=plugin_name)
line 1722, in run_plugin
line 82, in run
line 500, in generate_key_for_user
    home_folder = user.pw_dir
AttributeError: 'NoneType' object has no attribute 'pw_dir'

!!! ERROR - Oops! Looks like you've found a bug in StarCluster
!!! ERROR - Crash report written to:
!!! ERROR - Please remove any sensitive data from the crash report
!!! ERROR - and submit it to


I tracked down and found that the self._usernames contains
evalente, but newusers gets a list of existing users back from the

Has anyone else used the plugin in this manner successfully? What other
ways have people used to achieve user creation post cluster creation?

Received on Mon Mar 09 2015 - 10:41:44 EDT
This archive was generated by hypermail 2.3.0.


Sort all by: