Bug 699677

Summary: polipo networkmanager integration doesnt reload dns
Product: [Fedora] Fedora Reporter: Joakim Verona <joakim>
Component: polipoAssignee: Bernard Johnson <bjohnson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: supercyper1
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: polipo-1.0.4.1-4.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-08 18:01:54 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:

Description Joakim Verona 2011-04-26 10:51:34 UTC
Description of problem:

Im using polipo as a web proxy on a laptop.
It needs to be restarted when nics change because the way polipo does dns lookups.

The networkmanager integration sends "reload" but it seems it must rather send "restart".



I attach a conversation with the polipo author
------------------------------------------------------
From: joakim
Subject: polipo and NetworManager
Newsgroups: gmane.comp.web.polipo.user
To: polipo-users <polipo-users.net>
Date: Tue, 22 Mar 2011 08:44:15 +0100 (5 weeks, 3 hours, 3 minutes ago)

Fedora provides some form of support between polipo and NetworkManager.
It doesn't work perfectly so I'm trying to debug.

NetworkManager has a rule for Polipo which does this:
	/sbin/chkconfig polipo && /sbin/service polipo reload || :

And the service script does this:

reload() {
    echo -n $"Reloading $prog: "
        killproc -p ${pidfile} $polipo -USR1
        RETVAL=$?
    echo
}

But my problem is that DNS lookups doesn't work after NIC
change. restarting the polipo service works though.

So:
- Should Polipo reset DNS on USR1 
Or:
- Fedora packaging be changed to do restart?

-- 
Joakim Verona
----------------------------------------------------------------
From: Juliusz Chroboczek <jch.fr>
Subject: Re: polipo and NetworManager
Newsgroups: gmane.comp.web.polipo.user
To: joakim
Cc: polipo-users <polipo-users.net>
Date: Fri, 25 Mar 2011 15:07:04 +0100 (4 weeks, 3 days, 20 hours ago)

>         killproc -p ${pidfile} $polipo -USR1

That's not correct -- SIGUSR1 only reloads the forbidden file, not the
config file.  Polipo should not have a reload action, only force-reload
(which should be a synonim of restart).

> - Should Polipo reset DNS on USR1 

Yes, I think it should.  This is a known limitation.

--jch
------------------------------------------------------------------




Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. use polipo as proxy
2. switch nic
3. notice that polipo dns fails
  
Actual results:


Expected results:


Additional info:

Comment 1 Fedora Admin XMLRPC Client 2011-07-20 04:28:29 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Update System 2011-09-27 18:40:49 UTC
polipo-1.0.4.1-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/polipo-1.0.4.1-4.fc16

Comment 3 Fedora Update System 2011-09-27 18:42:44 UTC
polipo-1.0.4.1-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/polipo-1.0.4.1-4.fc15

Comment 4 Fedora Update System 2011-09-27 18:44:31 UTC
polipo-1.0.4.1-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/polipo-1.0.4.1-4.fc14

Comment 5 Fedora Update System 2011-09-28 18:50:44 UTC
Package polipo-1.0.4.1-4.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing polipo-1.0.4.1-4.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/polipo-1.0.4.1-4.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-10-08 18:01:54 UTC
polipo-1.0.4.1-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-10-08 18:04:06 UTC
polipo-1.0.4.1-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-10-09 19:37:47 UTC
polipo-1.0.4.1-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.