]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/util/templates.py
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / ceph-volume / ceph_volume / util / templates.py
1
2 osd_header = """
3 {:-^100}""".format('')
4
5
6 osd_component_titles = """
7 Type Path LV Size % of device"""
8
9
10 osd_reused_id = """
11 OSD id {id_: <55}"""
12
13
14 osd_component = """
15 {_type: <15} {path: <55} {size: <15} {percent}%"""
16
17
18 total_osds = """
19 Total OSDs: {total_osds}
20 """
21
22
23 def filtered_devices(devices):
24 string = """
25 Filtered Devices:"""
26 for device, info in devices.items():
27 string += """
28 %s""" % device
29
30 for reason in info['reasons']:
31 string += """
32 %s""" % reason
33
34 string += "\n"
35 return string
36
37
38 ssd_volume_group = """
39 Solid State VG:
40 Targets: {target: <25} Total size: {total_lv_size: <25}
41 Total LVs: {total_lvs: <25} Size per LV: {lv_size: <25}
42 Devices: {block_db_devices}
43 """
44
45