Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1277393

Summary: One of the calamari Rest API for OSD results in URL not found.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: rakesh-gm <rgowdege>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: ceph-eng-bugs, hnallurv, kdreyer, rgowdege
Version: 1.3.1   
Target Milestone: rc   
Target Release: 1.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: calamari-server-1.3-11.el7cp (RHEL) calamari-server v1.3.1.2 (Ubuntu) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 20:22:50 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:
Attachments:
Description Flags
OSD API error none

Description rakesh-gm 2015-11-03 08:57:03 UTC
Created attachment 1088829 [details]
OSD API error

The following are the rest APIs available for OSDs


1.    api/v2/cluster/<fsid>/osd         ------------  working     
2.    api/v2/cluster/<fsid>/osd/<osd_id> -----------  working         
3.    api/v2/cluster/<fsid>/osd/command   ----------  NOT working.         
4.    api/v2/cluster/<fsid>/osd/<osd_id>/command ---- working 
5.    api/v2/cluster/<fsid>/osd/<osd_id>/command/<command> --- working

The 3rd API results in "URL not found". This is documented here: 
http://calamari.readthedocs.org/en/latest/calamari_rest/resources/resources.html

The screen shot where I tried to run this in the browser is attached here.

Comment 2 Christina Meno 2015-11-04 05:30:22 UTC
please attach logs as described here http://calamari.readthedocs.org/en/wip-troubleshoot/operations/troubleshooting.html

Comment 4 Christina Meno 2015-11-04 17:57:30 UTC
Looks like you attached the logs from the bz https://bugzilla.redhat.com/show_bug.cgi?id=1277438

Would you please fix this?

Comment 5 Christina Meno 2015-11-04 18:28:30 UTC
I see now that this log covers both issues.

looking at the code for the URL routing I'm seeing a space in the pattern where there should be none.

I will prepare a fix for this in 1.3.1

Comment 9 errata-xmlrpc 2015-11-23 20:22:50 UTC
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://access.redhat.com/errata/RHSA-2015:2512

Comment 10 Siddharth Sharma 2015-11-23 21:53:32 UTC
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://access.redhat.com/errata/RHSA-2015:2066