| Summary: | Object-Storage: "mkdir" used when user addition happens when volume is stopped | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Saurabh <saurabh> |
| Component: | object-storage | Assignee: | Gaurav <ggangalw> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | pre-release | CC: | gluster-bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Saurabh
2011-07-06 07:47:04 UTC
When the volume is stopped and trial to add a user to this account results in a response that the "mkdir" of the fuse mount directory which is already mounted as the account creation earlier, whereas if the volume is in "start" mode the user-addition happens "swiftly" Failure traces:- root@gluster-Ubuntu1:~# gluster volume stop test1 Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y Stopping volume test1 has been successful root@gluster-Ubuntu1:~# swauth-add-user -a -K sj test1 tester6 testing6 -A https://127.0.0.1:443/auth/ mkdir: cannot create directory `/mnt/swift/test1': File exists Command failed: sudo mkdir -p /mnt/swift/test1 Account not valid: test1 My suggestion will be to handle it some other way, like putting up response string like "corresponding volume is stopped" root@Unbuntu:~# ./glusterfs/inst/sbin/gluster volume stop test Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y Stopping volume test has been successful root@Unbuntu:~# gluster-object-add-user -K sj -A https://127.0.0.1:443/auth test tester2 testing2 root@Unbuntu:~# root@Unbuntu:~# ls /mnt/swift/auth dist dr1 drep drep3 test tmp root@Unbuntu:~# ls /mnt/swift/auth/test saurabh tester tester1 tester2 root@Unbuntu:~# root@Unbuntu:~# root@Unbuntu:~# ./glusterfs/inst/sbin/gluster volume stop auth Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y Stopping volume auth has been successful root@Unbuntu:~# root@Unbuntu:~# root@Unbuntu:~# gluster-object-add-user -K sj -A https://127.0.0.1:443/auth test tester3 testing3 User creation failed: 500 Server Error root@Unbuntu:~# ./glusterfs/inst/sbin/gluster volume start test Starting volume test has been successful root@Unbuntu:~# root@Unbuntu:~# root@Unbuntu:~# gluster-object-add-user -K sj -A https://127.0.0.1:443/auth test tester3 testing3 User creation failed: 500 Server Error |