Bug 919955 - unbound.service doesn't mark itself as providing nss-lookup.target
Summary: unbound.service doesn't mark itself as providing nss-lookup.target
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: unbound
Version: 18
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-11 01:53 UTC by Chris Siebenmann
Modified: 2013-06-11 09:06 UTC (History)
2 users (show)

Fixed In Version: unbound-1.4.20-3.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 09:06:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Siebenmann 2013-03-11 01:53:14 UTC
Description of problem:

Unbound's systemd service file doesn't declare that Unbound satisfies
the nss-lookup.target target. As a result if you're using Unbound for
DNS lookups, systemd doesn't know to delay starting services that want
DNS lookups until after Unbound starts; it will happily start them
earlier, whereupon they will fail to do DNS lookups and malfunction. One
such service is ntpdate.service.

Version-Release number of selected component (if applicable):
unbound-1.4.19-1.fc18.x86_64

How reproducible:

This is verifiable by inspection of
/usr/lib/systemd/system/unbound.service to see that it doesn't
mention nss-lookup.target.

It may or may not be reproducible on any particular Fedora system,
because the actual startup order and startup sequencing depends on what
systemd is feeling like. Sometimes it may work through coincidence even
without an explicit dependency.

Additional info:

If I'm reading the systemd documentation correctly, the necessary fix
to unbound.service is adding

 Wants=nss-lookup.target
 Before=nss-lookup.target

Comment 1 Fedora Update System 2013-04-17 03:04:28 UTC
unbound-1.4.20-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/unbound-1.4.20-6.fc19

Comment 2 Fedora Update System 2013-04-17 04:23:41 UTC
unbound-1.4.20-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/unbound-1.4.20-1.fc18

Comment 3 Fedora Update System 2013-04-17 16:26:17 UTC
Package unbound-1.4.20-6.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing unbound-1.4.20-6.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5889/unbound-1.4.20-6.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-19 15:00:46 UTC
unbound-1.4.20-7.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/unbound-1.4.20-7.fc19

Comment 5 Fedora Update System 2013-06-01 04:07:23 UTC
unbound-1.4.20-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/unbound-1.4.20-3.fc18

Comment 6 Fedora Update System 2013-06-11 09:06:44 UTC
unbound-1.4.20-3.fc18 has been pushed to the Fedora 18 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.