dnsproxy and python 2.7

Bug #715607 reported by Miika Komu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HIPL
Fix Committed
High
Unassigned

Bug Description

The DNS proxy is not using python APIs in way compatible with python 2.7. Can we support both 2.6 and 2.7?

hipserver # /etc/init.d/hipdnsproxy start
Starting : [ OK ]
[root@hipserver hipl]# Traceback (most recent call last):
  File "/usr/sbin/hipdnsproxy", line 1029, in <module>
    main(sys.argv)
  File "/usr/sbin/hipdnsproxy", line 1026, in main
    gp.doit(args)
  File "/usr/sbin/hipdnsproxy", line 731, in doit
    gp.write_local_hits_to_hosts()
  File "/usr/sbin/hipdnsproxy", line 535, in write_local_hits_to_hosts
    if not gp.getaddr(hit):
  File "/usr/sbin/hipdnsproxy", line 410, in getaddr
    r = h.getaddr(ahn)
AttributeError: Hosts instance has no attribute 'getaddr'

[root@hipserver hipl]# lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description: Fedora release 14 (Laughlin)
Release: 14
Codename: Laughlin
[root@hipserver hipl]# rpm -q --provides python | grep abi
python(abi) = 2.7
python-abi = 2.7

Related branches

Miika Komu (miika-iki)
Changed in hipl:
importance: Undecided → High
Miika Komu (miika-iki)
Changed in hipl:
status: New → Fix Committed
Revision history for this message
René Hummen (rene-hummen) wrote :

How was this issue fixed and when?

Revision history for this message
Miika Komu (miika-iki) wrote :

revno: 5686
fixes bug(s): https://launchpad.net/bugs/715607
committer: Miika Komu <email address hidden>
branch nick: trunk
timestamp: Tue 2011-02-22 14:50:07 +0200
message:
  Solved a problem with RPM packaged DNS proxy.

  Bug id #715607 describes a problem with RPM packaged DNS proxy:

  The DNS proxy is not using python APIs in way compatible with python
  2.7. Can we support both 2.6 and 2.7?
  ..

Revision history for this message
René Hummen (rene-hummen) wrote :

Did you check if the system hosts.py resembles the hosts.py in the HIPL respository?

Maybe we can use the pre-installed system files and make them a dependency for the hipdnsproxy instead of keeping own versions in the repository.

Revision history for this message
Miika Komu (miika-iki) wrote :

> Did you check if the system hosts.py resembles the hosts.py in the HIPL respository?

Yes, it's a modified version.

> Maybe we can use the pre-installed system files and make them a dependency for the hipdnsproxy instead of keeping own versions in the repository.

No we can't because HIPL hosts.py is a modified version of the system hosts.py.

Please note also the disclaimer in the commit:

"If you have a more elegant solution, feel free to contribute".

Revision history for this message
Diego Biurrun (diego-biurrun) wrote : Re: [hipl-dev] [Bug 715607] Re: dnsproxy and python 2.7

On Tue, Mar 01, 2011 at 02:11:26PM +0000, Miika Komu wrote:
> > Did you check if the system hosts.py resembles the hosts.py in the
> HIPL respository?
>
> Yes, it's a modified version.
>
> > Maybe we can use the pre-installed system files and make them a
> dependency for the hipdnsproxy instead of keeping own versions in the
> repository.
>
> No we can't because HIPL hosts.py is a modified version of the system
> hosts.py.

Samuel told me that newer versions of hosts.py should likely work again
with dnsproxy. Somebody should doublecheck this. Getting rid of this
embedded library copy would be ideal.

Diego

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.