From 0304d8c53bdad18348f37526a4de08e52b9ace19 Mon Sep 17 00:00:00 2001 From: Mustapha Lansana Date: Wed, 30 Jul 2014 21:10:33 -0400 Subject: openstack: restart daemons exposed by the following services in openstack Openstackchef class provides the framework to reconfigure openstack at run-time. These services are inheriting openstackchef so that script file(s), specified in the respective recipe file, using the variables below are restarted by the decentralized openstackchef class framework when reconfiguring openstack: INITSCRIPT_PACKAGES: The list of init-scripts to start/stop when reconfiguring openstack. INITSCIPT_NAME_x: The name of the init-script mentioned above. INITSCRIPT_PARAMS_X: This parameter defines the run-level and priority for the init-script. However, the only parameter in this variable that is of interest to openstackchef class is the priority of the init-script. Changes to none of the above variables is shown by this patch set, however, it's to point out that openstackchef makes the assumption that these variables are set in the service's recipe file. Failure to set these variables, could lead to the service not working properly after the stack is re-configured. Signed-off-by: Mustapha Lansana --- meta-openstack/recipes-devtools/python/python-horizon_git.bb | 2 +- meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend | 6 ++++++ meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb index 428507a..a767bee 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb @@ -60,7 +60,7 @@ SRCREV="bd998fb6094fb16d084c90de1eed619aca4c31ef" PV="2014.2.b3+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d python-dir default_configs +inherit setuptools update-rc.d python-dir default_configs openstackchef # no longer required. kept as reference. # do_install[dirs] += "${D}/usr/share/bin" diff --git a/meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend b/meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend new file mode 100644 index 0000000..b52d27a --- /dev/null +++ b/meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend @@ -0,0 +1,6 @@ +# +# Copyright (C) 2013 Wind River Systems, Inc. +# +inherit openstackchef + + diff --git a/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb b/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb index 101d098..6ac3e59 100644 --- a/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb +++ b/meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb @@ -46,7 +46,7 @@ do_install() { mv ${D}/plugins ${RABBIT_LIB_DIR}/plugins } -inherit useradd update-rc.d +inherit useradd update-rc.d openstackchef USERADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "--system rabbitmq" -- cgit v1.2.3-54-g00ecf