Skip to content

Commit 635a920

Browse files
authored
Merge pull request #1846 from stgraber/main
Fixes from Linstor branch
2 parents 5a126c1 + 6bf533b commit 635a920

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

doc/reference/storage_ceph.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Key | Type | Condition | Default
101101
`block.filesystem` | string | block-based volume with content type `filesystem` | same as `volume.block.filesystem` | {{block_filesystem}}
102102
`block.mount_options` | string | block-based volume with content type `filesystem` | same as `volume.block.mount_options` | Mount options for block-backed file system volumes
103103
`initial.gid` | int | custom volume with content type `filesystem` | same as `volume.initial.uid` or `0` | GID of the volume owner in the instance
104-
`initial.mode` | int | custom volume with content type `filesystem` | same as `volume.initial.mode` or `711` | Mode of the volume in the instance
104+
`initial.mode` | int | custom volume with content type `filesystem` | same as `volume.initial.mode` or `711` | Mode of the volume in the instance
105105
`initial.uid` | int | custom volume with content type `filesystem` | same as `volume.initial.gid` or `0` | UID of the volume owner in the instance
106106
`security.shared` | bool | custom block volume | same as `volume.security.shared` or `false` | Enable sharing the volume across multiple instances
107107
`security.shifted` | bool | custom volume | same as `volume.security.shifted` or `false` | {{enable_ID_shifting}}

test/suites/clustering.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,8 @@ test_clustering_storage() {
739739

740740
# The 'source' config key is omitted when showing the cluster
741741
# configuration, and included when showing the node-specific one.
742-
! INCUS_DIR="${INCUS_TWO_DIR}" incus storage show pool1 | grep -q source || false
742+
! INCUS_DIR="${INCUS_TWO_DIR}" incus storage show pool1 | grep -q source: || false
743+
743744
source1="$(basename "${INCUS_ONE_DIR}")"
744745
source2="$(basename "${INCUS_TWO_DIR}")"
745746
if [ "${poolDriver}" = "ceph" ]; then

test/suites/incremental_copy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ do_copy() {
3030
incus storage volume set "${source_pool}" container/c1 user.foo=main
3131

3232
# Set size to check this is supported during copy.
33-
incus config device set c1 root size=50MiB
33+
incus config device set c1 root size=200MiB
3434

3535
targetPoolFlag=
3636
if [ -n "${target_pool}" ]; then

test/suites/projects.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ test_projects_limits() {
729729
! incus project set p1 limits.disk 1GiB || false
730730

731731
# Set a disk limit on the default profile and also on instance c2
732-
incus profile device set default root size=100MiB
733-
incus config device add c2 root disk path="/" pool="${pool}" size=50MiB
732+
incus profile device set default root size=200MiB
733+
incus config device add c2 root disk path="/" pool="${pool}" size=150MiB
734734

735735
if [ "${INCUS_BACKEND}" = "lvm" ]; then
736736
# Can't set the project's disk limit because not all volumes have
@@ -747,30 +747,30 @@ test_projects_limits() {
747747
incus storage volume create "${pool}" v1
748748

749749
# Set a size on the custom volume.
750-
incus storage volume set "${pool}" v1 size 50MiB
750+
incus storage volume set "${pool}" v1 size 150MiB
751751

752752
# Can't set the project's disk limit below the current aggregate count.
753-
! incus project set p1 limits.disk 190MiB || false
753+
! incus project set p1 limits.disk 490MiB || false
754754

755755
# Set the project's disk limit
756-
incus project set p1 limits.disk 250MiB
756+
incus project set p1 limits.disk 550MiB
757757

758758
# Can't update the project's disk limit below the current aggregate count.
759-
! incus project set p1 limits.disk 190MiB || false
759+
! incus project set p1 limits.disk 490MiB || false
760760

761761
# Changing profile or instance root device size or volume size above the
762762
# aggregate project's limit is not possible.
763-
! incus profile device set default root size=160MiB || false
764-
! incus config device set c2 root size 110MiB || false
765-
! incus storage volume set "${pool}" v1 size 110MiB || false
763+
! incus profile device set default root size=300MiB || false
764+
! incus config device set c2 root size 250MiB || false
765+
! incus storage volume set "${pool}" v1 size 250MiB || false
766766

767767
# Can't create a custom volume without specifying a size.
768768
! incus storage volume create "${pool}" v2 || false
769769

770770
# Disk limits can be updated if they stay within limits.
771-
incus project set p1 limits.disk 204900KiB
772-
incus profile device set default root size=90MiB
773-
incus config device set c2 root size 60MiB
771+
incus project set p1 limits.disk 540MiB
772+
incus profile device set default root size=190MiB
773+
incus config device set c2 root size 200MiB
774774

775775
# Can't upload an image if that would exceed the current quota.
776776
! deps/import-busybox --project p1 --template start --alias otherimage || false
@@ -803,7 +803,7 @@ test_projects_limits() {
803803
# Relax all constraints except the disk limits, which won't be enough for the
804804
# image to be downloaded.
805805
incus profile device set default root size=500KiB
806-
incus project set p1 limits.disk 111MiB
806+
incus project set p1 limits.disk 351MiB
807807
incus project unset p1 limits.containers
808808
incus project unset p1 limits.cpu
809809
incus project unset p1 limits.memory

test/suites/storage.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,13 @@ test_storage() {
763763
)
764764

765765
# Test applying quota (expected size ranges are in KiB and have an allowable range to account for allocation variations).
766-
QUOTA1="20MiB"
767-
rootMinKiB1="13800"
768-
rootMaxKiB1="23000"
766+
QUOTA1="400MiB"
767+
rootMinKiB1="320000"
768+
rootMaxKiB1="450000"
769769

770-
QUOTA2="25MiB"
771-
rootMinKiB2="18900"
772-
rootMaxKiB2="28000"
770+
QUOTA2="800MiB"
771+
rootMinKiB2="720000"
772+
rootMaxKiB2="850000"
773773

774774
if [ "$incus_backend" != "dir" ]; then
775775
incus launch testimage quota1

0 commit comments

Comments
 (0)