Bug 1502746

Summary: statsd can start before network and use localhost.localdomain as a hostname
Product: [Fedora] Fedora EPEL Reporter: Patrick Chauncey <pchauncey>
Component: statsdAssignee: Piotr Popieluch <piotr1212>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: nick, pchauncey, piotr1212
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: statsd-0.7.2-10.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-30 16:51:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Chauncey 2017-10-16 15:05:34 UTC
Description of problem:
On CentOS7 / EPEL7: 
statsd can start before network and use localhost.localdomain as a hostname

Version-Release number of selected component (if applicable):
statsd-0.7.2-6.el7

How reproducible:
Using bond interfaces or other interfaces which might take longer to start up than the time it takes for systemd to spawn spawn statsd.  Note: Adding "Wants=network.target" in the [Unit] section of the /usr/lib/systemd/system/statsd.service file resolves this.  Also "Wants=network.target" is part of the upstream configuration as well: https://github.com/etsy/statsd/blob/master/debian/statsd.statsd.service

Actual results:
Oct 16 08:42:10 localhost.localdomain systemd[1]: Started network daemon to collect metrics.

Expected results:
Oct 16 09:23:38 my.actual.hostname systemd[1]: Started network daemon to collect metrics.

Comment 1 Fedora Update System 2017-10-17 11:42:08 UTC
statsd-0.7.2-10.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-296c3acddd

Comment 2 Fedora Update System 2017-10-18 02:17:14 UTC
statsd-0.7.2-10.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-296c3acddd

Comment 3 Fedora Update System 2018-01-30 16:51:10 UTC
statsd-0.7.2-10.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.