Bug 650079 - cntlm started too early
Summary: cntlm started too early
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cntlm
Version: 14
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Matt Domsch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-05 06:46 UTC by Egon A. Rath
Modified: 2010-11-26 21:06 UTC (History)
1 user (show)

Fixed In Version: cntlm-0.35.1-7.fc14
Clone Of:
: 849130 (view as bug list)
Environment:
Last Closed: 2010-11-26 21:06:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
/var/log/boot.log showing the cntlm failure (2.21 KB, application/octet-stream)
2010-11-08 13:35 UTC, Egon A. Rath
no flags Details
/var/log/messages showing detailed output of why cntlm failed to start at boot time - the problem is shown on line 5095 (524.71 KB, application/octet-stream)
2010-11-08 13:36 UTC, Egon A. Rath
no flags Details
network configuration file (169 bytes, application/octet-stream)
2010-11-08 13:36 UTC, Egon A. Rath
no flags Details

Description Egon A. Rath 2010-11-05 06:46:50 UTC
Description of problem:

cntlm is started too early so it's not able to resolve the configured proxy and dies. This problem only occurs when the given proxy is resolved using DNS.

When started after the system has come up using "service cntlmd start" it works flawless.

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

cntlm 0.35


How reproducible:

Install cntlm package and configure a proxy (using DNS name, no IP or /etc/hosts resolved name)
 
Actual results:

service failed to start up at boot time

Expected results:

service starts successfully

Additional info:

Comment 1 Matt Domsch 2010-11-05 20:56:35 UTC
It is starting after NFS file systems would get mounted, so there should be DNS functional by that point.  Do you have Spanning Tree Protocol turned on in your network switches, which imposes a 30 second delay when bringing up network ports?

Thanks,
Matt

Comment 2 Egon A. Rath 2010-11-08 13:35:08 UTC
Created attachment 458733 [details]
/var/log/boot.log showing the cntlm failure

Comment 3 Egon A. Rath 2010-11-08 13:36:04 UTC
Created attachment 458734 [details]
/var/log/messages showing detailed output of why cntlm failed to start at boot time - the problem is shown on line 5095

Comment 4 Egon A. Rath 2010-11-08 13:36:35 UTC
Created attachment 458735 [details]
network configuration file

Comment 5 Egon A. Rath 2010-11-08 13:39:01 UTC
Hello,
we don't have STP enabled in our network - the nic comes up and is responsive as soon as the machine has started the NetworkManager. From what i've seen in the logfiles it may have something to do with the fact that the start scripts are executed in parallel and the NetworkManager needs about 1 second to bring up the interface - exactly in this second cntlm is started (and the interface isn't up yet)

Comment 6 Egon A. Rath 2010-11-08 14:19:00 UTC
The relevant parts of the /var/log/messages file is at 14:24:10 (line 5095)

Comment 7 Matt Domsch 2010-11-08 17:49:05 UTC
http://koji.fedoraproject.org/koji/taskinfo?taskID=2587720
has a build for rawhide that should fix it. Please test and let me know.  It instructs NetworkManager to try and start the service after the network is up. It will try to start (and fail) via the normal initscripts method, but then be started (and succeed) by NM.

Comment 8 Egon A. Rath 2010-11-09 06:47:39 UTC
Hello, tried your cntlm.NetworkManager script on a F14 system (have no rawhide installation available right here) and it works as expected.

Comment 9 Fedora Update System 2010-11-10 04:28:34 UTC
cntlm-0.35.1-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/cntlm-0.35.1-7.fc14

Comment 10 Fedora Update System 2010-11-10 21:47:03 UTC
cntlm-0.35.1-7.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cntlm'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/cntlm-0.35.1-7.fc14

Comment 11 Fedora Update System 2010-11-26 21:06:53 UTC
cntlm-0.35.1-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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