Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1327203 - 2.0: calamari is not responding to the API calls after incomplete crush rules were PATCHed
2.0: calamari is not responding to the API calls after incomplete crush rules...
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari (Show other bugs)
2.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 2.0
Assigned To: Gregory Meno
ceph-qe-bugs
:
: 1336451 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-14 08:42 EDT by Harish NV Rao
Modified: 2016-08-23 15:36 EDT (History)
3 users (show)

See Also:
Fixed In Version: RHEL: calamari-server-1.4.0-0.8.rc11.el7cp Ubuntu: calamari-server_1.4.0~rc11-2redhat1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-23 15:36:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
calamari.log (60.71 KB, text/plain)
2016-04-14 08:43 EDT, Harish NV Rao
no flags Details
crush rule inputs (1.79 KB, text/plain)
2016-04-14 08:45 EDT, Harish NV Rao
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1755 normal SHIPPED_LIVE Red Hat Ceph Storage 2.0 bug fix and enhancement update 2016-08-23 19:23:52 EDT

  None (edit)
Description Harish NV Rao 2016-04-14 08:42:12 EDT
Description of problem:

  Calamari-lite is not responding to the API calls after incomplete crush rules were PATCHed. /var/log/calamari/calamari.log shows: IndexError: list index out of range. Please see attached calamari.log.

Version-Release number of selected component (if applicable):10.1.1-1.el7cp


How reproducible:1/1


Steps to Reproduce:
1. PATCH an 'empty' crush rule using Django REST framework (2.3.12)
  -- This resulted in: Server Error (500)
2. GET crush rule.
  -- This worked fine
3. PATCH an 'incomplete' crush rule in which only "name" and "ruleset" are mentioned.
  -- This resulted in: Server Error (500)
4. GET crush rule.
  -- This worked fine
5. PATCH an 'incomplete' crush rule in which "steps" is incomplete.
  -- This failed with Server Error (500) 

Actual results:
As mentioned above

Expected results:
Should display appropriate error message

Additional info:
[root@magna013 calamari]# rpm -qa | grep calamari
calamari-server-1.4.0-0.3.rc7.el7cp.x86_64
[root@magna013 calamari]# rpm -qa | grep salt
salt-minion-2015.5.5-1.el7.noarch
salt-2015.5.5-1.el7.noarch

Please see attached log files also.
Comment 2 Harish NV Rao 2016-04-14 08:43 EDT
Created attachment 1147233 [details]
calamari.log
Comment 3 Harish NV Rao 2016-04-14 08:45 EDT
Created attachment 1147236 [details]
crush rule inputs
Comment 4 Gregory Meno 2016-05-17 15:28:39 EDT
*** Bug 1336451 has been marked as a duplicate of this bug. ***
Comment 5 Gregory Meno 2016-05-17 15:30:12 EDT
https://github.com/ceph/calamari/tree/wip-fix-crush-rule

needs testing and more tests written before pulling downstream
Comment 8 Harish NV Rao 2016-05-30 06:02:59 EDT
verified on calamari-server version 1.4.0~rc13-2redhat1xenial
Comment 10 errata-xmlrpc 2016-08-23 15:36:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1755.html

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