Bug 999737

Summary: RFE: support lxc-enter-namespace with python bindings
Product: [Community] Virtualization Tools Reporter: QiangGuan <hzguanqiang>
Component: libvirt-pythonAssignee: Libvirt Maintainers <libvirt-maint>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, jtomko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description QiangGuan 2013-08-22 02:09:15 UTC
Description of problem:

In the newest version of libvirt, lxc-enter-namespace is supported by virsh command. But it seems that it's the only way to use it. And there is no API exposed via python layer.

Version-Release number of selected component (if applicable):
The newest version still exists the problem

How reproducible:
Use python to import all libvirt-related packages and see details by dir() function. No whole API for lxc-enter-namespace is provided.



Steps to Reproduce:
1. Use an Interactive python:
import libvirt
import libvirt_lxc
import libvirtmod
import libvirtmod_lxc
2.
dir(libvirt)
dir(libvirt_lxc)
dir(libvirtmod)
dir(libvirtmod_lxc)
3.
search lxc from the output of dir(..) above. 

Actual results:
'lxcOpenNamespace'
'virDomainLxcOpenNamespace'

Expected results:
A whole API for 'lxc-enter-namespace' function is exposed.

Additional info:

Comment 1 Cole Robinson 2016-04-11 17:07:36 UTC
FWIW this is still relevant, the LXCEnterNamespace wrapper isn't implemented for the python bindings