super();
this.editing = this.router.url.startsWith(`/pool/${URLVerbs.EDIT}`);
this.action = this.editing ? this.actionLabels.EDIT : this.actionLabels.CREATE;
- this.resource = $localize`volume`;
+ this.resource = $localize`File System`;
this.hosts = {
options: [],
messages: new SelectMessages({
flexGrow: 2
},
{
- name: $localize`Created`,
- prop: 'mdsmap.created',
+ name: $localize`Enabled`,
+ prop: 'mdsmap.enabled',
flexGrow: 2,
- pipe: this.cdDatePipe
+ cellTransformation: CellTemplate.checkIcon
},
{
- name: $localize`Enabled`,
- prop: 'mdsmap.enabled',
+ name: $localize`Created`,
+ prop: 'mdsmap.created',
flexGrow: 1,
- cellTransformation: CellTemplate.checkIcon
+ pipe: this.cdDatePipe,
+ cellTransformation: CellTemplate.timeAgo
}
];
this.tableActions = [
@classmethod
def get_capacity(cls) -> ClusterCapacity:
df = mgr.get('df')
- total_objects = 0
total_pool_bytes_used = 0
average_object_size = 0
total_data_pool_objects = 0
if pool_name in rgw_pools_data:
objects = pool['stats']['objects']
pool_bytes_used = pool['stats']['bytes_used']
- total_objects += objects
total_pool_bytes_used += pool_bytes_used
if pool_name.endswith('.data'):
total_data_pool_objects += objects
total_avail_bytes=df['stats']['total_avail_bytes'],
total_bytes=df['stats']['total_bytes'],
total_used_raw_bytes=df['stats']['total_used_raw_bytes'],
- total_objects=total_objects,
+ total_objects=total_data_pool_objects,
total_pool_bytes_used=total_pool_bytes_used,
average_object_size=average_object_size
)._asdict()