#NEWLINE# def testSetSecondaryIpNoLock( self ) : #NEWLINE# #INDENT# self . instance = self . cfg . AddNewInstance ( primary_node = self . node , secondary_node = self . snode , disk_template = 'file' ) #NEWLINE# op = opcodes . OpNodeSetParams ( node_name = op . node . name , secondary_ip = '254.254.254.254' ) #NEWLINE# self . ExecOpCode ( op ) #NEWLINE# self . assertEqual ( '254.254.254.254' , self . node . secondary_ip ) #NEWLINE# self . assertEqual ( sorted ( self . wconfd . all_locks . items ( ) ) , [ ( 'cluster/BGL' , 'shared' ) , ( 'node-res/00000000-dead-beef-dead-beefdeadbeef' , 'exclusive' ) , ( 'node/00000000-dead-beef-dead-beefdeadbeef' , 'exclusive' ) ] )