def test_step_1_create_volumes(self):
        storage_class = 'nvmesh-raid1'
        num_of_volumes = TestConfig.NumberOfVolumes
        for i in range(num_of_volumes):
            pvc_name = 'vol-{}'.format(i)
            pvc = KubeUtils.get_pvc_template(pvc_name, storage_class)
            KubeUtils.create_pvc(pvc)

        for i in range(num_of_volumes):
            pvc_name = 'vol-{}'.format(i)
            KubeUtils.wait_for_pvc_to_bound(pvc_name)
Example #2
0
 def _create_volumes(self, num_of_volumes):
     storage_class = 'nvmesh-raid1'
     for i in range(num_of_volumes):
         pvc_name = 'vol-{}'.format(i)
         pvc = KubeUtils.get_pvc_template(pvc_name, storage_class)
         KubeUtils.create_pvc(pvc)