Project

General

Profile

Feature #7830

Filter OSD list GET by ID set or host

Added by Yan-Fa Li about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backend (REST API)
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:

Description

This UI URL tries to present an interface to all the OSDs on a particular host.

http://mira106.front.sepia.ceph.com/manage/#/osd/server/mira048.front.sepia.ceph.com

After making a call against the server API, I iterate over the services data and pull out all the IDs for all OSDs associated with this host. Then I make N calls to the osd API requesting metadata about each OSD. For the mira048 server this is 28 back to back requests.

What I would really like to have, is the option to request all the OSD metadata for a particular host and/or an arbitrary collection of osd id's.

e.g.

GET http://mira106.front.sepia.ceph.com/api/v2/cluster/61723e0f-992b-466e-9c09-9914931bc584/osd?host=<fqdn>

or

GET http://mira106.front.sepia.ceph.com/api/v2/cluster/61723e0f-992b-466e-9c09-9914931bc584/osd?ids=1,2,3,4,6,8,10,44

Ideally both styles of interface would be available, but if I could choose only one I would take the second style.

Associated revisions

Revision 93ee7167 (diff)
Added by John Spray almost 10 years ago

calamari_rest: add OSD filtering by ID list

Adds a filter argument to the list() RPC. Also
use this for the pre-existing pool filtering.

Add unit tests for construction of the filter argument
from URL parameters.

Adopt async RPCs for the multiple requests that the OSD
list resource performs, to reduce latency.

Fixes: #7830

History

#1 Updated by John Spray about 10 years ago

  • Subject changed from Bulk OSD state requests to Filter OSD list GET by ID set or host

#2 Updated by John Spray almost 10 years ago

  • Target version changed from v1.2 Backlog to v1.2-dev6

#3 Updated by John Spray almost 10 years ago

  • Assignee set to John Spray

#4 Updated by John Spray almost 10 years ago

  • Status changed from New to In Progress

#5 Updated by John Spray almost 10 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF