Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482698 - sys-cluster/nova - install an init.d script and a sudo configuration file
Summary: sys-cluster/nova - install an init.d script and a sudo configuration file
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: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-27 17:15 UTC by Davide Rebeccani
Modified: 2013-09-05 20:57 UTC (History)
0 users

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


Attachments
New sys-cluster/nova ebuild file with nova user and group creation (nova-2013.1.9999.ebuild,4.03 KB, text/plain)
2013-08-27 17:16 UTC, Davide Rebeccani
Details
sudoers configuration file for nova services to work correctly (nova_sudoers,79 bytes, text/plain)
2013-08-27 17:18 UTC, Davide Rebeccani
Details
sys-cluster/nova confd file (nova.confd,104 bytes, text/plain)
2013-08-27 17:19 UTC, Davide Rebeccani
Details
sys-cluster/nova initd file (nova.initd,1.29 KB, text/plain)
2013-08-27 17:20 UTC, Davide Rebeccani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Rebeccani 2013-08-27 17:15:40 UTC
sys-cluster/nova is missing inits file, sudoers configuration file and conf.d file

Reproducible: Always

Steps to Reproduce:
1.emerge sys-cluster/nova
2./etc/init.d/nova start
3.
Actual Results:  
/etc/init.d/nova no such file or directory

Expected Results:  
nova services script are found and are working
Comment 1 Davide Rebeccani 2013-08-27 17:16:37 UTC
Created attachment 357186 [details]
New sys-cluster/nova ebuild file with nova user and group creation
Comment 2 Davide Rebeccani 2013-08-27 17:18:28 UTC
Created attachment 357188 [details]
sudoers configuration file for nova services to work correctly

Take from the ubuntu installation and tested on gentoo. This file need to be placed in /etc/sudoers.d
Comment 3 Davide Rebeccani 2013-08-27 17:19:37 UTC
Created attachment 357190 [details]
sys-cluster/nova confd file

Added definitions for PIDFILE_PATH and LOCKFILE_PATH to make nova services behave correctly
Comment 4 Davide Rebeccani 2013-08-27 17:20:30 UTC
Created attachment 357192 [details]
sys-cluster/nova initd file

sys-cluster/nova initd file to start nova-* services correctly
Comment 5 Davide Rebeccani 2013-08-27 17:23:37 UTC
sys-cluster/nova depends on noVNC, xvpvnc and app-emulation/spice. I'm trying to make these dependencies work correctly.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-27 19:36:28 UTC
Comment on attachment 357186 [details]
New sys-cluster/nova ebuild file with nova user and group creation

-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-2013.1.9999.ebuild,v 1.4 2013/08/22 04:55:51 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-2013.1.9999.ebuild,v 1.1 2013/08/02 18:39:45 prometheanfire Exp $
 
 EAPI=5
 PYTHON_COMPAT=( python2_7 )
@@ -15,8 +15,8 @@
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS=""
-IUSE=""
+KEYWORDS="~amd64 ~x86"
+IUSE="api cert compute conductor consoleauth network novncproxy scheduler spicehtml5proxy xvpvncproxy"
 
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"

@@ -56,8 +56,31 @@
 PATCHES=(
 )

+pkg_setup() {
+       enewgroup nova
+       enewuser nova -1 -1 /var/lib/nova nova
+}
+
 python_install() {
        distutils-r1_python_install
+
+       newconfd "${FILESDIR}/nova.confd" nova
+       newinitd "${FILESDIR}/nova.initd" nova
+
+       use api && dosym /etc/init.d/nova /etc/init.d/nova-api
+       use     cert && dosym /etc/init.d/nova /etc/init.d/nova-cert
+       use     compute && dosym /etc/init.d/nova /etc/init.d/nova-compute
+       use     conductor && dosym /etc/init.d/nova /etc/init.d/nova-conductor
+       use     consoleauth &&  dosym /etc/init.d/nova /etc/init.d/nova-consoleauth
+       use     network &&      dosym /etc/init.d/nova /etc/init.d/nova-network
+       use     novncproxy &&dosym /etc/init.d/nova /etc/init.d/nova-nonvncproxy
+       use     scheduler && dosym /etc/init.d/nova /etc/init.d/nova-scheduler
+       use     spicehtml5proxy && dosym /etc/init.d/nova /etc/init.d/nova-spicehtml5proxy
+       use     xvpvncproxy && dosym /etc/init.d/nova /etc/init.d/nova-xvpncproxy
+
+       dodir /var/log/nova
+       fowners nova:nova /var/log/nova
+       
        keepdir /etc/nova
        insinto /etc/nova

@@ -77,4 +100,7 @@
        doins "nova/db/sqlalchemy/migrate_repo/migrate.cfg"
        #copy the CA cert dir (not coppied on install via setup.py script)
        cp -R "${S}/nova/CA" "${D}/usr/$(get_libdir)/python2.7/site-packages/nova/" || die "isntalling CA files failed"
+       #add sudoers definitions for user nova
+       insinto /etc/sudoers.d/
+       doins ${FILESDIR}/nova_sudoers
 }
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-08-28 01:23:48 UTC
jer, why you keyword git ebuilds? :P
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-05 20:57:45 UTC
fixes in cvs