#NEWLINE# @ utils . arg ( 'id' , metavar = '<NODE>' , nargs = '+' , help = _ ( 'ID of node(s) to check.' ) ) #NEWLINE# def do_node_check( service , args ) : #NEWLINE# #INDENT# 'Check the node(s).' #NEWLINE# show_deprecated ( 'senlin node-check' , 'openstack cluster node check' ) #NEWLINE# failure_count = 0 #NEWLINE# for nid in args . id : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# service . check_node ( nid ) #NEWLINE# #UNINDENT# except exc . HTTPNotFound : #NEWLINE# #INDENT# failure_count += 1 #NEWLINE# print ( ( 'Node id "%s" not found' % nid ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( failure_count > 0 ) : #NEWLINE# #INDENT# msg = _ ( 'Failed to check some of the specified nodes.' ) #NEWLINE# raise exc . CommandError ( msg ) #NEWLINE# #UNINDENT# print ( 'Request accepted' )