(click)="enableRgwModule()">
Enable RGW Module</a>
</cd-alert-panel>
+ <cd-alert-panel *ngIf="restartGatewayMessage"
+ type="warning"
+ spacingClass="mb-3"
+ i18n>Please restart all Ceph Object Gateway instances in all zones to ensure consistent multisite configuration updates.
+ <a class="text-decoration-underline"
+ routerLink="/services">
+ Cluster->Services</a>
+ </cd-alert-panel>
<cd-table-actions class="btn-group mb-4 me-2"
[permission]="permission"
[selection]="selection"
deleteTitle: string = 'Delete';
disableExport = true;
rgwModuleStatus: boolean;
+ restartGatewayMessage = false;
rgwModuleData: string | any[] = [];
constructor(
this.realmIds = [];
this.zoneIds = [];
this.getDisableMigrate();
+ this.rgwDaemonService.list().subscribe((data: any) => {
+ const realmName = data.map((item: { [x: string]: any }) => item['realm_name']);
+ if (
+ this.defaultRealmId != '' &&
+ this.defaultZonegroupId != '' &&
+ this.defaultZoneId != '' &&
+ realmName.includes('')
+ ) {
+ this.restartGatewayMessage = true;
+ }
+ });
return allNodes;
}
NotificationType.success,
$localize`${this.actionLabels.MIGRATE} done successfully`
);
- this.notificationService.show(NotificationType.success, `Daemon restart scheduled`);
this.submitAction.emit();
this.activeModal.close();
},
<li *ngFor="let status of zone.fullSyncStatus">
<span *ngIf="!status?.includes(zone.name) && !status?.includes(zone.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
<span *ngIf="status?.includes(':')">
- <b>{{ status.split(':')[0] | titlecase }}</b>:{{ status.split(':')[1] | titlecase}}
+ <b>{{ status.split(': ')[0] | titlecase }}</b>:{{ status.split(': ')[1] | titlecase}}
</span>
<span *ngIf="!status?.includes(':')">
<b>{{ status | titlecase }}</b>
for pool in df['pools']:
pool_name = str(pool['name'])
if pool_name in rgw_pools_data:
- objects = pool['stats']['objects']
- pool_bytes_used = pool['stats']['bytes_used']
- total_pool_bytes_used += pool_bytes_used
if pool_name.endswith('.data'):
+ objects = pool['stats']['objects']
+ pool_bytes_used = pool['stats']['bytes_used']
+ total_pool_bytes_used += pool_bytes_used
total_data_pool_objects += objects
replica = rgw_pools_data[pool_name]
total_data_pool_bytes_used += pool_bytes_used / replica