Project

General

Profile

Bug #61558 » permissions.sh_crimson.txt

Harsh Kumar, 06/01/2023 09:27 AM

 
+ IMAGE_FEATURES=layering,exclusive-lock,object-map,fast-diff
++ mktemp
+ KEYRING=/tmp/tmp.f5fzwmTwZ6
+ trap cleanup EXIT ERR HUP INT QUIT
+ delete_users
+ create_users
+ ceph auth get-or-create client.volumes mon 'profile rbd' osd 'profile rbd pool=volumes, profile rbd-read-only pool=images' mgr 'profile rbd pool=volumes, profile rbd-read-only pool=images'
2023-06-01T05:15:00.626-0400 7fa933594700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:00.627-0400 7fa933594700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.images mon 'profile rbd' osd 'profile rbd pool=images'
2023-06-01T05:15:01.067-0400 7fbff5075700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:01.067-0400 7fbff5075700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.snap_none mon 'allow r'
2023-06-01T05:15:01.504-0400 7fa7e9793700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:01.504-0400 7fa7e9793700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.snap_all mon 'allow r' osd 'allow w'
2023-06-01T05:15:01.942-0400 7f5385648700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:01.942-0400 7f5385648700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.snap_pool mon 'allow r' osd 'allow w pool=images'
2023-06-01T05:15:02.377-0400 7f835698c700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:02.377-0400 7f835698c700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.snap_profile_all mon 'allow r' osd 'profile rbd'
2023-06-01T05:15:02.816-0400 7fda2f129700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:02.817-0400 7fda2f129700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.snap_profile_pool mon 'allow r' osd 'profile rbd pool=images'
2023-06-01T05:15:03.258-0400 7fea51d52700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:03.258-0400 7fea51d52700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph auth get-or-create client.mon_write mon 'allow *'
2023-06-01T05:15:03.696-0400 7ff981dec700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:03.697-0400 7ff981dec700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ recreate_pools
+ delete_pools
+ create_pools
+ ceph osd pool create images 32
2023-06-01T05:15:04.835-0400 7f6df164a700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:04.835-0400 7f6df164a700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
pool 'images' created
+ rbd pool init images
2023-06-01T05:15:06.062-0400 7f4c5a5ab540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:06.062-0400 7f4c5a5ab540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ ceph osd pool create volumes 32
2023-06-01T05:15:09.570-0400 7f309a673700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:09.571-0400 7f309a673700 -1 WARNING: the following dangerous and experimental features are enabled: crimson
pool 'volumes' created
+ rbd pool init volumes
2023-06-01T05:15:10.090-0400 7f9de4fa1540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:10.091-0400 7f9de4fa1540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ test_images_access
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images create --image-format 2 --image-feature layering,exclusive-lock,object-map,fast-diff -s 1 images/foo
2023-06-01T05:15:13.666-0400 7fbc6b1fa540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:13.666-0400 7fbc6b1fa540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap create images/foo@snap
2023-06-01T05:15:14.107-0400 7f11d2385540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:14.108-0400 7f11d2385540 -1 WARNING: the following dangerous and experimental features are enabled: crimson

Creating snap: 10% complete...
Creating snap: 100% complete...done.
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap protect images/foo@snap
2023-06-01T05:15:14.992-0400 7f65873cc540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:14.992-0400 7f65873cc540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap unprotect images/foo@snap
2023-06-01T05:15:15.268-0400 7f8e819cc540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:15.269-0400 7f8e819cc540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap protect images/foo@snap
2023-06-01T05:15:15.761-0400 7fd71d9bf540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:15.761-0400 7fd71d9bf540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images export images/foo@snap -
2023-06-01T05:15:16.037-0400 7ff1332b5540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:16.037-0400 7ff1332b5540 -1 WARNING: the following dangerous and experimental features are enabled: crimson

