Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1506798 (httpd_network-online) - (network-online.target) Use network-online.target instead of network.target
Summary: (network-online.target) Use network-online.target instead of network.target
Keywords:
Status: CLOSED WONTFIX
Alias: httpd_network-online
Product: Fedora
Classification: Fedora
Component: httpd
Version: 27
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Luboš Uhliarik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: network-online.target
TreeView+ depends on / blocked
 
Reported: 2017-10-26 19:21 UTC by Philip Prindeville
Modified: 2017-11-28 13:00 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 13:00:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Philip Prindeville 2017-10-26 19:21:58 UTC
Description of problem:

If your network is slow coming up (say you're using DHCP and the server is unavailable or rebooting after a power outage, etc) then this service might come up before the network is sufficiently configured.

Recommend adding

[Unit]
Wants=network-online.target
After=network-online.target

to .service file.

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

httpd-2.4.28-1.fc26.x86_64

How reproducible:

Bring up host while DHCP server is down.

Steps to Reproduce:
1. Provision host to use DHCP
2. Shutdown DHCP server
3. Reboot host under test

Actual results:

Service requires host's IP address and hostname to properly operate

Expected results:

Service should not be started until network is adequately configured.

Additional info:

Comment 1 Michal Ambroz 2017-11-06 20:39:11 UTC
Affects rawhide / fc27 as well

Comment 2 Joe Orton 2017-11-28 13:00:18 UTC
In the default configuration, the service does not depend on specific IP address availability, thus the default httpd.service does not need to require network-online.target.  As documented in httpd.service(8), non-default configurations which enable httpd at boot time will need to be configured appropriately.


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