Skip to content

Commit f6fb347

Browse files
committed
testnode: allow storage device size config
1 parent f0a92b0 commit f6fb347

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ceph_devstack/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ image = "quay.io/ceph-infra/pulpito:main"
1717

1818
[containers.testnode]
1919
count = 3
20+
loop_device_size = "5G"
2021
image = "quay.io/ceph-infra/teuthology-testnode:main"
2122

2223
[containers.teuthology]

ceph_devstack/resources/ceph/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async def remove(self):
246246
await self.remove_loop_device()
247247

248248
async def create_loop_device(self):
249-
size_gb = 5
249+
size = config["containers"]["testnode"]["loop_device_size"]
250250
os.makedirs(self.loop_img_dir, exist_ok=True)
251251
proc = await self.cmd(["lsmod", "|", "grep", "loop"])
252252
if proc and await proc.wait() != 0:
@@ -277,7 +277,7 @@ async def create_loop_device(self):
277277
f"of={loop_img_name}",
278278
"bs=1",
279279
"count=0",
280-
f"seek={size_gb}G",
280+
f"seek={size}",
281281
],
282282
check=True,
283283
)

0 commit comments

Comments
 (0)