Bug 68437
| Summary: | up2date crashes when proxy support is activated. | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Public Beta | Reporter: | ntk |
| Component: | up2date | Assignee: | Adrian Likins <alikins> |
| Status: | CLOSED RAWHIDE | QA Contact: | Jay Turner <jturner> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | limbo | CC: | aleksey, gafton, leenookx, m.a.young, mihai.ibanescu, srevivo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-07-25 14:35:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 67217 | ||
Fixed in up2date-2.9.13-7.x.9 Are you sure you typed the version right? As far as I undrestand, up2date-2.9.13-7.x.9 is what already in Limbo (and has this problem). You're right, I'm wrong. up2date-2.9.15-7.x.9, we'll see look at making it public. *** Bug 69526 has been marked as a duplicate of this bug. *** With rhnlib-0.8-8 up2date-2.9.17-7.x.9 up2date-gnome-2.9.17-7.x.9 I get the
following error when I try to run any up2date command with proxies turned on
(including up2date-config so I can't turn proxies off again)
Traceback (most recent call last):
File "/usr/sbin/up2date-nox", line 17, in ?
from up2date_client import rpcServer
File "/usr/share/rhn/up2date_client/rpcServer.py", line 7, in ?
import up2dateAuth
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ?
import rpmSource
File "/usr/share/rhn/up2date_client/rpmSource.py", line 113, in ?
psc = PackageSourceConfig()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 83, in __init__
self.serverSettings = ServerSettings()
File "/usr/share/rhn/up2date_client/rpmSource.py", line 62, in __init__
if cfg.readEntry("enableProxy") and rpcServer.getProxySetting():
AttributeError: 'module' object has no attribute 'getProxySetting'
I get the same error with up2date*2.9.20-7.x.9 and rhnlib-0.8-9 . hmm. boggle. Seems to work fine for me, and code looks fine at first glance. *ponder...* rpcServer is imported. rpcServer.py definately has a get getProxySetting Must be a scope issue with rpcServer blah,blah,blah, which import rpcServer again Why it seems to work fine for me I have no idea, investigating... duh, it helps if I enableProxy to even get to this code path... duplicated it, investigating okay, think I have a fix for this. I moved getProxySettings to somewhere slightly more general, so I dont get recursive imports should be in 2.9.22 or higher *** Bug 69337 has been marked as a duplicate of this bug. *** I can now update named packages with up2date-2.9.27-7.x.9. (I get Not Found if I try up2date -l but I guess that is a missing file on the server). M.A.Young, can you please file another bug with the Not Found error please? Misa: Not Found error submitted as bug 69791 Fix confirmed with up2date-2.9.46-1. |
From Bugzilla Helper: User-Agent: Mozilla/4.79 [en] (Windows NT 5.0; U) Description of problem: I enable proxy support in up2date configuration. After this I see this : [root@gk /etc/sysconfig/rhn]# up2date & [1] 3098 [root@gk /etc/sysconfig/rhn]# Traceback (most recent call last): File "/usr/sbin/up2date", line 17, in ? from up2date_client import rpcServer File "/usr/share/rhn/up2date_client/rpcServer.py", line 7, in ? import up2dateAuth File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ? import rpmSource File "/usr/share/rhn/up2date_client/rpmSource.py", line 113, in ? psc = PackageSourceConfig() File "/usr/share/rhn/up2date_client/rpmSource.py", line 83, in __init__ self.serverSettings = ServerSettings() File "/usr/share/rhn/up2date_client/rpmSource.py", line 62, in __init__ if cfg.readEntry("enableProxy") and rpcServer.getProxySetting(): NameError: global name 'rpcServer' is not defined [1]+ Exit 1 up2date _________________________________ Without proxy enabled seems works fine, but I can't check because my server must use proxy to connect to internet. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. type the following command "up2date --configure" 2. Just enable proxy support in the menu 3. start the up2date - and you will see the crash Actual Results: Program crashes when it starts Expected Results: Must work and communicate trough proxy Additional info: I make upgrade from RH 7.3 to RH 8.0 beta [root@gk /etc/sysconfig/rhn]# cat /etc/redhat-release Red Hat Linux release 7.3.92 (Limbo) [root@gk /etc/sysconfig/rhn]# rpm -qa | grep up2date up2date-2.9.13-7.x.9 [root@gk /etc/sysconfig/rhn]# rpm -qa | grep py python-xmlrpc-1.5.1-7.x.3 rpm-python-4.1-0.34 python-devel-2.2.1-10 rpm404-python-4.0.4-8x.24 python-2.2.1-10 python-popt-0.8.9-8.x.9 pyOpenSSL-0.5pre-1 python-clap-1.0.0-6 ___________________________________________ [root@gk /etc/sysconfig/rhn]# up2date & [1] 3098 [root@gk /etc/sysconfig/rhn]# Traceback (most recent call last): File "/usr/sbin/up2date", line 17, in ? from up2date_client import rpcServer File "/usr/share/rhn/up2date_client/rpcServer.py", line 7, in ? import up2dateAuth File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ? import rpmSource File "/usr/share/rhn/up2date_client/rpmSource.py", line 113, in ? psc = PackageSourceConfig() File "/usr/share/rhn/up2date_client/rpmSource.py", line 83, in __init__ self.serverSettings = ServerSettings() File "/usr/share/rhn/up2date_client/rpmSource.py", line 62, in __init__ if cfg.readEntry("enableProxy") and rpcServer.getProxySetting(): NameError: global name 'rpcServer' is not defined [1]+ Exit 1 up2date