-
Notifications
You must be signed in to change notification settings - Fork 12
Description
If the cluster doesn't exist or be activated, it will trigger this error.
(ENV) leonard@i524b:~/face-detection/pedestrian-and-face-detection$ cm cluster nodes cluster-001
/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/plugins/ClusterCommand2.py(224)nodes()
-> name = cluster or Default.cluster
(Pdb) ERROR: executing command 'cluster nodes cluster-001'
======================================================================
local variable 'name' referenced before assignment
======================================================================
Traceback (most recent call last):
File "/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/cm.py", line 876, in main
stop = cmd.onecmd(command)
File "/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/cm.py", line 140, in onecmd
return func(arg)
File "/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/command.py", line 60, in new
func(instance, args, arguments)
File "/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/plugins/ClusterCommand2.py", line 380, in do_cluster
nodes = cmd.nodes(cluster=arguments['CLUSTER'])
File "/home/leonard/ENV/local/lib/python2.7/site-packages/cloudmesh_client/shell/plugins/ClusterCommand2.py", line 228, in nodes
Console.error('Cluster {} is active. Did you forget to allocate?'.format(name))
UnboundLocalError: local variable 'name' referenced before assignment