On 10/25/16 at 05:17pm, Dave Young wrote:
Li Tong, could you resend the patch 2 and fix the build issue? I got
below
error in a scratch build:
cp: cannot stat 'live-image-kdump-howto.txt': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ObdngJ (%doc)
RPM build errors:
error: File not found:
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
Bad exit status from /var/tmp/rpm-tmp.ObdngJ (%doc)
File not found:
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
Child return code was: 1
Here is more output of the failure:
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ObdngJ
+ umask 022
+ cd /builddir/build/BUILD
+ cd kexec-tools-2.0.13
+
DOCDIR=/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ export DOCDIR
+ /usr/bin/mkdir -p
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr News
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr COPYING
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr TODO
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr kexec-kdump-howto.txt
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr kdump-in-cluster-environment.txt
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
+ cp -pr live-image-kdump-howto.txt
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools
cp: cannot stat 'live-image-kdump-howto.txt': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ObdngJ (%doc)
RPM build errors:
error: File not found:
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
Bad exit status from /var/tmp/rpm-tmp.ObdngJ (%doc)
File not found:
/builddir/build/BUILDROOT/kexec-tools-2.0.13-6.fc25.x86_64/usr/share/doc/kexec-tools/live-image-kdump-howto.txt
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/mockbuild/trace_decorator.py",
line 88, in trace
result = func(*args, **kw)
File "/usr/lib/python3.5/site-packages/mockbuild/util.py", line 562,
in do
raise exception.Error("Command failed. See logs for output.\n # %s"
% (command,), child.returncode)
mockbuild.exception.Error: Command failed. See logs for output.
# bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps
# /builddir/build/SPECS/kexec-tools.spec
>
>
> On 10/25/16 at 03:37pm, Dave Young wrote:
> > On 10/14/16 at 03:54pm, Tong Li wrote:
> > > This is a short document about how to setup kdump on live images. All
> > > steps were tested on Fedora 25 Alpha LiveCD and saved vmcore captured
> > > by kdump to a USB stick successfully.
> > >
> > > Signed-off-by: Tong Li <tonli(a)redhat.com>
> > > ---
> > > kexec-tools.spec | 2 ++
> > > live-image-kdump-howto.txt | 23 +++++++++++++++++++++++
> > > 2 files changed, 25 insertions(+)
> > > create mode 100644 live-image-kdump-howto.txt
> > >
> > > diff --git a/kexec-tools.spec b/kexec-tools.spec
> > > index 8063078..7014968 100644
> > > --- a/kexec-tools.spec
> > > +++ b/kexec-tools.spec
> > > @@ -28,6 +28,7 @@ Source23: kdump-anaconda-addon-005-19-g6577df4.tar.gz
> > > Source24: kdump-lib-initramfs.sh
> > > Source25: kdump.sysconfig.ppc64le
> > > Source26: kdumpctl.8
> > > +Source27: live-image-kdump-howto.txt
> > >
> > > #######################################
> > > # These are sources for mkdumpramfs
> > > @@ -305,6 +306,7 @@ done
> > > %doc TODO
> > > %doc kexec-kdump-howto.txt
> > > %doc kdump-in-cluster-environment.txt
> > > +%doc live-image-kdump-howto.txt
> > > %ifarch %{ix86} x86_64 ppc64 s390x ppc64le
> > > %{_libdir}/eppic_makedumpfile.so
> > > /usr/share/makedumpfile/eppic_scripts/
> > > diff --git a/live-image-kdump-howto.txt b/live-image-kdump-howto.txt
> > > new file mode 100644
> > > index 0000000..e0bc9f1
> > > --- /dev/null
> > > +++ b/live-image-kdump-howto.txt
> > > @@ -0,0 +1,23 @@
> > > +Kdump now works on live images with some manual configurations. Here is
the step
> > > +by step guide.
> > > +
> > > +1. Enable crashkernel reservation
> > > +
> > > +Since there isn't any config file that can be used to configure
kernel
> > > +parameters for live images before booting them, we have to append
'crashkernel'
> > > +argument in boot menu every time we boot a live image.
> > > +
> > > +2. Change dump target in /etc/kdump.conf
> > > +
> > > +When kdump kernel boots in a live environment, the default target
/var/crash is
> > > +in RAM so you need to change the dump target to an external disk or a
network
> > > +dump target.
> > > +
> > > +3. Start kdump service
> > > +
> > > + $ kdumpctl start
> > > +
> > > +4. Trigger a kdump test
> > > +
> > > + $ echo 1 > /proc/sys/kernel/sysrq
> > > + $ echo c > /proc/sysrq-trigger
> > > --
> > > 2.7.4
> > > _______________________________________________
> > > kexec mailing list -- kexec(a)lists.fedoraproject.org
> > > To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> >
> > Acked-by: Dave Young <dyoung(a)redhat.com>
> >
> > Thanks
> > Dave
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org