Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507628

Summary: sys-cluster/nova - missing /var/lock/nova
Product: Gentoo Linux Reporter: Vadim Kuznetsov (RETIRED) <vadimk>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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}
}