blob: 85a366d26819ccf893e4ca11fbc2ccf94cd88426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
osd_header = """
{:-^100}""".format('')
osd_component_titles = """
Type Path LV Size % of device"""
osd_reused_id = """
OSD id {id_: <55}"""
osd_component = """
{_type: <15} {path: <55} {size: <15} {percent:.2%}"""
osd_encryption = """
encryption: {enc: <15}"""
total_osds = """
Total OSDs: {total_osds}
"""
def filtered_devices(devices):
string = """
Filtered Devices:"""
for device, info in devices.items():
string += """
%s""" % device
for reason in info['reasons']:
string += """
%s""" % reason
string += "\n"
return string
ssd_volume_group = """
Solid State VG:
Targets: {target: <25} Total size: {total_lv_size: <25}
Total LVs: {total_lvs: <25} Size per LV: {lv_size: <25}
Devices: {block_db_devices}
"""
|