Bug 690087

Summary: ripd fails to start
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: quaggaAssignee: Jiri Skala <jskala>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aglotov, jskala
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-31 07:45:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Richard W.M. Jones 2011-03-23 10:34:22 UTC
Description of problem:

ripd daemon cannot start at boot, or later if started manually.

The error message is eaten, but I was able to extract it by
stracing the process.  It is:

ripd[5381]: Can't create pid lock file /var/run/quagga/ripd.pid (Permission denied), exiting

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

quagga-0.99.17-5.fc15.x86_64

How reproducible:

Always after boot.

Steps to Reproduce:
1. service ripd start
2.
3.
  
Actual results:

Fails to start.

Expected results:

Should start.

Additional info:

I can allow ripd to start by setting 0777 permissions on
/var/log/quagga.  Even then an additional and different
problem is that systemd is unable to start ripd - I have to
start it by typing in the ripd command line.

Comment 1 Jiri Skala 2011-03-23 12:32:50 UTC
I've modified owner:group (quagga:quagga) of /var/run/quagga directory. This has fixed the issue for me. This change can be used manually as a workaround.

Comment 2 Richard W.M. Jones 2011-03-25 22:06:37 UTC
I reopened this because in Fedora 15, /var/run directory
appears to be non-permanent.  It seems like it is created
by ripd.

I did your manual workaround, but after reboot /var/run/quagga
had disappeared again completely.  I had to recreate the directory
and chown it before zebra+ripd would start up.

Comment 3 Richard W.M. Jones 2011-03-25 22:07:05 UTC
(In reply to comment #2)
> It seems like it is created
> by ripd.

I mean created by *systemd*.

Comment 4 Jiri Skala 2011-03-31 06:56:00 UTC
The quagga package locates /var/run/quagga in a tmpfs filesystem (/var/run) therefore the directory is really non-permanent.

I'm sorry I've mystified you with the changing owner+group. The right correction is to make manually /etc/tmpfiles.d/quagga.conf with the content:

d	/var/run/quagga	0755 quagga guagga

But the corrected version should be currently available in rawhide repository (this bug is filed against rawhide). There is still typo error in mentioned conf file in F15 that I'm going to fix now.

Well, do you see still another reason to let this bug opened?

Comment 5 Richard W.M. Jones 2011-03-31 07:45:42 UTC
OK thanks, let's close this.