Skip to content

cm cluster nodes CLUSTER failed #270

Description

@tonythomascn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions