microceph icon indicating copy to clipboard operation
microceph copied to clipboard

Support to configure multiple configs in single go for daemon API

Open hemanthnakkina opened this issue 8 months ago • 2 comments

Enhancement

Trying to access microceph daemon API using a python client similar to [1]

Currently multiple configs cannot be updated in single API call and have to run PUT /1.0/configs API call multiple times one for each config [2] which results in restart of corresponding service for each API call.

This is an enhacement request to export API call to accept multiple configs in a single go. The use case for this is to configure all keystone related configs for radosgw. Currently there are atleast 12 configs to set this integration which restarts radosgw 12 times.

[1] https://github.com/canonical/charm-microceph/pull/83/files#diff-29c083e8f4fd7ea8a9d6d5d47ec84ca0423cca647a63f51678edb615e7c5fe1b [2] https://github.com/canonical/microceph/blob/main/microceph/api/configs.go#L59

What version of MicroCeph are you using ?

reef/stable

What are the steps to reproduce this issue ?

  1. Deploy microceph
  2. Enable rgw service
  3. Use the following python script to connect to microceph daemon API https://pastebin.canonical.com/p/NhTzvqP52P/

hemanthnakkina avatar Jun 11 '24 05:06 hemanthnakkina