Hi,
Is it possible to add users to a currently-running cluster using
CreateUsers? My use case is that I have a cluster running for a class
that I'm teaching this semester, and each student has a login on that
cluster. I have a few users I'd like to add (recent additions who are
sitting in on the class), but I don't want to terminate the cluster
start a new one causing the existing users to lose their
configuration, etc. (in hindsight, I should have mounted an EBS volume
as scratch space, but I'll do that next time).
So far what I've tried is to create a new cluster plugin configuration:
[plugin createusers.bio599.fall2012.round2]
setup_class = starcluster.plugins.users.CreateUsers
download_keys = True
usernames = ss977, rr538, hhh34, mjg95
and run that as follows:
starcluster -c ~/.starcluster/config-nau rp
createusers.bio599.fall2012.round2 bio599.cluster
which fails with the following error message:
StarCluster - (
http://web.mit.edu/starcluster) (v. 0.9999)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster_at_mit.edu
>>> Running plugin createusers.bio599.fall2012.round2
>>> Creating 4 cluster users
1/1 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 100%
>>> Configuring passwordless ssh for 4 cluster users
!!! ERROR - Error occurred while running plugin
'createusers.bio599.fall2012.round2':
Traceback (most recent call last):
File "/Users/caporaso/.virtualenvs/starcluster-old/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/cluster.py",
line 1503, in run_plugin
func(*args)
File "/Users/caporaso/.virtualenvs/starcluster-old/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/plugins/users.py",
line 65, in run
auth_conn_key=True)
File "/Users/caporaso/.virtualenvs/starcluster-old/lib/python2.7/site-packages/StarCluster-0.9999-py2.7.egg/starcluster/node.py",
line 404, in generate_key_for_user
home_folder = user.pw_dir
AttributeError: 'NoneType' object has no attribute 'pw_dir'
Thanks for any help!
Greg
Received on Fri Oct 26 2012 - 14:08:31 EDT