Creating existing container - swift client

Bug #1493810 reported by cooldharma06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

i have my swift in my VM. i installed python-swiftclient by pip.

and its version 2.6.0

i created one contianer with name 'sample'. in that container i uploaded some objects .

then again i tired to create a new container with same name (sample). it shows with different xtransid. still i have my old container 'sample'.

it doesn't asking the user to overwrite or create; not showing any error messages.

i tried with both python-swiftclient & python-openstackclient cli. both are working in the same manner.

Revision history for this message
Alistair Coles (alistair-coles) wrote :

I don't yet see a bug here - the transid is just a record of the API request transaction id. "Creating" the same container name twice should only result in one container. There is no "overwrite" of an existing container.

How did you create your container? if you use:

swift post sample

then sample is created if it does not already exist, see:

swift post -h

If you use

swift upload sampler obj

then the container is also only created if it did not yet exist.

Changed in python-swiftclient:
status: New → Incomplete
Revision history for this message
cooldharma06 (cooldharma06) wrote :

hi,

you just upload some file in the sample container.

then again create same container with same name.

it will not show any error message to the user.

just it will show like its creating new container.

Changed in python-swiftclient:
status: Incomplete → New
Revision history for this message
Sirisha Guduru (guduru-sirisha) wrote :

Hi,

As you mentioned is doesn't show any message when you create another container with the same name.

But ideally it is doing POST which is expected to update metadata about that container and if the container is not present it just creates it.

Since this is not exclusive creation of container it doesn't show up anything even when you duplicate container's name.

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.