Bug 1329244 - 2.0: crush_rule API: Creating a new rule with min_size > max_size succeeds
Summary: 2.0: crush_rule API: Creating a new rule with min_size > max_size succeeds
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 2.5
Assignee: Boris Ranto
QA Contact: Vidushi Mishra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 13:24 UTC by Harish NV Rao
Modified: 2017-12-06 17:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 17:26:22 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Harish NV Rao 2016-04-21 13:24:56 UTC
Description of problem:

  Creating a new rule with min_size > max_size succeeds

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


How reproducible: always


Steps to Reproduce:
1. Create a new rule via crush_rule API by specifying min_size > max_size

    {
        "id": 3, 
        "name": "replicated_ruleset_kdsjf", 
        "ruleset": 0, 
        "type": "replicated", 
        "min_size": 100, 
        "max_size": 10, 
        "steps": [
           :
           :
  
Actual results:
new crush rule is created successfully

Expected results:
new crush rule should not be created and should display error message indicating min_size > max_size.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.