Bug 1329216

Summary: 2.0: crush_rule API: PATCHing the "op" with any value other than "take" results in "server error (500)"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Harish NV Rao <hnallurv>
Component: CalamariAssignee: Boris Ranto <branto>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED WONTFIX Docs Contact: Bara Ancincova <bancinco>
Severity: high    
Priority: unspecified CC: ceph-eng-bugs, gmeno, hnallurv, kdreyer, uboppana
Version: 2.0   
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.The Calamari API returns the "server error (500)" error when changing the `take` step When changing a CRUSH rule, modifying the `take` step type to any other value than `take` causes the Calamari API to return the "server error (500)" error. To avoid this issue, do not change the `take` step to any other value.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-19 13:25:25 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1322504, 1383917, 1412948    

Description Harish NV Rao 2016-04-21 12:32:09 UTC
Description of problem:

 crush_rule API: PATCHing the "op" with any value other than "take" results in "server error (500)"

Version-Release number of selected component (if applicable):
10.1.1-1.el7cp
calamari-server-1.4.0-0.3.rc7.el7cp.x86_64
salt-2015.5.5-1.el7.noarch
salt-minion-2015.5.5-1.el7.noarch


How reproducible:always


Steps to Reproduce:
1. From the django rest framework, issue a PATCH by providing any value other than "take" for "op".
 :
 :
 "steps": [
        {
            "item_name": "default", 
            "item": -1, 
            "op": "taken"
        }, 
 :
 :

Actual results:
server error (500)

Expected results:
An error message indicating invalid value for "op"

Additional info:

Comment 2 Christina Meno 2016-04-21 17:17:22 UTC
I will check to see why it's crashing

Comment 8 Christina Meno 2017-07-19 13:25:25 UTC
calamari won't ship in rhcs 3.0