From: Aashish Sharma Date: Thu, 16 Oct 2025 09:34:54 +0000 (+0530) Subject: mgr/dashboard: fix multisite wizard realm configuration mode X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F65977%2Fhead;p=ceph.git 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 --- 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 34773cddbf7b..657b17e331ec 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]);