def test_get_all_storage_pools(self): api = VolumesApi() volumes_api = None try: volumes_api = api.get_all_storage_pools(system_id="test") # For the DELETE calls, there's no reponse returned and we want to set that as a valid sdk call. if volumes_api is None: volumes_api = 1 except (ApiException, IOError) as exp: # The API call went through but got a HTTP errorcode, which means the SDK works volumes_api = 1 self.assertNotEqual(volumes_api, None)
for ss in ssr: print "\n##################################\n" \ "Storage System wwn - " + ss.wwn + ", Status : " + ss.status # Get all volumes info for each storage system volume_api = VolumesApi(api_client=api_client) volumes = volume_api.get_all_volumes(system_id=ss.id) for vol in volumes: print "\n##################################\n" \ "Volume " + vol.wwn + ", info : \n" pprint(vol) # Get all volume group info for each storage system vgs = volume_api.get_all_storage_pools(system_id=ss.id) for vg in vgs: print "\n##################################\n" \ "Volume Group info for " + vg.world_wide_name pprint(vg) # Get all drives info for each storage system hardware_api = HardwareApi(api_client=api_client) drives = hardware_api.get_all_drives(system_id=ss.id) for drive in drives: print "\n##################################\n" \ "Drive data for driveWwn: " + drive.world_wide_name pprint(drive) # Get drive cabling info for each storage system cables = hardware_api.get_drive_connection_info(system_id=ss.id)