Пример #1
0
 def test_get_rg_list(self):
     rgs = VNXRaidGroup.get(t_cli())
     assert_that(len(rgs), equal_to(7))
     for rg in rgs:
         if rg.raid_group_id == 0:
             verify_raid0(rg)
             break
     else:
         self.fail('RAID group 0 not found.')
Пример #2
0
 def _update_free_pool_capacity(self):
     pools = VNXPool.get(self._cli)
     free_in_pool = sum(pools.available_capacity_gbs)
     rgs = VNXRaidGroup.get(self._cli)
     free_in_rg = sum([
         rg.available_capacity_gbs for rg in rgs
         if len(rg.list_of_luns) != 0
     ])
     self._free_storage_pool = free_in_pool + free_in_rg
Пример #3
0
 def test_get_rg_list(self):
     rgs = VNXRaidGroup.get(t_cli())
     assert_that(len(rgs), equal_to(7))
     for rg in rgs:
         if rg.raid_group_id == 0:
             verify_raid0(rg)
             break
     else:
         self.fail('RAID group 0 not found.')
Пример #4
0
 def get_rg(self, rg_id=None):
     return VNXRaidGroup.get(self._cli, rg_id)
Пример #5
0
 def test_get_rg(self):
     rg = VNXRaidGroup.get(t_cli(), 0)
     verify_raid0(rg)
Пример #6
0
 def test_get_unbound_rg(self):
     rg = VNXRaidGroup.get(t_cli(), 1)
     verify_raid_1(rg)
Пример #7
0
 def test_get_rg(self):
     rg = VNXRaidGroup.get(t_cli(), 0)
     verify_raid0(rg)