#NEWLINE# def test_only_controllers_changed_to_all_change( self ) : #NEWLINE# #INDENT# self . env . create_cluster ( api = True ) #NEWLINE# cluster = self . env . clusters [ 0 ] #NEWLINE# ( node1 , macs1 ) = self . create_node_with_preset_macs ( cluster , [ 'controller' ] ) #NEWLINE# self . check_network_assigments ( node1 , { #NEWLINE# #INDENT# macs1 [ 0 ] : self . default_networks , #NEWLINE# macs1 [ 1 ] : self . public_networks , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( node2 , macs2 ) = self . create_node_with_preset_macs ( cluster , roles = [ 'cinder' ] ) #NEWLINE# self . check_network_assigments ( node2 , { #NEWLINE# #INDENT# macs2 [ 0 ] : self . default_networks , #NEWLINE# macs2 [ 1 ] : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . set_assign_public_to_all_nodes ( cluster , True ) #NEWLINE# self . check_network_assigments ( node1 , { #NEWLINE# #INDENT# macs1 [ 0 ] : self . default_networks , #NEWLINE# macs1 [ 1 ] : self . public_networks , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . check_network_assigments ( node2 , { #NEWLINE# #INDENT# macs2 [ 0 ] : self . default_networks , #NEWLINE# macs2 [ 1 ] : self . public_networks , #NEWLINE# #UNINDENT# } ) #NEWLINE# objects . Cluster . prepare_for_deployment ( cluster ) #NEWLINE# self . check_node_public_ip_assigment ( cluster , node1 , '172.16.0.2/24' ) #NEWLINE# self . check_node_public_ip_assigment ( cluster , node2 , '172.16.0.3/24' )