Bug 808071 - [RFE] backport --controller from upstream
Summary: [RFE] backport --controller from upstream
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.3
Hardware: All
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: virt-mgr-maint
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 794801 840699
TreeView+ depends on / blocked
 
Reported: 2012-03-29 13:32 UTC by Paolo Bonzini
Modified: 2015-09-28 02:28 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 794801
Environment:
Last Closed: 2012-07-23 20:00:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

Comment 2 Cole Robinson 2012-03-29 20:47:54 UTC
Laszlo, you can probably just rpm -Uvh --force the rpm and it will work. If not you might need to just delete the installed pyc files, then next run of virt-install will just regenerate them. The actual code doesn't have any hard dep on a newer python version.

Comment 3 Laszlo Ersek 2012-03-30 08:09:07 UTC
Unfortunately, it didn't work.

I tried "rpm -Uvh --force" first, but it kept complaining about "python(abi) = 2.7". Then I also added --nodeps (which allowed rpm to install the package), plus I removed all pyc and pyo files under:

- /usr/lib/python2.7/site-packages/virtconv
- /usr/lib/python2.7/site-packages/virtconv/parsers
- /usr/lib/python2.7/site-packages/virtinst

When I start virt-install, it says:

    Traceback (most recent call last):
      File "/usr/bin/virt-install", line 33, in <module>
        import virtinst
    ImportError: No module named virtinst

python-2.6 most probably doesn't look for the required files under /usr/lib/python2.7/site-packages. Can we change that with an environment variable? (I really don't want to move around or symlink files at this point.) Thanks.

Comment 6 Cole Robinson 2012-04-02 21:20:06 UTC
> 
> python-2.6 most probably doesn't look for the required files under
> /usr/lib/python2.7/site-packages. Can we change that with an environment
> variable? (I really don't want to move around or symlink files at this point.)
> Thanks.

For reference, you can see the system python path with

  python -c 'import sys; print sys.path'

You can alter the python path like

  PYTHONPATH=/usr/lib/python2.7/site-packages python -c 'import virtinst'

Regarding this bug though, it's pretty late in the cycle to backport what is essentially a new feature. Wouldn't be impossible though provided RHEL process isn't prohibitive, dallan what do you think?

Comment 11 RHEL Program Management 2012-07-10 08:44:06 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2012-07-11 01:59:27 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.


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