Bug 999737 - RFE: support lxc-enter-namespace with python bindings
Summary: RFE: support lxc-enter-namespace with python bindings
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt-python
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 02:09 UTC by QiangGuan
Modified: 2018-07-18 14:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.