nova_libvirt restart cause vm restart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
Enviroment information:
Rocky Linux 9.3
koll-ansible version is 17.1.0
openstack_release: "master"
--------------
when nova_libvirt restart, the vm will restart.
May be the qemu-kvm process ppid is not 1, is nova_libvirt containerd-shim process
UID PID PPID PGID SID C STIME TTY TIME CMD
42436 1531817 926797 1531816 1531816 1 Sep05 ? 00:20:34 /usr/libexec/
UID PID PPID PGID SID C STIME TTY TIME CMD
root 926797 1 926797 63101 0 Sep05 ? 00:00:12 /usr/bin/
89aea1c0f3710f9
If an vm's process(qemu-kvm) ppid is not 1(systemd)
nova_libvirt container resetart will cause vm restart
in libvirt source code like this
https:/
create a vm, libvirt will use setsid syscall to change the qemu-kvm process ppid to 1
I find releated information in https:/
But in kolla-ansible version 17.1.0
/sys/fs/cgroup is already map to nova_libvirt container