]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
cf095c6ebf5a093848b9eb7d42d6165a9d53b2a4
[ceph.git] /
1 <span *ngIf="metadataSyncInfo === 'no sync (zone is master)'">
2   <ul class="me-2">
3     <li><b>Status:</b></li>
4     <li>No Sync</li>
5   </ul>
6 </span>
7 <span *ngIf="metadataSyncInfo !== 'no sync (zone is master)'">
8   <ng-template #metadataSyncPopover>
9     <ul class="text-center">
10       <li *ngFor="let status of metadataSyncInfo.fullSyncStatus">
11         <span *ngIf="!status?.includes(metadataSyncInfo.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
12           <span *ngIf="status?.includes(':')">
13             <b>{{ status.split(':')[0] | titlecase }}</b>:{{ status.split(':')[1] | titlecase}}
14           </span>
15           <span *ngIf="!status?.includes(':')">
16             <b>{{ status | titlecase }}</b>
17           </span>
18         </span>
19         <span *ngIf="status?.includes('failed') || status?.includes('error')">
20             {{ status | titlecase }}
21         </span>
22       </li>
23     </ul>
24   </ng-template>
25   <ul class="me-2">
26     <ng-template #showMetadataStatus>
27       <a *ngIf="metadataSyncInfo.syncstatus !== 'Not Syncing From Zone'"
28          class="lead text-primary"
29          [ngbPopover]="metadataSyncPopover"
30          placement="top"
31          popoverClass="rgw-overview-card-popover"
32          i18n>{{ metadataSyncInfo.syncstatus | titlecase }}</a>
33       <a *ngIf="metadataSyncInfo.syncstatus === 'Not Syncing From Zone'"
34          class="lead text-primary"
35          [ngbPopover]="metadataSyncPopover"
36          placement="top"
37          popoverClass="rgw-overview-card-popover"
38          i18n>Not Syncing</a>
39     </ng-template>
40     <li><b>Status:</b></li>
41     <li *ngIf="metadataSyncInfo.syncstatus?.includes('failed') || metadataSyncInfo.syncstatus?.includes('error'); else showMetadataStatus">
42       <i class="text-danger"
43          [ngClass]="[icons.danger]"></i>
44       <a class="lead text-danger"
45          [ngbPopover]="metadataSyncPopover"
46          placement="top"
47          popoverClass="rgw-overview-card-popover"
48          i18n>Error</a></li>
49     <li class="mt-4 setwidth text-center"
50         *ngIf="metadataSyncInfo.syncstatus === 'preparing for full sync'">
51       <b>Full sync progress:</b>
52     <cd-usage-bar *ngIf="metadataSyncInfo.fullSync"
53                   [total]="metadataSyncInfo.fullSync[1]"
54                   [showMultisiteTooltip]="true"
55                   [used]="metadataSyncInfo.fullSync[0]"
56                   [title]="shards"
57                   decimals="2">
58     </cd-usage-bar></li>
59     <li class="mt-4 setwidth text-center"
60         *ngIf="metadataSyncInfo.incrementalSync">
61     <b>Sync Progress:</b>
62     <cd-usage-bar *ngIf="metadataSyncInfo.incrementalSync"
63                   [total]="metadataSyncInfo.totalShards"
64                   [showMultisiteTooltip]="true"
65                   [used]="metadataSyncInfo.usedShards"
66                   [title]="shards"
67                   decimals="2">
68     </cd-usage-bar></li>
69   </ul>
70 </span>