meta-openstack: initial move to use systemd
PATCH 1/1 meta-openstack: initial move to use systemd
Add instructions to the README.setup on how to configure the build to use systemd. The remaining changes are a bit of hack and slash to get the builds to succeed. The 'hacking' only touches core openstack component recipes which are all in various states of broken anyways, so these changes will not affect any current meta-cloud-services users. All of these will be corrected shortly.
Most users of OpenStack have long ago made the move to systemd, by following suit we can take advantage of the better support for service files along with matching most OpenStack documentation. The remaining sysvinit parts will be removed as we get the openstack components updated and back to a working state.
--- meta-openstack/README.setup | 14 ++++++++++++++ .../recipes-devtools/python/python-cinder_git.bb | 4 ++++ .../recipes-devtools/python/python-glance_git.bb | 2 ++ .../recipes-devtools/python/python-horizon_git.bb | 1 + .../recipes-devtools/python/python-keystone_git.bb | 12 ++++++------ .../recipes-devtools/python/python-neutron_git.bb | 1 + meta-openstack/recipes-devtools/python/python-nova_git.bb | 12 ++++++++++++ meta-openstack/recipes-devtools/python/python-trove_git.bb | 3 +++ 8 files changed, 43 insertions(+), 6 deletions(-)
meta-openstack/README.setup +14 -0
@@ -84,6 +84,20 @@ to the bblayers.conf file: /meta-openembedded/meta-webserver \ /meta-openembedded/meta-ruby +* All images must use systemd init system. After the builddir has been +initialized you have to append the necessary variables to ensure that +systemd will be used in your images: + + DISTRO_FEATURES_append = " systemd" + DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" + VIRTUAL-RUNTIME_init_manager = "systemd" + VIRTUAL-RUNTIME_initscripts = "systemd-compat-units" + +Additionally activiate the meta-virtualization layer: + + DISTRO_FEATURES_append += "virtualization kvm" + + Package configurations ----------------------
meta-openstack/recipes-devtools/python/python-cinder_git.bb +4 -0
@@ -152,6 +152,10 @@ pkg_postinst_${SRCNAME}-setup () { PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" ALLOW_EMPTY_${SRCNAME}-setup = "1" +ALLOW_EMPTY_${SRCNAME}-backup = "1" +ALLOW_EMPTY_${SRCNAME}-scheduler = "1" +ALLOW_EMPTY_${SRCNAME}-volume = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" RDEPENDS_${SRCNAME}-tests += " bash python"
meta-openstack/recipes-devtools/python/python-glance_git.bb +2 -0
@@ -138,6 +138,8 @@ pkg_postinst_${SRCNAME}-setup () { PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" ALLOW_EMPTY_${SRCNAME}-setup = "1" +ALLOW_EMPTY_${SRCNAME}-registry = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" FILES_${PN} = " \ ${libdir}/* \
meta-openstack/recipes-devtools/python/python-horizon_git.bb +1 -0
@@ -147,6 +147,7 @@ do_install_append() { } PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" +ALLOW_EMPTY_${SRCNAME}-standalone = "1" RDEPENDS_${SRCNAME}-tests += " bash"
meta-openstack/recipes-devtools/python/python-keystone_git.bb +6 -6
@@ -128,12 +128,12 @@ do_install_append() { sed -e "s:%TOKEN_FORMAT%:${TOKEN_FORMAT}:g" \ -i ${KEYSTONE_CONF_DIR}/keystone.conf - sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \ - -i ${D}${sysconfdir}/init.d/keystone - sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \ - -i ${D}${sysconfdir}/init.d/keystone - sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \ - -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp
meta-openstack/recipes-devtools/python/python-neutron_git.bb +1 -0
@@ -56,6 +56,7 @@ do_install_append() { install -m 600 ${S}/etc/api-paste.ini ${NEUTRON_CONF_DIR}/ install -m 600 ${S}/etc/policy.json ${NEUTRON_CONF_DIR}/ install -m 600 ${TEMPLATE_CONF_DIR}/neutron/plugins/ml2/* ${NEUTRON_CONF_DIR}/plugins/ml2 + install -m 600 ${WORKDIR}/metadata_agent.ini ${NEUTRON_CONF_DIR}/ # Neutron.conf config changes (replace with .ini file editing) sed -e "s:^# core_plugin.*:core_plugin = ml2:g" -i ${NEUTRON_CONF_DIR}/neutron.conf
meta-openstack/recipes-devtools/python/python-nova_git.bb +12 -0
@@ -212,6 +212,18 @@ FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" ALLOW_EMPTY_${SRCNAME}-setup = "1" ALLOW_EMPTY_${SRCNAME}-ec2 = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" +ALLOW_EMPTY_${SRCNAME}-compute = "1" +ALLOW_EMPTY_${SRCNAME}-controller = "1" +ALLOW_EMPTY_${SRCNAME}-consoleauth = "1" +ALLOW_EMPTY_${SRCNAME}-cert = "1" +ALLOW_EMPTY_${SRCNAME}-conductor = "1" +ALLOW_EMPTY_${SRCNAME}-network = "1" +ALLOW_EMPTY_${SRCNAME}-novncproxy = "1" +ALLOW_EMPTY_${SRCNAME}-scheduler = "1" +ALLOW_EMPTY_${SRCNAME}-spicehtml5proxy = "1" + + FILES_${PN} = "${libdir}/*"
meta-openstack/recipes-devtools/python/python-trove_git.bb +3 -0
@@ -210,6 +210,7 @@ FILES_${SRCNAME} = " \ FILES_${SRCNAME}-api = " \ ${sysconfdir}/init.d/trove-api \ " +ALLOW_EMPTY_${SRCNAME}-api = "1" FILES_${SRCNAME}-bin = " \ ${bindir}/* \
@@ -218,10 +219,12 @@ FILES_${SRCNAME}-bin = " \ FILES_${SRCNAME}-conductor = " \ ${sysconfdir}/init.d/trove-conductor \ " +ALLOW_EMPTY_${SRCNAME}-conductor = "1" FILES_${SRCNAME}-taskmanager = " \ ${sysconfdir}/init.d/trove-taskmanager \ " +ALLOW_EMPTY_${SRCNAME}-taskmanager = "1" FILES_${SRCNAME}-setup = " \ ${localstatedir}/* \
Signature · 1 line
2.7.4
All the outstanding openstack changes are now merged.
Bruce
Quoted 174 lines · Mark Asselstine
Add instructions to the README.setup on how to configure the build to use systemd. The remaining changes are a bit of hack and slash to get the builds to succeed. The 'hacking' only touches core openstack component recipes which are all in various states of broken anyways, so these changes will not affect any current meta-cloud-services users. All of these will be corrected shortly.
Most users of OpenStack have long ago made the move to systemd, by following suit we can take advantage of the better support for service files along with matching most OpenStack documentation. The remaining sysvinit parts will be removed as we get the openstack components updated and back to a working state.
Signed-off-by Mark Asselstine <[email protected]>--- meta-openstack/README.setup | 14 ++++++++++++++ .../recipes-devtools/python/python-cinder_git.bb | 4 ++++ .../recipes-devtools/python/python-glance_git.bb | 2 ++ .../recipes-devtools/python/python-horizon_git.bb | 1 + .../recipes-devtools/python/python-keystone_git.bb | 12 ++++++------ .../recipes-devtools/python/python-neutron_git.bb | 1 + meta-openstack/recipes-devtools/python/python-nova_git.bb | 12 ++++++++++++ meta-openstack/recipes-devtools/python/python-trove_git.bb | 3 +++ 8 files changed, 43 insertions(+), 6 deletions(-)meta-openstack/README.setup +14
-0@@ -84,6 +84,20 @@ to the bblayers.conf file: /meta-openembedded/meta-webserver \ /meta-openembedded/meta-ruby +* All images must use systemd init system. After the builddir has been +initialized you have to append the necessary variables to ensure that +systemd will be used in your images: + + DISTRO_FEATURES_append = " systemd" + DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" + VIRTUAL-RUNTIME_init_manager = "systemd" + VIRTUAL-RUNTIME_initscripts = "systemd-compat-units" + +Additionally activiate the meta-virtualization layer: + + DISTRO_FEATURES_append += "virtualization kvm" + + Package configurations ----------------------meta-openstack/recipes-devtools/python/python-cinder_git.bb +4
-0@@ -152,6 +152,10 @@ pkg_postinst_${SRCNAME}-setup () { PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" ALLOW_EMPTY_${SRCNAME}-setup = "1" +ALLOW_EMPTY_${SRCNAME}-backup = "1" +ALLOW_EMPTY_${SRCNAME}-scheduler = "1" +ALLOW_EMPTY_${SRCNAME}-volume = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" RDEPENDS_${SRCNAME}-tests += " bash python"meta-openstack/recipes-devtools/python/python-glance_git.bb +2
-0@@ -138,6 +138,8 @@ pkg_postinst_${SRCNAME}-setup () { PACKAGES += " ${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-registry" ALLOW_EMPTY_${SRCNAME}-setup = "1" +ALLOW_EMPTY_${SRCNAME}-registry = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" FILES_${PN} = " \ ${libdir}/* \meta-openstack/recipes-devtools/python/python-horizon_git.bb +1
-0@@ -147,6 +147,7 @@ do_install_append() { } PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" +ALLOW_EMPTY_${SRCNAME}-standalone = "1" RDEPENDS_${SRCNAME}-tests += " bash"meta-openstack/recipes-devtools/python/python-keystone_git.bb +6
-6@@ -128,12 +128,12 @@ do_install_append() { sed -e "s:%TOKEN_FORMAT%:${TOKEN_FORMAT}:g" \ -i ${KEYSTONE_CONF_DIR}/keystone.conf - sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \ - -i ${D}${sysconfdir}/init.d/keystone - sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \ - -i ${D}${sysconfdir}/init.d/keystone - sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \ - -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone +# sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \ +# -i ${D}${sysconfdir}/init.d/keystone install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmpmeta-openstack/recipes-devtools/python/python-neutron_git.bb +1
-0@@ -56,6 +56,7 @@ do_install_append() { install -m 600 ${S}/etc/api-paste.ini ${NEUTRON_CONF_DIR}/ install -m 600 ${S}/etc/policy.json ${NEUTRON_CONF_DIR}/ install -m 600 ${TEMPLATE_CONF_DIR}/neutron/plugins/ml2/* ${NEUTRON_CONF_DIR}/plugins/ml2 + install -m 600 ${WORKDIR}/metadata_agent.ini ${NEUTRON_CONF_DIR}/ # Neutron.conf config changes (replace with .ini file editing) sed -e "s:^# core_plugin.*:core_plugin = ml2:g" -i ${NEUTRON_CONF_DIR}/neutron.confmeta-openstack/recipes-devtools/python/python-nova_git.bb +12
-0@@ -212,6 +212,18 @@ FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" ALLOW_EMPTY_${SRCNAME}-setup = "1" ALLOW_EMPTY_${SRCNAME}-ec2 = "1" +ALLOW_EMPTY_${SRCNAME}-api = "1" +ALLOW_EMPTY_${SRCNAME}-compute = "1" +ALLOW_EMPTY_${SRCNAME}-controller = "1" +ALLOW_EMPTY_${SRCNAME}-consoleauth = "1" +ALLOW_EMPTY_${SRCNAME}-cert = "1" +ALLOW_EMPTY_${SRCNAME}-conductor = "1" +ALLOW_EMPTY_${SRCNAME}-network = "1" +ALLOW_EMPTY_${SRCNAME}-novncproxy = "1" +ALLOW_EMPTY_${SRCNAME}-scheduler = "1" +ALLOW_EMPTY_${SRCNAME}-spicehtml5proxy = "1" + + FILES_${PN} = "${libdir}/*"meta-openstack/recipes-devtools/python/python-trove_git.bb +3
-0@@ -210,6 +210,7 @@ FILES_${SRCNAME} = " \ FILES_${SRCNAME}-api = " \ ${sysconfdir}/init.d/trove-api \ " +ALLOW_EMPTY_${SRCNAME}-api = "1" FILES_${SRCNAME}-bin = " \ ${bindir}/* \@@ -218,10 +219,12 @@ FILES_${SRCNAME}-bin = " \ FILES_${SRCNAME}-conductor = " \ ${sysconfdir}/init.d/trove-conductor \ " +ALLOW_EMPTY_${SRCNAME}-conductor = "1" FILES_${SRCNAME}-taskmanager = " \ ${sysconfdir}/init.d/trove-taskmanager \ " +ALLOW_EMPTY_${SRCNAME}-taskmanager = "1" FILES_${SRCNAME}-setup = " \ ${localstatedir}/* \