Bug 1310564

Summary: DELETE request for a pool errors out with "405 METHOD NOT ALLOWED"
Product: Red Hat Ceph Storage Reporter: Shubhendu Tripathi <shtripat>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: unspecified CC: ceph-eng-bugs, mbukatov
Version: 1.3.1   
Target Milestone: rc   
Target Release: 1.3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-01 11:17:02 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:
Bug Depends On:    
Bug Blocks: 1291304    

Description Shubhendu Tripathi 2016-02-22 09:07:49 UTC
Description of problem:
While invoking DELETE for storage pool returns with "405 METHOD NOT ALLOWED"

Version-Release number of selected component (if applicable):


How reproducible:
Trying to invoke, DELETE http://<mon node>:8002/api/<ver>/cluster/<fsid>/pool/<id> from USM ceph provider. USM ceph provider invokes a dummy URL first to get the CSRF token for the calamari server and passes the same for this request.

The simulation steps are as below -
1. Create a cluster using MON and OSD nodes
2. Create a storage pool in the cluster
3. Try to delete the storage pool

Actual results:
The error "405 METHOD NOT ALLOWED" is thrown from calamari

Expected results:
The deletion of storage pools should work without any error.

Additional info:

Comment 2 Shubhendu Tripathi 2016-03-01 11:17:02 UTC
It was an issue how the REST api was invoked.
Works fine now..