Bug 1277393 - One of the calamari Rest API for OSD results in URL not found.
Summary: One of the calamari Rest API for OSD results in URL not found.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.1
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-03 08:57 UTC by rakesh-gm
Modified: 2022-07-09 07:46 UTC (History)
4 users (show)

Fixed In Version: calamari-server-1.3-11.el7cp (RHEL) calamari-server v1.3.1.2 (Ubuntu)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 20:22:50 UTC
Embargoed:


Attachments (Terms of Use)
OSD API error (93.99 KB, image/png)
2015-11-03 08:57 UTC, rakesh-gm
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-4695 0 None None None 2022-07-09 07:46:26 UTC
Red Hat Product Errata RHSA-2015:2066 0 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2015-11-24 02:34:55 UTC
Red Hat Product Errata RHSA-2015:2512 0 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2016-02-03 03:15:52 UTC

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


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