Red Hat Bugzilla – Bug 963514
Cannot create snapshot ,Unable to find cgroup for vm
Last modified: 2013-05-23 05:08:44 EDT
Description of problem:
After cgconfig service restarted and libvirtd restarted ,could not create snapshot for vm.
Version-Release number of selected component (if applicable):
# uname -r
# rpm -q libvirt
# rpm -q qemu-kvm-rhev
Steps to Reproduce:
1.service cgconfig restart
2.service libvirtd restart
3.virsh snapshot-create-as testvm s1 --disk-only
error: internal error Unable to find cgroup for cho2013051600036
2013-05-16 02:53:02.062+0000: 16157: error : qemuDomainSnapshotCreateDiskActive:11299 : internal error Unable to find cgroup for testvm
in /cgroup there no cgroup config for testvm.
create snapshot success.
cho2013051600036 is another vm's name ,the error message is:
error: internal error Unable to find cgroup for testvm
I don't think restarting cgconfig service is something we want to support unless there's a real reason for doing that. If you restart cgconfig service, all cgroups are removed and all tasks are moved to the root cgroup.
I'm closing this as not a bug, but feel free to reopen if there is a real situation in which cgconfig service needs to be restarted.
If anything this is really broken behaviour of cgconfig. Nothing should ever unilaterally delete the cgroups hierarchy once the system has booted.