Skip to content

Commit

Permalink
fix: fix volume size smaller than bi size issue
Browse files Browse the repository at this point in the history
ref: longhorn/longhorn10017

Signed-off-by: Jack Lin <[email protected]>
  • Loading branch information
ChanYiLin authored and derekbit committed Dec 19, 2024
1 parent 19fa09f commit 381a51d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manager/integration/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
Mi = (1024 * 1024)
Gi = (1024 * Mi)

SIZE = str(16 * Mi)
SIZE = str(32 * Mi)
# See https://github.com/longhorn/longhorn/issues/8488.
XFS_MIN_SIZE = str(300 * Mi)
EXPAND_SIZE = str(32 * Mi)
EXPAND_SIZE = str(64 * Mi)
VOLUME_NAME = "longhorn-testvol"
ATTACHMENT_TICKET_ID_PREFIX = "test-attachment-ticket"
STATEFULSET_NAME = "longhorn-teststs"
Expand Down
4 changes: 2 additions & 2 deletions manager/integration/tests/test_recurring_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1899,14 +1899,14 @@ def test_recurring_job_snapshot_cleanup(set_random_backupstore, client, batch_v1

volume = wait_for_volume_healthy(client, volume_name)

expand_size = str(32 * Mi)
expand_size = str(64 * Mi)
volume.expand(size=expand_size)
wait_for_volume_expansion(client, volume_name)
# - 1 new system-created snapshot
# - 1 volume-head
wait_for_snapshot_count(volume, 2)

expand_size = str(64 * Mi)
expand_size = str(128 * Mi)
volume.expand(size=expand_size)
wait_for_volume_expansion(client, volume_name)
# - 1 new system-created snapshot
Expand Down

0 comments on commit 381a51d

Please sign in to comment.