hzguanqiang@corp.netease.com
2013-Aug-21 09:43 UTC
[libvirt-users] lxc-enter-namespace not supportted with python?
Hi, Daniel. It seems that the virsh command 'lxc-enter-namespace' encapsulates several functions just as 'virDomainLxcOpenNamespace', 'virDomainGetSecurityLabel', 'virDomainLxcEnterSecurityLabel' , 'virDomainLxcEnterNamespace', 'virFork', etc. And I found only 'virDomainLxcOpenNamespace' is provided by python package 'libvirtmod_lxc '. Does this mean that 'lxc-enter-namespace' can only be used through virsh command and not supported with python? Thanks ------------------ Best regards! GuanQiang 2013-08-21
Daniel P. Berrange
2013-Aug-21 09:51 UTC
Re: [libvirt-users] lxc-enter-namespace not supportted with python?
On Wed, Aug 21, 2013 at 05:43:23PM +0800, hzguanqiang@corp.netease.com wrote:> Hi, Daniel. > > It seems that the virsh command 'lxc-enter-namespace' encapsulates several functions just as 'virDomainLxcOpenNamespace', 'virDomainGetSecurityLabel', 'virDomainLxcEnterSecurityLabel' , 'virDomainLxcEnterNamespace', 'virFork', etc. And I found only 'virDomainLxcOpenNamespace' is provided by python package 'libvirtmod_lxc '. Does this mean that 'lxc-enter-namespace' can only be used through virsh command and not supported with python?Hmm, yes, we have not exposed this API via python layer, which is a mistake. Please file a bug about it, or if you feel you have the skills, write a patch to address it. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Possibly Parallel Threads
- Re: How can I run command in containers on the host?
- How can I run command in containers on the host?
- why CPU pinning doesn't take effect when using lxc-enter-namespace to run an application
- Re: why CPU pinning doesn't take effect when using lxc-enter-namespace to run an application
- how to install libvirt-python