Report information
The Basics
Id:
35989
Status:
resolved
Worked:
30 minutes
Priority:
Medium/Medium
Queue:

People
Owner:
Nobody in particular
Cc:
AdminCc:

BugTracker
Version Fixed:
4.3.1
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
(no value)
Severity:
S1 High
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
(no value)

Dates
Created:Tue, 13 May 2014 08:55:28 -0400
Updated:Fri, 07 Jul 2017 20:19:38 -0400
Closed:Tue, 12 Aug 2014 23:39:03 -0400



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

CC: thozza@redhat.com
Subject: dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Tue, 13 May 2014 14:55:12 +0200
To: dhcp-bugs@isc.org
From: Jiri Popelka <jpopelka@redhat.com>
Hi, please see original bug reports: https://bugzilla.redhat.com/show_bug.cgi?id=1057298#c5 https://bugzilla.redhat.com/show_bug.cgi?id=1093294#c4 I think the libirs' resconf code needs to treat the '%' scope-delimiter similar way glibc does, see attached patch. With regards, Jiri Popelka Red Hat, inc.

Message body is not shown because sender requested not to inline it.

Subject: Re: [ISC-Bugs #35989] dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Tue, 13 May 2014 23:02:12 +1000
To: dhcp-bugs@isc.org
From: Mark Andrews <marka@isc.org>
In message <rt-3.8.6-35138-1399985728-1722.35989-3-0@isc.org>, "Jiri Popelka via RT" writes: > > Hi, > > please see original bug reports: > https://bugzilla.redhat.com/show_bug.cgi?id=1057298#c5 > https://bugzilla.redhat.com/show_bug.cgi?id=1093294#c4 > > I think the libirs' resconf code needs to treat the '%' scope-delimiter > similar way glibc does, see attached patch. > > With regards, > Jiri Popelka > Red Hat, inc. The patch modifies a const char * string. -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
CC: thozza@redhat.com
Subject: Re: [ISC-Bugs #35989] dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Tue, 13 May 2014 15:25:44 +0200
To: dhcp-bugs@isc.org
From: Jiri Popelka <jpopelka@redhat.com>
On 05/13/2014 03:02 PM, Mark Andrews via RT wrote: > The patch modifies a const char * string. Oh, sure, then maybe just move the fix into resconf_parsenameserver() ? I'm sure you'll find something better, it was just a suggestion. -- Jiri
CC: Jiri Popelka <jpopelka@redhat.com>
Subject: Re: [ISC-Bugs #35989] dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Fri, 16 May 2014 07:30:07 -0400 (EDT)
To: dhcp-bugs <dhcp-bugs@isc.org>, bind9-bugs@isc.org
From: Tomas Hozza <thozza@redhat.com>
I'm sending fixed patch. The code has been moved to resconf_parsenameserver() function. ----- Original Message ----- > On 05/13/2014 03:02 PM, Mark Andrews via RT wrote: > > The patch modifies a const char * string. > > Oh, sure, then maybe just move the fix into resconf_parsenameserver() ? > I'm sure you'll find something better, it was just a suggestion. > > -- > Jiri > Regards, -- Tomas Hozza Software Engineer - EMEA ENG Developer Experience PGP: 1D9F3C2D Red Hat Inc. http://cz.redhat.com

Message body is not shown because sender requested not to inline it.

CC: Jiri Popelka <jpopelka@redhat.com>
Subject: Re: [ISC-Bugs #35989] dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Fri, 16 May 2014 07:30:07 -0400 (EDT)
To: dhcp-bugs <dhcp-bugs@isc.org>, bind9-bugs@isc.org
From: Tomas Hozza <thozza@redhat.com>
I'm sending fixed patch. The code has been moved to resconf_parsenameserver() function. ----- Original Message ----- > On 05/13/2014 03:02 PM, Mark Andrews via RT wrote: > > The patch modifies a const char * string. > > Oh, sure, then maybe just move the fix into resconf_parsenameserver() ? > I'm sure you'll find something better, it was just a suggestion. > > -- > Jiri > Regards, -- Tomas Hozza Software Engineer - EMEA ENG Developer Experience PGP: 1D9F3C2D Red Hat Inc. http://cz.redhat.com

Message body is not shown because sender requested not to inline it.

 
I've queue up a patch for 4.3.1 first that is awaiting review it has the
dhcp process continue running even if it the code can't handle resolv.conf.

diff --git a/omapip/isclib.c b/omapip/isclib.c
index 59332ed..ce6d505 100644
--- a/omapip/isclib.c
+++ b/omapip/isclib.c
@@ -225,9 +225,17 @@ dhcp_context_create(int flags,
                if (result != ISC_R_SUCCESS)
                        goto cleanup;
 
+               /*
+                * If we can't set up the servers we may not be able to
+                * do DDNS but we should continue to try and perform
+                * our basic functions and let the user sort it out.
+                */
                result = dhcp_dns_client_setservers();
-               if (result != ISC_R_SUCCESS)
-                       goto cleanup;
+               if (result != ISC_R_SUCCESS) {
+                       log_error("Unable to set resolver from resolv.conf "
+                                 "continuing to start up but DDNS support "
+                                 "may be affected");
+               }
        }
 #endif

Subject: Re: [ISC-Bugs #35989] dhclient-4.3.0 fails to start when resolv.conf contains nameserver with '%' scope-delimiter
Date: Fri, 18 Jul 2014 07:00:36 -0400 (EDT)
To: bind9-bugs@isc.org
From: Tomas Hozza <thozza@redhat.com>
----- Original Message ----- > I'm sending fixed patch. The code has been moved to resconf_parsenameserver() > function. > > ----- Original Message ----- > > On 05/13/2014 03:02 PM, Mark Andrews via RT wrote: > > > The patch modifies a const char * string. > > > > Oh, sure, then maybe just move the fix into resconf_parsenameserver() ? > > I'm sure you'll find something better, it was just a suggestion. > > > > -- > > Jiri > > Hi. We would like to fix this issue in Fedora. We didn't hear anything from you about this bug since I sent you the fixed patch. I would like to ask if there are any problems that we can work out, for the patch to be merged? Thank you. Regards, -- Tomas Hozza Software Engineer - EMEA ENG Developer Experience PGP: 1D9F3C2D Red Hat Inc. http://cz.redhat.com
I apologize, I thought I had included you on the changes to this
ticket but see that I didn't do so.  

We have included a patch to address this issue already.  It
went into the 4.3 branch and was released as part of 4.3.1b1.
This patch simply allows the DHCP server to continue running
even if the resolver config file can't be read.  

I also passed the issue along to the Bind9 people.  I'm not
sure when they will address the issue and depending on
when they address it when that fix will get included with
DHCP as we pull in their libraries.

regards,
Shawn

On Fri Jul 18 11:00:40 2014, thozza@redhat.com wrote:
> ----- Original Message -----
> > I'm sending fixed patch. The code has been moved to
> resconf_parsenameserver()
> > function.
> >
> > ----- Original Message -----
> > > On 05/13/2014 03:02 PM, Mark Andrews via RT wrote:
> > > > The patch modifies a const char * string.
> > >
> > > Oh, sure, then maybe just move the fix into
> resconf_parsenameserver() ?
> > > I'm sure you'll find something better, it was just a suggestion.
> > >
> > > --
> > > Jiri
> > >
>
> Hi.
>
> We would like to fix this issue in Fedora. We didn't hear anything
> from you
> about this bug since I sent you the fixed patch.
>
> I would like to ask if there are any problems that we can work out,
> for the patch to be merged?
>
> Thank you.
>
> Regards,