All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: "Hongzhi.Song" <hongzhi.song@windriver.com>
Cc: meta-virtualization@yoctoproject.org
Subject: Re: [PATCH] ceph: fix ceph-crash failed with /var/lib/ceph/crash/posted not found
Date: Sat, 14 Sep 2019 23:52:31 -0400	[thread overview]
Message-ID: <20190915035228.GA3928@gmail.com> (raw)
In-Reply-To: <20190911032611.77049-1-hongzhi.song@windriver.com>

merged.

Bruce

In message: [meta-virtualization] [PATCH] ceph: fix ceph-crash failed with /var/lib/ceph/crash/posted not found
on 10/09/2019 Hongzhi.Song wrote:

> root@intelx86-64: journalctl -xe
> ceph-crash[854]: ERROR:_main_:directory /var/lib/ceph/crash/posted does
> not exist; please create
> 
> Create the directory for both of systemd and sysvinit
> 
> Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
> ---
>  recipes-extended/ceph/ceph_14.2.3.bb | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/recipes-extended/ceph/ceph_14.2.3.bb b/recipes-extended/ceph/ceph_14.2.3.bb
> index 722efe3..25a8ea2 100644
> --- a/recipes-extended/ceph/ceph_14.2.3.bb
> +++ b/recipes-extended/ceph/ceph_14.2.3.bb
> @@ -81,12 +81,36 @@ do_install_append () {
>  	rm ${D}${systemd_unitdir}/system/ceph-fuse.target ${D}${systemd_unitdir}/system/ceph-fuse@.service
>  }
>  
> +do_install_append_class-target () {
> +	if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
> +		install -d ${D}${sysconfdir}/tmpfiles.d
> +		echo "d /var/lib/ceph/crash/posted 0755 root root - -" > ${D}${sysconfdir}/tmpfiles.d/ceph-placeholder.conf
> +	fi
> +
> +	if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
> +		install -d ${D}${sysconfdir}/default/volatiles
> +		echo "d root root 0755 /var/lib/ceph/crash/posted none" > ${D}${sysconfdir}/default/volatiles/99_ceph-placeholder
> +	fi
> +}
> +
> +pkg_postinst_${PN}() {
> +	if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
> +		${sysconfdir}/init.d/populate-volatile.sh update
> +	fi
> +}
> +
>  FILES_${PN} += "\
>  		${libdir}/rados-classes/*.so.* \
>  		${libdir}/ceph/compressor/*.so \
>  		${libdir}/rados-classes/*.so \
>  		${libdir}/ceph/*.so \
>  "
> +
> +FILES_${PN} += " \
> +    /etc/tmpfiles.d/ceph-placeholder.conf \
> +    /etc/default/volatiles/99_ceph-placeholder \
> +"
> +
>  FILES_${PN}-python = "\
>                  ${PYTHON_SITEPACKAGES_DIR}/* \
>  "
> -- 
> 2.23.0
> 
> -- 
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization


      reply	other threads:[~2019-09-15  3:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11  3:26 [PATCH] ceph: fix ceph-crash failed with /var/lib/ceph/crash/posted not found Hongzhi.Song
2019-09-15  3:52 ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190915035228.GA3928@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=hongzhi.song@windriver.com \
    --cc=meta-virtualization@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.