#NEWLINE# def _print_capabilities_info( self ) : #NEWLINE# #INDENT# host_list = self . _get_service_states ( ) . iteritems ( ) #NEWLINE# for ( host , host_dict ) in host_list : #NEWLINE# #INDENT# for ( service_name , service_dict ) in host_dict . iteritems ( ) : #NEWLINE# #INDENT# if ( service_name != 'volume' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# LOG . info ( _ ( 'Host %s:' ) , host ) #NEWLINE# gos_info = service_dict . get ( 'drive_qos_info' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# for ( qosgrp , qos_values ) in gos_info . iteritems ( ) : #NEWLINE# #INDENT# total = qos_values [ 'TotalDrives' ] #NEWLINE# used = qos_values [ 'FullDrive' ] [ 'NumOccupiedDrives' ] #NEWLINE# free = qos_values [ 'FullDrive' ] [ 'NumFreeDrives' ] #NEWLINE# avail = BYTES_TO_GB ( qos_values [ 'AvailableCapacity' ] ) #NEWLINE# LOG . info ( _ ( '\tDrive %(qosgrp)-25s: total %(total)2s, used %(used)2s, free %(free)2s. Available capacity %(avail)-5s' ) , locals ( ) )