Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 52F79E00C45; Mon, 27 Nov 2017 07:40:50 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5ADA0E00AF2 for ; Mon, 27 Nov 2017 07:40:48 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id vARFemUN022608 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 27 Nov 2017 07:40:48 -0800 (PST) Received: from [128.224.56.93] (128.224.56.93) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.361.1; Mon, 27 Nov 2017 07:40:47 -0800 To: Mark Asselstine , References: <1511366817-5797-1-git-send-email-mark.asselstine@windriver.com> From: Bruce Ashfield Message-ID: Date: Mon, 27 Nov 2017 10:40:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1511366817-5797-1-git-send-email-mark.asselstine@windriver.com> Subject: Re: [m-c-s][PATCH] meta-openstack: initial move to use systemd X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:40:50 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit All the outstanding openstack changes are now merged. Bruce On 11/22/2017 11:06 AM, Mark Asselstine wrote: > 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 > --- > 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(-) > > diff --git a/meta-openstack/README.setup b/meta-openstack/README.setup > index d55883f..b02ebf6 100644 > --- a/meta-openstack/README.setup > +++ b/meta-openstack/README.setup > @@ -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 > ---------------------- > > diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb > index 9f70beb..3523038 100644 > --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb > @@ -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" > > diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb > index 4042f1b..4c408c9 100644 > --- a/meta-openstack/recipes-devtools/python/python-glance_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb > @@ -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}/* \ > diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb > index 69d19f5..51025e7 100644 > --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb > @@ -147,6 +147,7 @@ do_install_append() { > } > > PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" > +ALLOW_EMPTY_${SRCNAME}-standalone = "1" > > RDEPENDS_${SRCNAME}-tests += " bash" > > diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb > index a26c9bf..b5f92dd 100644 > --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb > @@ -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 > > diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb > index c837401..f2a4baa 100644 > --- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb > @@ -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 > diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb > index 7b560a7..115d198 100644 > --- a/meta-openstack/recipes-devtools/python/python-nova_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb > @@ -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}/*" > > diff --git a/meta-openstack/recipes-devtools/python/python-trove_git.bb b/meta-openstack/recipes-devtools/python/python-trove_git.bb > index b90e552..e1f8ae0 100755 > --- a/meta-openstack/recipes-devtools/python/python-trove_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-trove_git.bb > @@ -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}/* \ >