이 구성이 있습니다
disk_setup:
/dev/vdb:
table_type: gpt,
layout: true
fs_setup:
- label: repo
filesystem: ext4
device: /dev/vdb1
partition: auto
이것은 내가 얻는 오류입니다.
2022-06-10 17:30:32,273 - util.py[WARNING]: Failed partitioning operation
No such function check_partition_gpt,_layout to call!
2022-06-10 17:30:32,274 - util.py[DEBUG]: Failed partitioning operation
No such function check_partition_gpt,_layout to call!
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 441, in get_dyn_func
return globals()[func_name](*func_args)
KeyError: 'check_partition_gpt,_layout'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 148, in handle
util.log_time(logfunc=LOG.debug,
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2472, in log_time
ret = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 821, in mkpart
if check_partition_layout(table_type, device, layout):
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 547, in check_partition_layout
found_layout = get_dyn_func(
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 446, in get_dyn_func
raise Exception("No such function %s to call!" % func_name) from e
Exception: No such function check_partition_gpt,_layout to call!
위의 오류를 어떻게 해결할 수 있나요?
내 로그 파일 상단에
- Cloud-init v. 21.4-0ubuntu1~20.04.1은 2022년 6월 10일 금요일 17:30:22 +0000에 "init-local"을 실행했습니다. 8.53초 상승.
답변1
이것은 gpt,
단순한 오타일 것입니다 gpt
.
변화:
disk_setup:
/dev/vdb:
table_type: gpt,
layout: true
도착하다:
disk_setup:
/dev/vdb:
table_type: gpt
layout: true
cloud-init
따라서 옵션에서 디스패치가 수행되는 방식 이므로 그러한 함수 호출은 없습니다 .