can't create multiple containers using post

Bug #1231474 reported by Dafna Ron
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Opinion
Wishlist
Unassigned

Bug Description

if I run: swift post <container> we create the container

i think we should be able to run:
swift post <container1> <container2> <container3>

please note that bug was opened to create a separate create command and if accepted this can be closed.

https://bugs.launchpad.net/swift/+bug/1231321

Revision history for this message
Samuel Merritt (torgomatic) wrote :

"swift post $container $object" is how you update an object's metadata, so making the proposed change would make "swift post $thing1 $thing2" ambiguous -- is it asking for two container POSTs, or an object POST?

Changed in swift:
status: New → Won't Fix
Revision history for this message
Dafna Ron (dron-3) wrote :

yes, post is to update a container but unfortunately since there is no create command for a container a user will be using post or upload to create a container as well.
so, if we create a create command from container in swift this bug will be invalid but if we do not solve the create command issue we should allow the users to create several containers through the post command
perhaps adding a --container-only tag or something of sorts will be better than changing the whole post command hence allowing a user to create multiple containers without actually changing the spirit of the post command

Revision history for this message
clayg (clay-gerrard) wrote :

I think the purposed syntax of:

    swift post --container-only $container1 $container2 $container3

... would be acceptable if a patch was purposed.

I'm not sure I follow the use-case this solves over creating three containers with:

    for cont in $container1 $container2 $container3; do swift post $cont; done

or just letting the containers be auto-created via object upload.

I'll change the status to "wishlist" if you can enumerate the use-case.

I think a "create" command as a thin alias over "post" might be more complicated and don't have a strong opinion on the clarity.

Revision history for this message
Dafna Ron (dron-3) wrote :

the use cases I can think of is for Admin integrating swift as a new technology.
In that case, I would probably want to run a script that would prepare the environment (without actually uploading any documents since I want to test the results in a controlled environment).
also, it can be useful for administrators creating the containers for other users on a day to day bases (mainly in large environment in which swift is needed)

clayg (clay-gerrard)
Changed in swift:
status: Won't Fix → Opinion
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.