| Summary: | host installation failed - vds_bootstrap imports utils from yum [for RHEL 5.8 / VDSM 2.2.x] | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Pavel Stehlik <pstehlik> | |
| Component: | vdsm22 | Assignee: | Federico Simoncelli <fsimonce> | |
| Status: | CLOSED ERRATA | QA Contact: | Pavel Stehlik <pstehlik> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 5.7 | CC: | abaron, acathrow, andriusb, bazulay, cpelland, danken, dpaikov, fsimonce, iheim, kgrainge, rdassen, sgordon, ykaul | |
| Target Milestone: | rc | Keywords: | Regression, Reopened, ZStream | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | rhev-m-2.2.9.1 | Doc Type: | Bug Fix | |
| Doc Text: |
Attaching a Red Hat Enterprise Linux 5.7 host to a Red Hat Enterprise Virtualization Manager failed because when the bootstrap process imported the utilities, installing utils from yum overwrote the VDSM directory from the current Python path. The VDSM directory is now added to the current Python path so you can attach the 5.7 host successfully.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 726941 (view as bug list) | Environment: | ||
| Last Closed: | 2012-02-21 04:53:02 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 726937, 726941, 729324 | |||
|
Comment 2
Miroslav Suchý
2011-07-29 12:11:41 UTC
I agree on the fact that we should move to %{python_sitelib}/vdsm.
Nevertheless we won't face this problem anyway because the imported modules never change sys.path.
Also your plugin is not immune by this very same problem:
# mkdir rhnplugin-test && cd rhnplugin-test
# touch output.py
# python
>>> import os, sys, yum
>>> sys.path.append(os.getcwd())
>>> my = yum.YumBase()
>>> cu = my.pkgSack.searchNevra(name='coreutils')
Plugin "rhnplugin" can't be imported
Loaded plugins: product-id
BZ#726643 Force VDSM_DIR in sys.path Change-Id: I9d951b1263bac52c350fe02012a5cfeeef48ba70 http://gerrit.usersys.redhat.com/766 Checked on sm109.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Attaching a Red Hat Enterprise Linux 5.7 host to a Red Hat Enterprise Virtualization manager failed because when the bootstrap process imported the utilities, installing utils from yum overwrote the VDSM directory from the current Python path. The VDSM directory is now added to the current Python path so you can attach the 5.7 host successfully.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1 +1 @@
-Attaching a Red Hat Enterprise Linux 5.7 host to a Red Hat Enterprise Virtualization manager failed because when the bootstrap process imported the utilities, installing utils from yum overwrote the VDSM directory from the current Python path. The VDSM directory is now added to the current Python path so you can attach the 5.7 host successfully.+Attaching a Red Hat Enterprise Linux 5.7 host to a Red Hat Enterprise Virtualization Manager failed because when the bootstrap process imported the utilities, installing utils from yum overwrote the VDSM directory from the current Python path. The VDSM directory is now added to the current Python path so you can attach the 5.7 host successfully.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0169.html |