[TEST] Question of state change from running to suppend for LXC guest

Hi, LXC guest can't change state from running to suspend, that is to say, the state changes isn't supported by the container hypervisor. So some test cases don't have to update for LXC support such as HostedDependency.03_enabledstate.py, right? Below is the error report if I do so: *** libvir: error : this function is not supported by the hypervisor: virDomainSuspend error: Failed to suspend domain hd_domain *** Best, Regards Daisy (运国莲) VSM Team, China Systems & Technology Labs (CSTL) E-mail: yunguol@cn.ibm.com TEL: (86)-21-60922144 Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203

Guo Lian Yun wrote:
Hi,
LXC guest can't change state from running to suspend, that is to say, the state changes isn't supported by the container hypervisor. So some test cases don't have to update for LXC support such as HostedDependency.03_enabledstate.py, right?
That's correct - LXC support in libvirt is still very new, so not all of features are be supported yet. There will be a fair number of tests that we cannot convert until support is available.
Below is the error report if I do so:
*** libvir: error : this function is not supported by the hypervisor: virDomainSuspend error: Failed to suspend domain hd_domain ***
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

GY> LXC guest can't change state from running to suspend, that is to GY> say, the state changes isn't supported by the container GY> hypervisor. Correct, that's not a supported feature by the LXC kernel changes yet. GY> So some test cases don't have to update for LXC support such as GY> HostedDependency.03_enabledstate.py, right? It's not an intended feature yet, so it should be a SKIP on LXC. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com
participants (3)
-
Dan Smith
-
Guo Lian Yun
-
Kaitlin Rupert