| Summary: | horizon: upload to swift from cli shows directories | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Dafna Ron <dron> |
| Component: | python-django-horizon | Assignee: | Julie Pichon <jpichon> |
| Status: | CLOSED NOTABUG | QA Contact: | Ami Jeain <ajeain> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.0 | CC: | aortega, athomas, hateya, jpichon, mrunge, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 4.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | storage | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-23 15:32:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Dafna Ron
2013-09-26 09:05:34 UTC
also, if we try to remove the directory from horizon: Error: You do not have permission to delete object: tmp while cli will give: [root@nott-vdsa ~(keystone_admin)]# swift delete dafna tmp Object 'dafna/tmp' not found [root@nott-vdsa ~(keystone_admin)]# swift list dafna tmp/ks-script-uLSgyo.log [root@nott-vdsa ~(keystone_admin)]# IMO, the behaviour is consistent between both: Via Horizon: 1. Upload file "test" with name "test" -> a test file is shown at the top level 2. Upload file test with name "tmp/test" -> a test file is created within a "tmp" directory (actually pseudo-folder) Via Swift CLI: 1. swift upload test -> a test file is shown at the top level 2. swift upload tmp/test -> the test file and tmp directory (actually pseudo-folder) are uploaded This is the way Swift works: http://docs.openstack.org/api/openstack-object-storage/1.0/content/folders-directories.html . To navigate the pseudo-folders you'd then use the 'delimiter' option together with 'list': $ swift list test test/test_within_test tmp/test_within_test tmp/tmp_file $ swift list test -d / test/ tmp/ This is the spec that Horizon follows. I think it would be better to file a bug about the error message discrepancy mentioned in comment 1 separately, if you don't mind filing another bug. I think Horizon could do better and ideally explain why it can't be deleted. Thanks! |