Creating a pool with an existing name should thow an Exception

Bug #1503997 reported by Md Nadeem
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zaqar
Invalid
Medium
Unassigned

Bug Description

As of now creating a new pool with the name, of which a pool is already exist in the Env, will update the existing pool.

Prob: A user has to first check all existing pool name before choosing a name for the new pool, otherwise there is a probability that the user will update an existing pool unintentionally.

Solution: pool create api should through "PoolNameExist" exception in case of duplicate pool name.

Suggestion: Always use patch api to update an existing pool.

Changed in zaqar:
assignee: nobody → MD NADEEM (mail2nadeem92)
Revision history for this message
Ryan Brown (sb-p) wrote :

Is that something we shouldn't allow? I think users sending a flavor/pool with the same name would want that action to modify the existing one.

Revision history for this message
Md Nadeem (mail2nadeem92) wrote :

Ryan Brown: Thank you for your comment. As per my understanding

A user should use PATCH method to modify flavor/pool. If a user execute create command, most likely he wants to create a new pool/flavor.
A user can choose any random name for the pool/flavor, as there can be lots of pool and flavor already present in the Env, so there is a probability that a name clash will occur and user unintentionally modified the existing pool/flavor with out even realizing it what he has done, as create command return successful created response code<HTTP/1.1 201 Created>.

It is not a good idea that a user first check all the name of the pool/flavor and then decide to choose a unique name. So from my point of view, we should take care of it.

Ryan Brown: Please give your openion

Changed in zaqar:
status: New → Confirmed
importance: Undecided → Medium
summary: - Creating a pool or flavor with an existing name should through an
- Exception
+ Creating a pool with an existing name should through an Exception
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/238006

Changed in zaqar:
status: Confirmed → In Progress
summary: - Creating a pool with an existing name should through an Exception
+ Creating a pool with an existing name should thow an Exception
Changed in zaqar:
status: In Progress → Invalid
assignee: MD NADEEM (mail2nadeem92) → nobody
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.