-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: Disallow volume.security.shared
on cephfs
#14633
base: main
Are you sure you want to change the base?
Changes from all commits
bdb9066
a53a777
d658d74
fb08a39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please can you expand the commit message as to why these were ineffective? |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,18 @@ test_storage_local_volume_handling() { | |
lxc storage volume set "${pool}" vol1 user.foo=snap0 | ||
lxc storage volume set "${pool}" vol1 snapshots.expiry=1H | ||
|
||
lxc storage volume create "${pool}" blockVol --type=block | ||
truncate -s 25MiB foo.iso | ||
lxc storage volume import "${pool}" ./foo.iso isoVol | ||
|
||
# security.shared is only allowed for block volumes | ||
! lxc storage volume set "${pool}" vol1 security.shared true || false | ||
! lxc storage volume set "${pool}" isoVol security.shared true || false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, they are sharable by default |
||
lxc storage volume set "${pool}" blockVol security.shared true | ||
|
||
lxc storage volume delete "${pool}" blockVol | ||
lxc storage volume delete "${pool}" isoVol | ||
|
||
# This will create the snapshot vol1/snap0 | ||
lxc storage volume snapshot "${pool}" vol1 | ||
|
||
|
@@ -289,7 +301,6 @@ test_storage_local_volume_handling() { | |
[ "$(lxc storage volume get "${target_pool}" vol5/snap0 volatile.uuid)" = "${old_snap0_uuid}" ] | ||
|
||
# copy ISO custom volumes | ||
truncate -s 25MiB foo.iso | ||
lxc storage volume import "${source_pool}" ./foo.iso iso1 | ||
lxc storage volume copy "${source_pool}/iso1" "${target_pool}/iso1" | ||
lxc storage volume show "${target_pool}" iso1 | grep -q 'content_type: iso' | ||
|
@@ -308,10 +319,11 @@ test_storage_local_volume_handling() { | |
lxc storage volume delete "${source_pool}" vol6 | ||
lxc storage volume delete "${target_pool}" iso1 | ||
lxc storage volume delete "${target_pool}" iso2 | ||
rm -f foo.iso | ||
fi | ||
done | ||
done | ||
|
||
rm -f foo.iso | ||
) | ||
|
||
# shellcheck disable=SC2031,2269 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty error message looks odd?