Bug 838354 - sendmail Network Manager dispatcher script blocks vpn-down status for other scripts
Summary: sendmail Network Manager dispatcher script blocks vpn-down status for other s...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: sendmail
Version: 16
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-08 17:29 UTC by mikey
Modified: 2013-02-14 01:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 01:24:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
01-statuschecker (398 bytes, text/plain)
2012-07-08 17:29 UTC, mikey
no flags Details
10-sendmail (111 bytes, text/plain)
2012-07-08 17:31 UTC, mikey
no flags Details

Description mikey 2012-07-08 17:29:18 UTC
Created attachment 596905 [details]
01-statuschecker

Description of problem:

Scripts put into /etc/NetworkManager/dispatcher.d/ don't function properly when 10-sendmail is present. Status vpn-down is not detected when a VPN is disconnected from NetworkManager, but does for vpn-up (I've not tested for other statuses). The same script behaves as expected when 10-sendmail is removed.

I've attached a simple script for testing along with my copy of 10-sendmail which has the problem. 


Version-Release number of selected component (if applicable): sendmail-8.14.5-11.fc16.x86_64


How reproducible: always


Steps to Reproduce:
1. Copy 01-statuschecker to /etc/NetworkManager/dispatcher.d/
2. Make executable
3. Make sure 10-sendmail is also present
4. Connect to a VPN with NetworkManager
5. Disconnect from a VPN with NetworkManager
  
Actual results:

StatusChecker - VPN up triggered

Expected results:

StatusChecker - VPN up triggered
StatusChecker - VPN down trigger
ed

Additional info:

Comment 1 mikey 2012-07-08 17:31:15 UTC
Created attachment 596906 [details]
10-sendmail

Buggy 10-sendmail included in my version of sendmail.

Comment 2 Jaroslav Škarvada 2012-07-09 09:58:09 UTC
I am unable to reproduce (tried with openvpn):
# grep statuschecker /var/log/messages
Jul  9 13:39:37 localhost dbus-daemon[1071]: statuschecker: StatusChecker - VPN up triggered
Jul  9 13:39:37 localhost statuschecker: StatusChecker - VPN up triggered
Jul  9 13:40:05 localhost dbus-daemon[1071]: statuschecker: StatusChecker - VPN down triggered
Jul  9 13:40:05 localhost statuschecker: StatusChecker - VPN down triggered

# ls /etc/NetworkManager/dispatcher.d
00-netreport  01-statuschecker  05-netfs  10-sendmail  11-dhclient  20-chrony

# cat /etc/system-release
Fedora release 16 (Verne)

I also tried on F17, and it also worked as expected.

But maybe I got where the problem could be. I guess your hostname is not resolvable after the VPN disconnectiob (e.g. there is no network connectivity or misconfigured DNS). Sendmail needs your hostname to be resolvable and to match with your IP, i.e.:
# nslookup `hostname`
should return your FQDN and your IP address. You can simply hack this by including your hostname into /etc/hosts to resolve to your loopback interface, e.g.:
127.0.0.1 YOURHOSTNAME localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Without this it still works, but there is a slight timeout in sendmail restart, so I think in case you would wait, the vpn-down should show in the log.

Please try to add the --no-block to 10-sendmail:
/bin/systemctl --no-block try-restart sendmail.service || :

And let me know whether it fixes your problem.

Comment 3 Fedora End Of Life 2013-01-16 22:53:17 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-14 01:24:08 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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