]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix multisite wizard realm configuration mode
authorAashish Sharma <Aashish.Sharma1@ibm.com>
Thu, 16 Oct 2025 09:34:54 +0000 (15:04 +0530)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Thu, 16 Oct 2025 10:32:48 +0000 (16:02 +0530)
The option to select an existing realm for replication is not coming up in the wizard even though a realm created and eligible for replication.

Fixes: https://tracker.ceph.com/issues/73563
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts

index 34773cddbf7b4363358072db697bdb6f95fb13bb..657b17e331ecbc50007a2950c2e8de691f15c499 100644 (file)
@@ -37,6 +37,11 @@ interface DaemonStats {
   };
 }
 
+interface RealmsInfo {
+  default_info: string;
+  realms: string[];
+}
+
 interface EndpointInfo {
   hostname: string;
   port: number;
@@ -153,8 +158,8 @@ export class RgwMultisiteWizardComponent extends BaseModal implements OnInit {
       this.stepsToSkip[step.label] = false;
     });
 
-    this.rgwRealmService.list().subscribe((realms: string[]) => {
-      this.realmList = realms;
+    this.rgwRealmService.list().subscribe((realmsInfo: RealmsInfo) => {
+      this.realmList = realmsInfo?.realms || [];
       this.showConfigType = this.realmList.length > 0;
       if (this.showConfigType) {
         this.multisiteSetupForm.get('selectedRealm')?.setValue(this.realmList[0]);