]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | <ng-template #usageNotAvailableTooltipTpl> |
2 | <ng-container i18n>Only available for RBD images with <strong>fast-diff</strong> enabled</ng-container> | |
3 | </ng-template> | |
4 | ||
e306af50 | 5 | <tabset *ngIf="selection"> |
11fdf7f2 TL |
6 | <tab i18n-heading |
7 | heading="Details"> | |
8 | <table class="table table-striped table-bordered"> | |
9 | <tbody> | |
10 | <tr> | |
11 | <td i18n | |
9f95a23c | 12 | class="bold w-25">Name</td> |
e306af50 | 13 | <td class="w-75">{{ selection.name }}</td> |
11fdf7f2 TL |
14 | </tr> |
15 | <tr> | |
16 | <td i18n | |
9f95a23c | 17 | class="bold">Pool</td> |
e306af50 | 18 | <td>{{ selection.pool_name }}</td> |
11fdf7f2 TL |
19 | </tr> |
20 | <tr> | |
21 | <td i18n | |
9f95a23c | 22 | class="bold">Data Pool</td> |
e306af50 | 23 | <td>{{ selection.data_pool | empty }}</td> |
11fdf7f2 TL |
24 | </tr> |
25 | <tr> | |
26 | <td i18n | |
9f95a23c | 27 | class="bold">Created</td> |
e306af50 | 28 | <td>{{ selection.timestamp | cdDate }}</td> |
11fdf7f2 TL |
29 | </tr> |
30 | <tr> | |
31 | <td i18n | |
9f95a23c | 32 | class="bold">Size</td> |
e306af50 | 33 | <td>{{ selection.size | dimlessBinary }}</td> |
11fdf7f2 TL |
34 | </tr> |
35 | <tr> | |
36 | <td i18n | |
9f95a23c | 37 | class="bold">Objects</td> |
e306af50 | 38 | <td>{{ selection.num_objs | dimless }}</td> |
11fdf7f2 TL |
39 | </tr> |
40 | <tr> | |
41 | <td i18n | |
9f95a23c | 42 | class="bold">Object size</td> |
e306af50 | 43 | <td>{{ selection.obj_size | dimlessBinary }}</td> |
11fdf7f2 TL |
44 | </tr> |
45 | <tr> | |
46 | <td i18n | |
9f95a23c TL |
47 | class="bold">Features</td> |
48 | <td> | |
e306af50 | 49 | <span *ngFor="let feature of selection.features_name"> |
9f95a23c | 50 | <span class="badge badge-dark mr-2">{{ feature }}</span> |
11fdf7f2 TL |
51 | </span> |
52 | </td> | |
53 | </tr> | |
54 | <tr> | |
55 | <td i18n | |
9f95a23c TL |
56 | class="bold">Provisioned</td> |
57 | <td> | |
e306af50 | 58 | <span *ngIf="selection.features_name?.indexOf('fast-diff') === -1"> |
9f95a23c | 59 | <span class="form-text text-muted" |
11fdf7f2 TL |
60 | [tooltip]="usageNotAvailableTooltipTpl" |
61 | placement="right" | |
62 | i18n>N/A</span> | |
63 | </span> | |
e306af50 TL |
64 | <span *ngIf="selection.features_name?.indexOf('fast-diff') !== -1"> |
65 | {{ selection.disk_usage | dimlessBinary }} | |
11fdf7f2 TL |
66 | </span> |
67 | </td> | |
68 | </tr> | |
69 | <tr> | |
70 | <td i18n | |
9f95a23c TL |
71 | class="bold">Total provisioned</td> |
72 | <td> | |
e306af50 | 73 | <span *ngIf="selection.features_name?.indexOf('fast-diff') === -1"> |
9f95a23c | 74 | <span class="form-text text-muted" |
11fdf7f2 TL |
75 | [tooltip]="usageNotAvailableTooltipTpl" |
76 | placement="right" | |
77 | i18n>N/A</span> | |
78 | </span> | |
e306af50 TL |
79 | <span *ngIf="selection.features_name?.indexOf('fast-diff') !== -1"> |
80 | {{ selection.total_disk_usage | dimlessBinary }} | |
11fdf7f2 TL |
81 | </span> |
82 | </td> | |
83 | </tr> | |
84 | <tr> | |
85 | <td i18n | |
9f95a23c | 86 | class="bold">Striping unit</td> |
e306af50 | 87 | <td>{{ selection.stripe_unit | dimlessBinary }}</td> |
11fdf7f2 TL |
88 | </tr> |
89 | <tr> | |
90 | <td i18n | |
9f95a23c | 91 | class="bold">Striping count</td> |
e306af50 | 92 | <td>{{ selection.stripe_count }}</td> |
11fdf7f2 TL |
93 | </tr> |
94 | <tr> | |
95 | <td i18n | |
9f95a23c TL |
96 | class="bold">Parent</td> |
97 | <td> | |
e306af50 TL |
98 | <span *ngIf="selection.parent">{{ selection.parent.pool_name }}<span *ngIf="selection.parent.pool_namespace">/{{ selection.parent.pool_namespace }}</span>/{{ selection.parent.image_name }}@{{ selection.parent.snap_name }}</span> |
99 | <span *ngIf="!selection.parent">-</span> | |
11fdf7f2 TL |
100 | </td> |
101 | </tr> | |
102 | <tr> | |
103 | <td i18n | |
9f95a23c | 104 | class="bold">Block name prefix</td> |
e306af50 | 105 | <td>{{ selection.block_name_prefix }}</td> |
11fdf7f2 TL |
106 | </tr> |
107 | <tr> | |
108 | <td i18n | |
9f95a23c | 109 | class="bold">Order</td> |
e306af50 | 110 | <td>{{ selection.order }}</td> |
11fdf7f2 | 111 | </tr> |
f6b5b4d7 TL |
112 | <tr> |
113 | <td i18n | |
114 | class="bold">Format Version</td> | |
115 | <td>{{ selection.image_format }}</td> | |
116 | </tr> | |
11fdf7f2 TL |
117 | </tbody> |
118 | </table> | |
119 | </tab> | |
120 | <tab i18n-heading | |
121 | heading="Snapshots"> | |
e306af50 TL |
122 | <cd-rbd-snapshot-list [snapshots]="selection.snapshots" |
123 | [featuresName]="selection.features_name" | |
124 | [poolName]="selection.pool_name" | |
125 | [namespace]="selection.namespace" | |
126 | [rbdName]="selection.name"></cd-rbd-snapshot-list> | |
11fdf7f2 TL |
127 | </tab> |
128 | <tab i18n-heading | |
129 | heading="Configuration"> | |
e306af50 | 130 | <cd-rbd-configuration-table [data]="selection['configuration']"></cd-rbd-configuration-table> |
11fdf7f2 | 131 | </tab> |
f91f0fd5 TL |
132 | <tab i18n-heading |
133 | heading="Performance"> | |
134 | <cd-grafana [grafanaPath]="rbdDashboardUrl" | |
135 | uid="YhCYGcuZz" | |
136 | grafanaStyle="one"> | |
137 | </cd-grafana> | |
138 | </tab> | |
11fdf7f2 TL |
139 | </tabset> |
140 | ||
141 | <ng-template | |
142 | #poolConfigurationSourceTpl | |
143 | let-row="row" | |
144 | let-value="value"> | |
145 | <ng-container *ngIf="+value; else global"> | |
9f95a23c TL |
146 | <strong i18n |
147 | i18n-tooltip | |
148 | tooltip="This setting overrides the global value">Image</strong> | |
11fdf7f2 | 149 | </ng-container> |
9f95a23c TL |
150 | <ng-template #global> |
151 | <span i18n | |
152 | i18n-tooltip | |
153 | tooltip="This is the global value. No value for this option has been set for this image.">Global</span> | |
154 | </ng-template> | |
11fdf7f2 | 155 | </ng-template> |