oneclickvirt/pve

关于 LXC API有关apparmor的操作接口可能存在的错误

Closed this issue · 3 comments

在使用PVEAPI时,执行挂起等有关apparmor的操作可能会出现错误。部分错误可以通过重启解决,但仍有部分API功能错误,未完全检测所有接口。

目前已知报错信息:

lxc-checkpoint: 104: ../src/lxc/criu.c: do_dump: 1297 dump failed with 1
lxc-checkpoint: 104: ../src/lxc/criu.c: do_dump: 1311 criu output: 
lxc-checkpoint: 104: ../src/lxc/tools/lxc_checkpoint.c: checkpoint: 182 Checkpointing 104 failed
TASK ERROR: command 'lxc-checkpoint -n 104 -s -D /var/lib/vz/dump' failed: exit code 1
run_apparmor_parser: 916 Failed to run apparmor_parser on "/var/lib/lxc/101/apparmor/lxc-101_<-var-lib-lxc>": apparmor_parser: Unable to replace "lxc-101_</var/lib/lxc>".  Profile doesn't conform to protocol
apparmor_prepare: 1088 Failed to load generated AppArmor profile
lxc_init: 876 Failed to initialize LSM
__lxc_start: 2027 Failed to initialize container "101"
TASK ERROR: startup for container '101' failed

宿主机系统是?还有宿主机架构是x86_64还是ARM?

image
image

感觉上是apparmor的配置文件有问题,但我目前没法复现你的BUG,如果API行不通建议使用pct命令