Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507628 - sys-cluster/nova - missing /var/lock/nova
Summary: sys-cluster/nova - missing /var/lock/nova
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 12:19 UTC by Vadim Kuznetsov (RETIRED)
Modified: 2014-06-30 03:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Kuznetsov (RETIRED) gentoo-dev 2014-04-14 12:19:10 UTC
Folder permissions - 0775.
/var/lock/nova is missing. (nova-api failed to start)

diff --git a/files/nova.initd b/files/nova.initd
index e1f44f8..0bf1b48 100644
--- a/files/nova.initd
+++ b/files/nova.initd
@@ -2,7 +2,7 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-description="Starts ${SVCNAME}  service for OpenStack" 
+description="Starts ${SVCNAME} service for OpenStack"
 
 command=/usr/bin/${SVCNAME}
 command_background=yes
@@ -16,5 +16,6 @@ depend() {
 }
 
 start_pre() {
-       checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0664 ${NOVA_RUN:-/var/run/nova}
+       checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 \
+               ${NOVA_RUN:-/var/run/nova} ${NOVA_LOCK:-/var/lock/nova}
 }
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-04-28 03:53:23 UTC
fixed, kthnx
Comment 2 Vadim Kuznetsov (RETIRED) gentoo-dev 2014-05-02 16:48:02 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #1)
> fixed, kthnx

permissions are not fixed. should be 0755
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-06-30 03:59:50 UTC
fixed, all ebuilds use the correct init.d


#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Starts ${SVCNAME} service for OpenStack"

command=/usr/bin/${SVCNAME}
command_background=yes
pidfile=/var/run/nova/${SVCNAME}.pid
required_files=/etc/nova/nova.conf
start_stop_daemon_args="--quiet --user ${NOVA_USER:-nova}"

depend() {
    need net 
}

start_pre() {
	checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/run/nova}
	checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/lock/nova}
}