diff options
author | Vu Tran <vu.tran@windriver.com> | 2014-02-28 09:11:13 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 14:24:31 -0400 |
commit | e617d0205fc566ef70b61a75c484d78c540ef791 (patch) | |
tree | c5969046b73ea732f01c692ddfeef599ecb00eeb /meta-openstack | |
parent | 2c14cdfb9c34c541a1b3a180ad2a625514300977 (diff) | |
download | meta-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')
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 | ||
93 | inherit setuptools identity hosts update-rc.d | 93 | inherit setuptools identity hosts update-rc.d default_configs |
94 | 94 | ||
95 | PACKAGES += " ${SRCNAME}-tests" | 95 | PACKAGES += " ${SRCNAME}-tests" |
96 | PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" | 96 | PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api" |
@@ -193,8 +193,14 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-controller" | |||
193 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" | 193 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-collector ${SRCNAME}-compute ${SRCNAME}-controller" |
194 | INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator" | 194 | INITSCRIPT_PACKAGES += "${SRCNAME}-alarm-notifier ${SRCNAME}-alarm-evaluator" |
195 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" | 195 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" |
196 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
196 | INITSCRIPT_NAME_${SRCNAME}-collector = "${SRCNAME}-collector" | 197 | INITSCRIPT_NAME_${SRCNAME}-collector = "${SRCNAME}-collector" |
198 | INITSCRIPT_PARAMS_${SRCNAME}-collector = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
197 | INITSCRIPT_NAME_${SRCNAME}-compute = "${SRCNAME}-agent-compute" | 199 | INITSCRIPT_NAME_${SRCNAME}-compute = "${SRCNAME}-agent-compute" |
200 | INITSCRIPT_PARAMS_${SRCNAME}-compute = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
198 | INITSCRIPT_NAME_${SRCNAME}-controller = "${SRCNAME}-agent-central" | 201 | INITSCRIPT_NAME_${SRCNAME}-controller = "${SRCNAME}-agent-central" |
202 | INITSCRIPT_PARAMS_${SRCNAME}-controller = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
199 | INITSCRIPT_NAME_${SRCNAME}-alarm-notifier = "${SRCNAME}-alarm-notifier" | 203 | INITSCRIPT_NAME_${SRCNAME}-alarm-notifier = "${SRCNAME}-alarm-notifier" |
204 | INITSCRIPT_PARAMS_${SRCNAME}-alarm-notifier = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
200 | INITSCRIPT_NAME_${SRCNAME}-alarm-evaluator = "${SRCNAME}-alarm-evaluator" | 205 | INITSCRIPT_NAME_${SRCNAME}-alarm-evaluator = "${SRCNAME}-alarm-evaluator" |
206 | INITSCRIPT_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" | |||
20 | PV="2013.2.2+git${SRCPV}" | 20 | PV="2013.2.2+git${SRCPV}" |
21 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
22 | 22 | ||
23 | inherit setuptools update-rc.d identity | 23 | inherit setuptools update-rc.d identity default_configs |
24 | 24 | ||
25 | do_install_append() { | 25 | do_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 | ||
167 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" | 167 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" |
168 | INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" | 168 | INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" |
169 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
169 | INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" | 170 | INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" |
171 | INITSCRIPT_PARAMS_${SRCNAME}-volume = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
170 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" | 172 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" |
173 | INITSCRIPT_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 | ||
17 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
18 | 18 | ||
19 | inherit setuptools update-rc.d identity | 19 | inherit setuptools update-rc.d identity default_configs |
20 | 20 | ||
21 | do_install_append() { | 21 | do_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 | ||
138 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" | 138 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" |
139 | INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" | 139 | INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" |
140 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
140 | INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" | 141 | INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" |
142 | INITSCRIPT_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 | ||
83 | inherit setuptools identity hosts update-rc.d | 83 | inherit setuptools identity hosts update-rc.d default_configs |
84 | 84 | ||
85 | PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" | 85 | PACKAGES += "${SRCNAME}-tests ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" |
86 | PACKAGES += "${SRCNAME}-setup" | 86 | PACKAGES += "${SRCNAME}-setup" |
@@ -164,6 +164,9 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-engine" | |||
164 | 164 | ||
165 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" | 165 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" |
166 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" | 166 | INITSCRIPT_NAME_${SRCNAME}-api = "${SRCNAME}-api" |
167 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
167 | INITSCRIPT_NAME_${SRCNAME}-api-cfn = "${SRCNAME}-api-cfn" | 168 | INITSCRIPT_NAME_${SRCNAME}-api-cfn = "${SRCNAME}-api-cfn" |
169 | INITSCRIPT_PARAMS_${SRCNAME}-api-cfn = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
168 | INITSCRIPT_NAME_${SRCNAME}-engine = "${SRCNAME}-engine" | 170 | INITSCRIPT_NAME_${SRCNAME}-engine = "${SRCNAME}-engine" |
171 | INITSCRIPT_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" | |||
39 | PV="2013.2+git${SRCPV}" | 39 | PV="2013.2+git${SRCPV}" |
40 | S = "${WORKDIR}/git" | 40 | S = "${WORKDIR}/git" |
41 | 41 | ||
42 | inherit setuptools update-rc.d python-dir | 42 | inherit 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 | ||
113 | INITSCRIPT_PACKAGES = "${SRCNAME}" | 113 | INITSCRIPT_PACKAGES = "${SRCNAME}" |
114 | INITSCRIPT_NAME_${SRCNAME} = "horizon" | 114 | INITSCRIPT_NAME_${SRCNAME} = "horizon" |
115 | INITSCRIPT_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 | ||
21 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
22 | 22 | ||
23 | inherit setuptools update-rc.d identity hosts | 23 | inherit setuptools update-rc.d identity hosts default_configs |
24 | 24 | ||
25 | SERVICE_TOKEN = "password" | 25 | SERVICE_TOKEN = "password" |
26 | 26 | ||
@@ -143,3 +143,4 @@ RDEPENDS_${SRCNAME}-cronjobs = "cronie ${SRCNAME}" | |||
143 | 143 | ||
144 | INITSCRIPT_PACKAGES = "${SRCNAME}" | 144 | INITSCRIPT_PACKAGES = "${SRCNAME}" |
145 | INITSCRIPT_NAME_${SRCNAME} = "keystone" | 145 | INITSCRIPT_NAME_${SRCNAME} = "keystone" |
146 | INITSCRIPT_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 | ||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
21 | inherit setuptools update-rc.d identity hosts | 21 | inherit setuptools update-rc.d identity hosts default_configs |
22 | 22 | ||
23 | do_install_append() { | 23 | do_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 | ||
205 | INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge" | 205 | INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge" |
206 | INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server" | 206 | INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server" |
207 | INITSCRIPT_PARAMS_${SRCNAME}-server = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
207 | INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent" | 208 | INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent" |
209 | INITSCRIPT_PARAMS_${SRCNAME}-plugin-openvswitch = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
208 | INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "neutron-linuxbridge-agent" | 210 | INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "neutron-linuxbridge-agent" |
211 | INITSCRIPT_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 | ||
29 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |
30 | 30 | ||
31 | inherit update-rc.d setuptools identity hosts useradd | 31 | inherit update-rc.d setuptools identity hosts useradd default_configs |
32 | 32 | ||
33 | do_install_append() { | 33 | do_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" |
270 | INITSCRIPT_NAME_${SRCNAME}-network = "nova-network" | 270 | INITSCRIPT_NAME_${SRCNAME}-network = "nova-network" |
271 | INITSCRIPT_PARAMS_${SRCNAME}-network = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
271 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "nova-scheduler" | 272 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "nova-scheduler" |
273 | INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
272 | INITSCRIPT_NAME_${SRCNAME}-cert = "nova-cert" | 274 | INITSCRIPT_NAME_${SRCNAME}-cert = "nova-cert" |
275 | INITSCRIPT_PARAMS_${SRCNAME}-cert = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
273 | INITSCRIPT_NAME_${SRCNAME}-conductor = "nova-conductor" | 276 | INITSCRIPT_NAME_${SRCNAME}-conductor = "nova-conductor" |
277 | INITSCRIPT_PARAMS_${SRCNAME}-conductor = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
274 | INITSCRIPT_NAME_${SRCNAME}-api = "nova-api" | 278 | INITSCRIPT_NAME_${SRCNAME}-api = "nova-api" |
279 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
275 | 280 | ||
276 | INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute" | 281 | INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute" |
282 | INITSCRIPT_PARAMS_${SRCNAME}-compute = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
277 | INITSCRIPT_NAME_${SRCNAME}-consoleauth = "nova-consoleauth" | 283 | INITSCRIPT_NAME_${SRCNAME}-consoleauth = "nova-consoleauth" |
284 | INITSCRIPT_PARAMS_${SRCNAME}-consoleauth = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
278 | INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" | 285 | INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" |
286 | INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||
279 | 287 | ||