Project

General

Profile

Bug #9522

Error thrown from the restapi while modifying pool

Added by Kanagaraj Mayilsamy about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
Backend (REST API)
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

When pool modification request is sent with name(unmodified) and replica(modified), 409 error is thrown with message "Pool with name test2 already exists"

Steps to reproduce from the UI.
1. Create a pool with name 'test2'
2. Wait for the pool to appear in the pool list screen
3. Click on edit pool
4. Change the pool name to 'test1' then revert to 'test2'
5. Increase the replica count
6. Click on Save button
7. An error will be thrown in the message box (which not readable at the moment, refer1)
8. If the developer tool is enable in the browser, the error message can be seen as "Pool with name test2 already exists" with 409 status code

Step-5 can be optional while reproducing this error.

[1] http://tracker.ceph.com/issues/9486

Associated revisions

Revision 8152e015 (diff)
Added by Gregory Meno almost 7 years ago

rest-api: change name validation on update and tests for same

This allows name to be present on an update, and still rejects updating
a pool to have the same name as another pool

Signed-off-by: Gregory Meno <>

Fixes: #9522

History

#1 Updated by Dan Mick about 7 years ago

  • Assignee set to Christina Meno

#2 Updated by Dan Mick about 7 years ago

  • Category set to Backend (REST API)
  • Target version set to 1.3 backlog

#3 Updated by Christina Meno about 7 years ago

  • Status changed from New to 12

#4 Updated by Christina Meno almost 7 years ago

  • Target version changed from 1.3 backlog to 1.3-dev8

#5 Updated by Christina Meno almost 7 years ago

  • Status changed from 12 to Fix Under Review

#6 Updated by Christina Meno almost 7 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF