]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: fix zone update API forcing STANDARD storage class
authorAashish Sharma <Aashish.Sharma1@ibm.com>
Thu, 18 Sep 2025 10:59:52 +0000 (16:29 +0530)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Mon, 22 Sep 2025 12:15:49 +0000 (17:45 +0530)
commit9cf554ed9f7b3f3447fd81b8f1f434c0d269e5ee
tree34589f0c3b337bf69f564482cac2b9860786fcd2
parentbfba8a7ef7c4c1c6b0d8f46501ea71678e7cefd4
mgr/dashboard: fix zone update API forcing STANDARD storage class

The zone update REST API (`edit_zone`) always attempted to configure a
placement target for the `STANDARD` storage class, even when the request
was intended for a different storage class name.
This caused failures in deployments where `STANDARD` is not defined.

Changes:
Club add placement target and add storage class methods into one single
add_placement_targets_storage_class_zone method which takes the storage
class as a param as well alongside the rest of the placement params.

Fixes: https://tracker.ceph.com/issues/73105
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 135f3adb4973be493925839e946e7a5fc75e7d5c)
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts
src/pybind/mgr/dashboard/services/rgw_client.py