]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: update rbd-wnbd test, using MBR instead of GPT 57653/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 2 Aug 2023 13:08:01 +0000 (13:08 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 23 May 2024 08:15:43 +0000 (08:15 +0000)
We're getting the following error while initializing 64MB disks
on WS 2019: "The disk is not large enough to support a GPT
partition style.".

For this reason, we'll use MBR instead.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 8d294f948a78d7f98392fe2a3bf123f583eb9757)

qa/workunits/windows/py_tests/internal/rbd_image.py

index 772819ee804afe735e82ffa58eb866c076a842e4..e7599383321cca04969a29425cba91ee04adcc12 100644 (file)
@@ -185,7 +185,8 @@ class RbdImage(object):
     @Tracer.trace
     @utils.retry_decorator()
     def _init_disk(self):
-        cmd = f"Get-Disk -Number {self.disk_number} | Initialize-Disk"
+        cmd = (f"Get-Disk -Number {self.disk_number} | "
+               "Initialize-Disk -PartitionStyle MBR")
         utils.ps_execute(cmd)
 
     @Tracer.trace