#NEWLINE# def test_allocates_all_free_space_for_os_for_controller_role( self ) : #NEWLINE# #INDENT# node = self . create_node ( 'controller' ) #NEWLINE# disks = only_disks ( VolumeManager ( node ) . volumes ) #NEWLINE# disks_size_sum = sum ( [ disk [ 'size' ] for disk in disks ] ) #NEWLINE# os_sum_size = self . os_size ( disks ) #NEWLINE# mysql_sum_size = self . mysql_size ( disks ) #NEWLINE# glance_sum_size = self . glance_size ( disks ) #NEWLINE# horizon_sum_size = self . horizon_size ( disks ) #NEWLINE# logs_sum_size = self . logs_size ( disk ) #NEWLINE# reserved_size = self . reserved_size ( disks ) #NEWLINE# self . assertEqual ( ( disks_size_sum - reserved_size ) , ( ( ( ( os_sum_size + glance_sum_size ) + mysql_sum_size ) + logs_sum_size ) + horizon_sum_size ) ) #NEWLINE# self . logical_volume_sizes_should_equal_all_phisical_volumes ( VolumeManagerExtension . get_node_volumes ( node ) ) #NEWLINE# self . check_disk_size_equal_sum_of_all_volumes ( VolumeManagerExtension . get_node_volumes ( node ) )