Exporting image: 100% complete...done.
+ expect 16 rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap rm images/foo@snap
+ set +e
+ local expected_ret=16
+ local ret
+ shift
+ cmd='rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap rm images/foo@snap'
+ eval rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap rm images/foo@snap
++ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap rm images/foo@snap
2023-06-01T05:15:16.143-0400 7f7f1a32f540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:16.143-0400 7f7f1a32f540 -1 WARNING: the following dangerous and experimental features are enabled: crimson

2023-06-01T05:15:16.336-0400 7f7f1262d700 -1 librbd::Operations: snapshot is protected
Removing snap: 0% complete...failed.
rbd: snapshot 'snap' is protected from removal.
+ ret=16
+ set -e
+ [[ 16 -ne 16 ]]
+ return 0
+ rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes clone --image-feature layering,exclusive-lock,object-map,fast-diff images/foo@snap volumes/child
2023-06-01T05:15:16.523-0400 7fb1f7bd8540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:16.524-0400 7fb1f7bd8540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ clone_v2_enabled images/foo
+ image_spec=images/foo
+ rbd info images/foo
+ grep clone-parent
2023-06-01T05:15:17.087-0400 7fc045f8f540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:17.088-0400 7fc045f8f540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
+ expect 16 rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap unprotect images/foo@snap
+ set +e
+ local expected_ret=16
+ local ret
+ shift
+ cmd='rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap unprotect images/foo@snap'
+ eval rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap unprotect images/foo@snap
++ rbd -k /tmp/tmp.f5fzwmTwZ6 --id images snap unprotect images/foo@snap
2023-06-01T05:15:17.207-0400 7f0c55350540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:17.208-0400 7f0c55350540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:17.325-0400 7f0c4de4f700 -1 librbd::SnapshotUnprotectRequest: cannot unprotect: at least 1 child(ren) [61245675f5] in pool 'volumes'
2023-06-01T05:15:17.367-0400 7f0c4d64e700 -1 librbd::SnapshotUnprotectRequest: encountered error: (16) Device or resource busy
2023-06-01T05:15:17.367-0400 7f0c4d64e700 -1 librbd::SnapshotUnprotectRequest: 0x5570813e62e0 should_complete_error: ret_val=-16
2023-06-01T05:15:17.422-0400 7f0c4de4f700 -1 librbd::SnapshotUnprotectRequest: 0x5570813e62e0 should_complete_error: ret_val=-16
rbd: unprotecting snap failed: (16) Device or resource busy
+ ret=16
+ set -e
+ [[ 16 -ne 16 ]]
+ return 0
+ expect 1 rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap
+ set +e
+ local expected_ret=1
+ local ret
+ shift
+ cmd='rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap'
+ eval rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap
++ rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap
2023-06-01T05:15:17.515-0400 7f2b172af540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:17.515-0400 7f2b172af540 -1 WARNING: the following dangerous and experimental features are enabled: crimson
2023-06-01T05:15:17.661-0400 7f2b02ffd700 -1 librbd::SnapshotUnprotectRequest: cannot unprotect: at least 1 child(ren) [61245675f5] in pool 'volumes'
2023-06-01T05:15:17.701-0400 7f2b02ffd700 -1 librbd::SnapshotUnprotectRequest: encountered error: (16) Device or resource busy
2023-06-01T05:15:17.701-0400 7f2b02ffd700 -1 librbd::SnapshotUnprotectRequest: 0x55590400f2e0 should_complete_error: ret_val=-16
rbd: unprotecting snap failed: (16) Device or resource busy
2023-06-01T05:15:17.747-0400 7f2b037fe700 -1 librbd::SnapshotUnprotectRequest: 0x55590400f2e0 should_complete_error: ret_val=-16
+ ret=16
+ set -e
+ [[ 16 -ne 1 ]]
+ echo 'ERROR: running \'\''rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap\'\'': expected 1 got 16'
ERROR: running \'rbd -k /tmp/tmp.f5fzwmTwZ6 --id volumes snap unprotect images/foo@snap\': expected 1 got 16
+ return 1
+ cleanup
+ rm -f /tmp/tmp.f5fzwmTwZ6
(1-1/2)