Bug 1200502

Summary: etcd service does not start on f21 server
Product: [Fedora] Fedora Reporter: Avesh Agarwal <avagarwa>
Component: etcdAssignee: Luke Cypret <lacypret>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: avagarwa, eparis, golang-updates, jchaloup, lacypret, lemenkov, lsm5, tstclair, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: etcd-2.0.3-0.2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 21:51:40 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 Avesh Agarwal 2015-03-10 16:57:44 UTC
Description of problem:
etcd service does not start on f21 server
And I get following logs:

systemctl status etcd
● etcd.service - Etcd Server
   Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled)
   Active: failed (Result: exit-code) since Tue 2015-03-10 12:06:50 EDT; 24min ago
  Process: 721 ExecStart=/usr/bin/etcd (code=exited, status=1/FAILURE)
 Main PID: 721 (code=exited, status=1/FAILURE)

Mar 10 12:06:50 localhost.localdomain systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Mar 10 12:06:50 localhost.localdomain systemd[1]: Unit etcd.service entered failed state.
Mar 10 12:06:50 localhost.localdomain systemd[1]: etcd.service failed.
[root@localhost ~]# journalctl -b -u etcd
-- Logs begin at Mon 2015-03-09 14:20:10 EDT, end at Tue 2015-03-10 12:31:37 EDT. --
Mar 10 12:06:50 localhost.localdomain systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Mar 10 12:06:50 localhost.localdomain systemd[1]: Unit etcd.service entered failed state.
Mar 10 12:06:50 localhost.localdomain systemd[1]: etcd.service failed.

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


How reproducible:
always

Steps to Reproduce:
1. Install a fedora 21 server vm from http://download.devel.redhat.com/released/F-21/GOLD/Server/x86_64/os/
2. Install etcd
3. run etcd as follows:
systemctl start etcd

Actual results:
Error

Expected results:
Working etcd service.

Additional info:
Manual /bin/etcd starts a service so not sure if everything is fine with the running service.

Comment 1 Eric Paris 2015-03-10 17:47:57 UTC
Found a couple of problems.

#1 we were still setting std_out == null in the service file.
#2 we were not setting a workingdir= && we were not shipping a config file in /etc, so it was trying to use /default.etcd, and obviously didn't have permission to create that dir.

Comment 2 Jan Chaloupka 2015-03-13 18:05:11 UTC
Hi Avesh, is the etcd functioning now?

Comment 3 Avesh Agarwal 2015-03-13 18:13:39 UTC
Jan, yes. It is working now.

Comment 4 Fedora Update System 2015-03-13 18:21:43 UTC
etcd-2.0.3-0.2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/etcd-2.0.3-0.2.fc20

Comment 5 Fedora Update System 2015-03-13 18:22:14 UTC
etcd-2.0.3-0.2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/etcd-2.0.3-0.2.fc21

Comment 6 Fedora Update System 2015-03-13 18:22:39 UTC
etcd-2.0.3-0.2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/etcd-2.0.3-0.2.fc22

Comment 7 Fedora Update System 2015-03-14 09:16:30 UTC
Package etcd-2.0.3-0.2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing etcd-2.0.3-0.2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-3856/etcd-2.0.3-0.2.fc21
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-03-26 21:51:40 UTC
etcd-2.0.3-0.2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-03-26 21:59:06 UTC
etcd-2.0.3-0.2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-03-26 22:00:57 UTC
etcd-2.0.3-0.2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.