]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add node-proxy endpoints to the mgr
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 14 Sep 2023 15:41:32 +0000 (15:41 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:43:30 +0000 (14:43 +0000)
commitc1324cd821ef005474eddd5d009e499de1a51ee3
treebba10ee8efd176da5f4a156669e1a2c65d153d36
parent7544406be33a579b3d0c63ee4c78ae91b02dfb0e
mgr/cephadm: add node-proxy endpoints to the mgr

This adds 2 endpoints to the existing http agent endpoint:

- '/node_proxy/idrac': support POST requests only although this endpoint
  is intended for fetching the idrac credentials of a given node. As we pass
  sensitive details (ceph secret) I didn't want to pass it as a query parameter
  in the url. Passing it in a HTTP header is perhaps a better approach but we already
  do similar thing for endpoint '/data' (agent) so for consistency reason I stick to
  that.

- '/node_proxy/data': support GET and POST requests. A GET will return the
  aggregated data for all nodes within the cluster. node-proxy will use a POST
  request to that endpoint to push its collected data.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/cephadm.py
src/pybind/mgr/cephadm/agent.py