From fe884aec5316167c1e8c39c2186c54543962ec6f Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Thu, 16 Oct 2025 15:04:54 +0530 Subject: [PATCH] mgr/dashboard: fix multisite wizard realm configuration mode 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 --- .../rgw-multisite-wizard.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts index 34773cddbf7..657b17e331e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts @@ -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]); -- 2.39.5