summaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-02-28 09:11:13 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-17 14:24:31 -0400
commite617d0205fc566ef70b61a75c484d78c540ef791 (patch)
treec5969046b73ea732f01c692ddfeef599ecb00eeb /meta-openstack
parent2c14cdfb9c34c541a1b3a180ad2a625514300977 (diff)
downloadmeta-cloud-services-e617d0205fc566ef70b61a75c484d78c540ef791.tar.gz
Readjust the start level of openstack components
Currently all the openstack components have default start level of 20. There are other services such as glusterfs, rabbbitmq, database... are also starting at the same start level. On some platform, this can cause racing condition between services which in turn causes some of openstack components not started. By adjusting the openstack components start level to higher will ensure that system services start in the determistic way. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/classes/default_configs.bbclass1
-rw-r--r--meta-openstack/recipes-devtools/python/python-ceilometer_git.bb8
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_git.bb5
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_git.bb4
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat_git.bb5
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon_git.bb3
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_git.bb3
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron_git.bb5
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_git.bb10
9 files changed, 36 insertions, 8 deletions
diff --git a/meta-openstack/classes/default_configs.bbclass b/meta-openstack/classes/default_configs.bbclass
new file mode 100644
index 0000000..2be586c
--- /dev/null
+++ b/meta-openstack/classes/default_configs.bbclass
@@ -0,0 +1 @@
OS_DEFAULT_INITSCRIPT_PARAMS ??= "defaults 30 10"
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb
index e67f2bf..7d1796d 100644
--- a/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-ceilometer_git.bb
@@ -90,7 +90,7 @@ pkg_postinst_${SRCNAME}-setup () {
90 ceilometer-dbsync 90 ceilometer-dbsync
91} 91}
92 92
93inherit setuptools identity hosts update-rc.d 93inherit setuptools identity hosts update-rc.d default_configs
94 94
95PACKAGES += " ${SRCNAME}-tests" 95PACKAGES += " ${SRCNAME}-tests"
96PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" 96PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api"
@@ -193,8 +193,14 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-controller"
193INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" 193INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller"
194INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator" 194INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator"
195INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" 195INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api"
196INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
196INITSCRIPT_NAME_${SRCNAME}-collector = "${SRCNAME}-collector" 197INITSCRIPT_NAME_${SRCNAME}-collector = "${SRCNAME}-collector"
198INITSCRIPT_PARAMS_${SRCNAME}-collector = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
197INITSCRIPT_NAME_${SRCNAME}-compute = "${SRCNAME}-agent-compute" 199INITSCRIPT_NAME_${SRCNAME}-compute = "${SRCNAME}-agent-compute"
200INITSCRIPT_PARAMS_${SRCNAME}-compute = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
198INITSCRIPT_NAME_${SRCNAME}-controller = "${SRCNAME}-agent-central" 201INITSCRIPT_NAME_${SRCNAME}-controller = "${SRCNAME}-agent-central"
202INITSCRIPT_PARAMS_${SRCNAME}-controller = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
199INITSCRIPT_NAME_${SRCNAME}-alarm-notifier = "${SRCNAME}-alarm-notifier" 203INITSCRIPT_NAME_${SRCNAME}-alarm-notifier = "${SRCNAME}-alarm-notifier"
204INITSCRIPT_PARAMS_${SRCNAME}-alarm-notifier = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
200INITSCRIPT_NAME_${SRCNAME}-alarm-evaluator = "${SRCNAME}-alarm-evaluator" 205INITSCRIPT_NAME_${SRCNAME}-alarm-evaluator = "${SRCNAME}-alarm-evaluator"
206INITSCRIPT_PARAMS_${SRCNAME}-alarm-evaluator = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
index 6fb27f8..c2479f7 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
@@ -20,7 +20,7 @@ SRCREV="8b5fb8409322f61d8b610c97c109a61bf48a940e"
20PV="2013.2.2+git${SRCPV}" 20PV="2013.2.2+git${SRCPV}"
21S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
22 22
23inherit setuptools update-rc.d identity 23inherit setuptools update-rc.d identity default_configs
24 24
25do_install_append() { 25do_install_append() {
26 TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} 26 TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME}
@@ -166,5 +166,8 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}"
166 166
167INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" 167INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler"
168INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" 168INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api"
169INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
169INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" 170INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume"
171INITSCRIPT_PARAMS_${SRCNAME}-volume = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
170INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" 172INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler"
173INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb
index 1bd24d0..3ccb860 100644
--- a/meta-openstack/recipes-devtools/python/python-glance_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb
@@ -16,7 +16,7 @@ PV="2013.2.2+git${SRCPV}"
16 16
17S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
18 18
19inherit setuptools update-rc.d identity 19inherit setuptools update-rc.d identity default_configs
20 20
21do_install_append() { 21do_install_append() {
22 TEMPLATE_CONF_DIR=${S}${sysconfdir} 22 TEMPLATE_CONF_DIR=${S}${sysconfdir}
@@ -137,4 +137,6 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}"
137 137
138INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" 138INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry"
139INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" 139INITSCRIPT_NAME_${SRCNAME}-api = "glance-api"
140INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
140INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" 141INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry"
142INITSCRIPT_PARAMS_${SRCNAME}-registry = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb
index 4c12551..6fa6c36 100644
--- a/meta-openstack/recipes-devtools/python/python-heat_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb
@@ -80,7 +80,7 @@ pkg_postinst_${SRCNAME}-setup () {
80 heat-manage db_sync 80 heat-manage db_sync
81} 81}
82 82
83inherit setuptools identity hosts update-rc.d 83inherit setuptools identity hosts update-rc.d default_configs
84 84
85PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" 85PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine"
86PACKAGES += "${SRCNAME}-setup" 86PACKAGES += "${SRCNAME}-setup"
@@ -164,6 +164,9 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-engine"
164 164
165INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" 165INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine"
166INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" 166INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api"
167INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
167INITSCRIPT_NAME_${SRCNAME}-api-cfn = "${SRCNAME}-api-cfn" 168INITSCRIPT_NAME_${SRCNAME}-api-cfn = "${SRCNAME}-api-cfn"
169INITSCRIPT_PARAMS_${SRCNAME}-api-cfn = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
168INITSCRIPT_NAME_${SRCNAME}-engine = "${SRCNAME}-engine" 170INITSCRIPT_NAME_${SRCNAME}-engine = "${SRCNAME}-engine"
171INITSCRIPT_PARAMS_${SRCNAME}-engine = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
169 172
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
index be45a2b..771f000 100644
--- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
@@ -39,7 +39,7 @@ SRCREV="1912cc6a88dca7238da7c444a1ede84b983ab354"
39PV="2013.2+git${SRCPV}" 39PV="2013.2+git${SRCPV}"
40S = "${WORKDIR}/git" 40S = "${WORKDIR}/git"
41 41
42inherit setuptools update-rc.d python-dir 42inherit setuptools update-rc.d python-dir default_configs
43 43
44# no longer required. kept as reference. 44# no longer required. kept as reference.
45# do_install[dirs] += "${D}/usr/share/bin" 45# do_install[dirs] += "${D}/usr/share/bin"
@@ -112,3 +112,4 @@ RDEPENDS_${SRCNAME} = "${PN}"
112 112
113INITSCRIPT_PACKAGES = "${SRCNAME}" 113INITSCRIPT_PACKAGES = "${SRCNAME}"
114INITSCRIPT_NAME_${SRCNAME} = "horizon" 114INITSCRIPT_NAME_${SRCNAME} = "horizon"
115INITSCRIPT_PARAMS_${SRCNAME} = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
index bb44fe4..6966d07 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
@@ -20,7 +20,7 @@ PV="2013.2.2+git${SRCPV}"
20 20
21S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
22 22
23inherit setuptools update-rc.d identity hosts 23inherit setuptools update-rc.d identity hosts default_configs
24 24
25SERVICE_TOKEN = "password" 25SERVICE_TOKEN = "password"
26 26
@@ -143,3 +143,4 @@ RDEPENDS_${SRCNAME}-cronjobs = "cronie ${SRCNAME}"
143 143
144INITSCRIPT_PACKAGES = "${SRCNAME}" 144INITSCRIPT_PACKAGES = "${SRCNAME}"
145INITSCRIPT_NAME_${SRCNAME} = "keystone" 145INITSCRIPT_NAME_${SRCNAME} = "keystone"
146INITSCRIPT_PARAMS_${SRCNAME} = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
index 4aa974e..4e3c1b8 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
@@ -18,7 +18,7 @@ PV="2013.2.2+git${SRCPV}"
18 18
19S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
20 20
21inherit setuptools update-rc.d identity hosts 21inherit setuptools update-rc.d identity hosts default_configs
22 22
23do_install_append() { 23do_install_append() {
24 TEMPLATE_CONF_DIR=${S}${sysconfdir}/ 24 TEMPLATE_CONF_DIR=${S}${sysconfdir}/
@@ -204,5 +204,8 @@ RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch"
204 204
205INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge" 205INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge"
206INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server" 206INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server"
207INITSCRIPT_PARAMS_${SRCNAME}-server = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
207INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent" 208INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent"
209INITSCRIPT_PARAMS_${SRCNAME}-plugin-openvswitch = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
208INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "neutron-linuxbridge-agent" 210INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "neutron-linuxbridge-agent"
211INITSCRIPT_PARAMS_${SRCNAME}-plugin-linuxbridge = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index e41e796..7f3d2e2 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -28,7 +28,7 @@ PV="2013.2.2+git${SRCPV}"
28 28
29S = "${WORKDIR}/git" 29S = "${WORKDIR}/git"
30 30
31inherit update-rc.d setuptools identity hosts useradd 31inherit update-rc.d setuptools identity hosts useradd default_configs
32 32
33do_install_append() { 33do_install_append() {
34 if [ ! -f "${WORKDIR}/nova.conf" ]; then 34 if [ ! -f "${WORKDIR}/nova.conf" ]; then
@@ -268,12 +268,20 @@ INITSCRIPT_PACKAGES += "${SRCNAME}-api"
268# INITSCRIPT_PACKAGES += "${SRCNAME}-controller" 268# INITSCRIPT_PACKAGES += "${SRCNAME}-controller"
269# INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all" 269# INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all"
270INITSCRIPT_NAME_${SRCNAME}-network = "nova-network" 270INITSCRIPT_NAME_${SRCNAME}-network = "nova-network"
271INITSCRIPT_PARAMS_${SRCNAME}-network = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
271INITSCRIPT_NAME_${SRCNAME}-scheduler = "nova-scheduler" 272INITSCRIPT_NAME_${SRCNAME}-scheduler = "nova-scheduler"
273INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
272INITSCRIPT_NAME_${SRCNAME}-cert = "nova-cert" 274INITSCRIPT_NAME_${SRCNAME}-cert = "nova-cert"
275INITSCRIPT_PARAMS_${SRCNAME}-cert = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
273INITSCRIPT_NAME_${SRCNAME}-conductor = "nova-conductor" 276INITSCRIPT_NAME_${SRCNAME}-conductor = "nova-conductor"
277INITSCRIPT_PARAMS_${SRCNAME}-conductor = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
274INITSCRIPT_NAME_${SRCNAME}-api = "nova-api" 278INITSCRIPT_NAME_${SRCNAME}-api = "nova-api"
279INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
275 280
276INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute" 281INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute"
282INITSCRIPT_PARAMS_${SRCNAME}-compute = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
277INITSCRIPT_NAME_${SRCNAME}-consoleauth = "nova-consoleauth" 283INITSCRIPT_NAME_${SRCNAME}-consoleauth = "nova-consoleauth"
284INITSCRIPT_PARAMS_${SRCNAME}-consoleauth = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
278INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" 285INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy"
286INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
279 287