Created
January 31, 2022 12:31
-
-
Save orimanabu/fb84cb0245534f4ca1c0976d6177413b to your computer and use it in GitHub Desktop.
ODF CephFS Volume Quota Test Log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ori@localhost ~]$ cat pvc1.yaml | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: cephfs-kernel | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Mi | |
storageClassName: ocs-storagecluster-cephfs | |
[ori@localhost ~]$ oc create -f pvc1.yaml | |
persistentvolumeclaim/cephfs-kernel created | |
[ori@localhost ~]$ cat pod1.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod1 | |
spec: | |
containers: | |
- name: fedora | |
image: quay.io/fedora/fedora | |
command: | |
- /usr/bin/sleep | |
- infinity | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /data | |
name: datavol | |
volumes: | |
- name: datavol | |
persistentVolumeClaim: | |
claimName: cephfs-kernel | |
[ori@localhost ~]$ oc create -f pod1.yaml | |
pod/pod1 created | |
[ori@localhost ~]$ oc rsh pod1 | |
sh-5.1# dnf install -y procps-ng strace attr util-linux | |
<snip> | |
sh-5.1# mkdir /data/quota_test | |
sh-5.1# setfattr -n ceph.quota.max_bytes -v 1024 /data/quota_test | |
setfattr: /data/quota_test: Permission denied | |
sh-5.1# strace setfattr -n ceph.quota.max_bytes -v 1024 /data/quota_test | |
execve("/usr/bin/setfattr", ["setfattr", "-n", "ceph.quota.max_bytes", "-v", "1024", "/data/quota_test"], 0x7ffcb6a2d488 /* 19 vars */) = 0 | |
brk(NULL) = 0x55f495db9000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc446cfd60) = -1 EINVAL (Invalid argument) | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f265fa87000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=7839, ...}, AT_EMPTY_PATH) = 0 | |
mmap(NULL, 7839, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f265fa85000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\327\2\0\0\0\0\0"..., 832) = 832 | |
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 | |
pread64(3, "\4\0\0\0@\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 80, 848) = 80 | |
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\24\207\222\335\354`\340\261^ e_\334\20\303Z"..., 68, 928) = 68 | |
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2387984, ...}, AT_EMPTY_PATH) = 0 | |
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 | |
mmap(NULL, 2136784, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f265f87b000 | |
mprotect(0x7f265f8a7000, 1880064, PROT_NONE) = 0 | |
mmap(0x7f265f8a7000, 1531904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c000) = 0x7f265f8a7000 | |
mmap(0x7f265fa1d000, 344064, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a2000) = 0x7f265fa1d000 | |
mmap(0x7f265fa72000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f6000) = 0x7f265fa72000 | |
mmap(0x7f265fa78000, 51920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f265fa78000 | |
close(3) = 0 | |
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f265f878000 | |
arch_prctl(ARCH_SET_FS, 0x7f265f878740) = 0 | |
set_tid_address(0x7f265f878a10) = 99 | |
set_robust_list(0x7f265f878a20, 24) = 0 | |
mprotect(0x7f265fa72000, 12288, PROT_READ) = 0 | |
mprotect(0x55f494d25000, 4096, PROT_READ) = 0 | |
mprotect(0x7f265faba000, 8192, PROT_READ) = 0 | |
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 | |
munmap(0x7f265fa85000, 7839) = 0 | |
getrandom("\x86\xe9\x03\x85\x16\x30\xc9\xab", 8, GRND_NONBLOCK) = 8 | |
brk(NULL) = 0x55f495db9000 | |
brk(0x55f495dda000) = 0x55f495dda000 | |
setxattr("/data/quota_test", "ceph.quota.max_bytes", "1024", 4, 0) = -1 EACCES (Permission denied) | |
write(2, "setfattr: /data/quota_test: Perm"..., 46setfattr: /data/quota_test: Permission denied | |
) = 46 | |
exit_group(1) = ? | |
+++ exited with 1 +++ | |
sh-5.1# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment