Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kdump can not work correctly in rhels7.6 and rhels7.6-alt #5712

Closed
hu-weihua opened this issue Oct 17, 2018 · 1 comment
Closed

Kdump can not work correctly in rhels7.6 and rhels7.6-alt #5712

hu-weihua opened this issue Oct 17, 2018 · 1 comment
Assignees
Milestone

Comments

@hu-weihua
Copy link

xcat version : Version 2.14.4 (git commit fd8ae36, built Tue Oct 16 07:15:51 EDT 2018)

Kdump can not work correctly in rhels7.6 and rhels7.6-alt.

RUN:lsdef -z f5u14 > /tmp/node.stanza [Wed Oct 17 01:34:42 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:lsdef -t osimage -z rhels7.6-alternate-ppc64le-netboot-compute > /tmp/osimage.stanza [Wed Oct 17 01:34:43 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:chdef -t node -o f5u14 servicenode= monserver=f6u13k10 nfsserver=f6u13k10 tftpserver=f6u13k10  xcatmaster=f6u13k10 [Wed Oct 17 01:34:44 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.
CHECK:rc == 0   [Pass]

RUN:makedns -n [Wed Oct 17 01:34:45 2018]
ElapsedTime:3 sec
RETURN rc = 0
OUTPUT:
Handling c910f03c09k03 in /etc/hosts.
......
Handling c910f03c09k05 in /etc/hosts.
Getting reverse zones, this may take several minutes for a large cluster.
Completed getting reverse zones.
Updating zones.
Completed updating zones.
Restarting named
Restarting named complete
Updating DNS records, this may take several minutes for a large cluster.
Completed updating DNS records.
DNS setup is completed
CHECK:rc == 0   [Pass]

RUN:if [[ "ppc64le" = "ppc64" ]] && [[ "openbmc" != "ipmi" ]]; then getmacs -D f5u14; fi [Wed Oct 17 01:34:48 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
CHECK:rc == 0   [Pass]

RUN:makedhcp -n [Wed Oct 17 01:34:49 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
Warning: [f6u13k10]: No dynamic range specified for 10.0.0.0. If hardware discovery is being used, a dynamic range is required.
Warning: [f6u13k11]: No dynamic range specified for 10.0.0.0. If hardware discovery is being used, a dynamic range is required.
Renamed existing dhcp configuration file to  /etc/dhcp/dhcpd.conf.xcatbak

Renamed existing dhcp configuration file to  /etc/dhcp/dhcpd.conf.xcatbak

CHECK:rc == 0   [Pass]

RUN:makedhcp -a [Wed Oct 17 01:34:50 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:
CHECK:rc == 0   [Pass]

RUN:a=0;while true; do [ $a -eq 100 ] && exit 1;output=$(makedhcp -q f5u14);[ $? -ne 0 ] && exit 1;echo $output|grep f5u14 2>/dev/null && exit 0;a=$[$a+1];sleep 1;done [Wed Oct 17 01:34:50 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
f5u14: ip-address = 10.5.14.1, hardware-address = 70:e2:84:14:6e:fb f5u14: ip-address = 10.5.14.1, hardware-address = 70:e2:84:14:6e:fb
CHECK:rc == 0   [Pass]

RUN:copycds /Pegas-7.6-Server-ppc64le-dvd1-stable.iso [Wed Oct 17 01:34:51 2018]
ElapsedTime:33 sec
RETURN rc = 0
OUTPUT:
Copying media to /install/rhels7.6-alternate/ppc64le
Media copy operation successful
CHECK:rc == 0   [Pass]

RUN:rootimgdir=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak -f;fi [Wed Oct 17 01:35:24 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
CHECK:rc == 0   [Pass]

RUN:pkglistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep pkglist|awk -F'=' '{print $2}'`;cp $pkglistfile $pkglistfile.bak [Wed Oct 17 01:35:25 2018]
ElapsedTime:2 sec
RETURN rc = 0
OUTPUT:

RUN:pkglistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep pkglist|awk -F'=' '{print $2}'`; if grep SUSE /etc/*release;then echo -e "kdump\nkexec-tools\nmakedumpfile\nat\n" >> $pkglistfile; elif grep "Red Hat" /etc/*release;then echo -e "kexec-tools\ncrash\nat\n" >> $pkglistfile;fi [Wed Oct 17 01:35:27 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
/etc/os-release:NAME="Red Hat Enterprise Linux Server"
/etc/os-release:PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 Beta (Maipo)"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
/etc/os-release:REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
/etc/redhat-release:Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
/etc/system-release:Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
CHECK:rc == 0   [Pass]

RUN:exlistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep exlist|awk -F'=' '{print $2}'`;cp $exlistfile $exlistfile.bak [Wed Oct 17 01:35:28 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:exlistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep exlist|awk -F'=' '{print $2}'`; sed -i '/boot/d' $exlistfile [Wed Oct 17 01:35:29 2018]
ElapsedTime:2 sec
RETURN rc = 0
OUTPUT:
CHECK:rc == 0   [Pass]

RUN:postinstallfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`;cp $postinstallfile $postinstallfile.bak [Wed Oct 17 01:35:31 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:postinstallfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`; if grep SUSE /etc/*release;then sed -i "/\/tmp/ s/10/200/g" $postinstallfile; elif grep "Red Hat" /etc/*release;then sed -i /devpts/a"tmpfs         /var/tmp    tmpfs   defaults,size=200m   0 2" $postinstallfile;fi [Wed Oct 17 01:35:32 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
/etc/os-release:NAME="Red Hat Enterprise Linux Server"
/etc/os-release:PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 Beta (Maipo)"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
/etc/os-release:REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
/etc/redhat-release:Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
/etc/system-release:Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
CHECK:rc == 0   [Pass]

RUN:if [ ! -d /kdumpdir ]; then mkdir -p /kdumpdir && chmod 777 /kdumpdir; fi [Wed Oct 17 01:35:33 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:if [ ! -f /etc/exports ] ;then touch /etc/exports;else cp /etc/exports /etc/exports.bak;fi [Wed Oct 17 01:35:33 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:cat /etc/exports|grep kdumpdir; if [ "$?" -ne "0" ]; then echo "/kdumpdir *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi [Wed Oct 17 01:35:33 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:cd /etc; export exports;cd -;service nfs restart [Wed Oct 17 01:35:33 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
/opt/xcat/share/xcat/tools/autotest/bundle
Redirecting to /bin/systemctl restart nfs.service

RUN:chdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute dump=nfs://f6u13k10/kdumpdir [Wed Oct 17 01:35:34 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.
CHECK:rc == 0   [Pass]

RUN:chdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute crashkernelsize=auto [Wed Oct 17 01:35:35 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.
CHECK:rc == 0   [Pass]

RUN:chdef -t node f5u14 -p postscripts=enablekdump [Wed Oct 17 01:35:36 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.
CHECK:rc == 0   [Pass]

RUN:genimage  rhels7.6-alternate-ppc64le-netboot-compute [Wed Oct 17 01:35:37 2018]
ElapsedTime:126 sec
RETURN rc = 0
OUTPUT:
Generating image:
cd /opt/xcat/share/xcat/netboot/rh; ./genimage -a ppc64le -o rhels7.6-alternate -p compute --permission 755 --srcdir "/install/rhels7.6-alternate/ppc64le" --pkglist /opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.pkglist --otherpkgdir "/install/post/otherpkgs/rhels7.6-alternate/ppc64le" --postinstall "/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstall" --rootimgdir /install/netboot/rhels7.6-alternate/ppc64le/compute --tempfile /tmp/xcat_genimage.15555 rhels7.6-alternate-ppc64le-netboot-compute
91 blocks
/opt/xcat/share/xcat/netboot/rh
91 blocks
/opt/xcat/share/xcat/netboot/rh
 yum -y -c /tmp/genimage.15570.yum.conf --installroot=/install/netboot/rhels7.6-alternate/ppc64le/compute/rootimg/ --disablerepo=* --enablerepo=rhels7.6-alternate-ppc64le-0  install  bash nfs-utils openssl dhclient kernel openssh-server openssh-clients wget rsyslog vim-minimal ntp rsyslog rpm rsync ppc64-utils iputils dracut dracut-network e2fsprogs bc file lsvpd irqbalance procps-ng parted net-tools gzip tar xz grub2 grub2-tools bzip2 ethtool kexec-tools crash at
Resolving Dependencies
--> Running transaction check
---> Package at.ppc64le 0:3.1.13-24.el7 will be installed
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: at-3.1.13-24.el7.ppc64le
--> Processing Dependency: rtld(GNU_HASH) for package: at-3.1.13-24.el7.ppc64le
......
---> Package keyutils.ppc64le 0:1.5.8-3.el7 will be installed
---> Package keyutils-libs.ppc64le 0:1.5.8-3.el7 will be installed
---> Package kmod.ppc64le 0:20-22.el7 will be installed
================================================================================
 Package            Arch    Version          Repository                    Size
================================================================================
Installing:
 at                 ppc64le 3.1.13-24.el7    rhels7.6-alternate-ppc64le-0  51 k
 bash               ppc64le 4.2.46-31.el7    rhels7.6-alternate-ppc64le-0 1.0 M
 bc                 ppc64le 1.06.95-13.el7   rhels7.6-alternate-ppc64le-0 117 k
 ....... 
 zlib               ppc64le 1.2.7-18.el7     rhels7.6-alternate-ppc64le-0  97 k
Transaction Summary
================================================================================
Install  35 Packages (+256 Dependent packages)
Total download size: 213 M
Installed size: 824 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              139 MB/s | 213 MB  00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libgcc-4.8.5-36.el7.ppc64le                                1/291
  Installing : redhat-release-server-7.6-2.el7a.ppc64le                   2/291
  .......
  Installing : bzip2-1.0.6-13.el7.ppc64le                               291/291
Turning off host-only mode: '/run' is not mounted!
Turning off host-only mode: '/dev' is not mounted!
  Verifying  : 1:nfs-utils-1.3.0-0.57.el7.ppc64le                         1/291
  ......
  Verifying  : 12:dhclient-4.2.5-68.el7_5.1.ppc64le                     291/291
Installed:
  at.ppc64le 0:3.1.13-24.el7
  bash.ppc64le 0:4.2.46-31.el7
  .....
  xz.ppc64le 0:5.2.2-1.el7
Dependency Installed:
  GeoIP.ppc64le 0:1.5.0-13.el7
  acl.ppc64le 0:2.2.51-14.el7
  .....
  zlib.ppc64le 0:1.2.7-18.el7
Complete!
Enter the dracut mode. Dracut version: 033. Dracut directory: dracut_033.
Try to load drivers: ext3 ext4 to initrd.
chroot /install/netboot/rhels7.6-alternate/ppc64le/compute/rootimg dracut  -f /tmp/initrd.15570.gz 4.14.0-104.el7a.ppc64le
No '/dev/log' or 'logger' included for syslog logging
Turning off host-only mode: '/sys' is not mounted!
Turning off host-only mode: '/proc' is not mounted!
Turning off host-only mode: '/run' is not mounted!
Turning off host-only mode: '/dev' is not mounted!
the initial ramdisk for stateless is generated successfully.
Try to load drivers: ext3 ext4 to initrd.
chroot /install/netboot/rhels7.6-alternate/ppc64le/compute/rootimg dracut  -f /tmp/initrd.15570.gz 4.14.0-104.el7a.ppc64le
No '/dev/log' or 'logger' included for syslog logging
Turning off host-only mode: '/sys' is not mounted!
Turning off host-only mode: '/proc' is not mounted!
Turning off host-only mode: '/run' is not mounted!
Turning off host-only mode: '/dev' is not mounted!
the initial ramdisk for statelite is generated successfully.
CHECK:rc == 0   [Pass]

RUN:packimage rhels7.6-alternate-ppc64le-netboot-compute [Wed Oct 17 01:37:43 2018]
ElapsedTime:49 sec
RETURN rc = 0
OUTPUT:
Packing contents of /install/netboot/rhels7.6-alternate/ppc64le/compute/rootimg
archive method:cpio
compress method:gzip

CHECK:rc == 0   [Pass]

RUN:rinstall f5u14 osimage=rhels7.6-alternate-ppc64le-netboot-compute [Wed Oct 17 01:38:32 2018]
ElapsedTime:19 sec
RETURN rc = 0
OUTPUT:
Provision node(s): f5u14
CHECK:rc == 0   [Pass]
CHECK:output =~ Provision node\(s\)\: f5u14     [Pass]

RUN:sleep 300 [Wed Oct 17 01:38:51 2018]
ElapsedTime:300 sec
RETURN rc = 0
OUTPUT:

RUN:a=0;while ! `lsdef -l f5u14|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done [Wed Oct 17 01:43:51 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:ping f5u14 -c 3 [Wed Oct 17 01:43:51 2018]
ElapsedTime:2 sec
RETURN rc = 0
OUTPUT:
PING f5u14 (10.5.14.1) 56(84) bytes of data.
64 bytes from f5u14 (10.5.14.1): icmp_seq=1 ttl=64 time=0.261 ms
64 bytes from f5u14 (10.5.14.1): icmp_seq=2 ttl=64 time=0.188 ms
64 bytes from f5u14 (10.5.14.1): icmp_seq=3 ttl=64 time=0.163 ms

--- f5u14 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2060ms
rtt min/avg/max/mdev = 0.163/0.204/0.261/0.041 ms
CHECK:rc == 0   [Pass]
CHECK:output =~ 64 bytes from f5u14     [Pass]

RUN:lsdef -l f5u14 | grep status [Wed Oct 17 01:43:53 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
    status=booted
    statustime=10-17-2018 01:41:54
    updatestatus=syncing
    updatestatustime=10-17-2018 01:17:04
CHECK:rc == 0   [Pass]
CHECK:output =~ booted  [Pass]

RUN:xdsh f5u14 date [Wed Oct 17 01:43:54 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
f5u14: Wed Oct 17 01:36:15 EDT 2018
CHECK:rc == 0   [Pass]
CHECK:output =~ \d\d:\d\d:\d\d  [Pass]

RUN:xdsh f5u14 "echo 'echo 1 > /proc/sys/kernel/sysrq; echo c > /proc/sysrq-trigger' > /tmp/kdump.trigger" [Wed Oct 17 01:43:55 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:xdsh f5u14 "chmod 755 /tmp/kdump.trigger" [Wed Oct 17 01:43:55 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:xdsh f5u14 "service atd start" [Wed Oct 17 01:43:56 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:
[f6u13k10]: f5u14: Redirecting to /bin/systemctl start atd.service

RUN:xdsh f5u14 "at now +1 minutes <<< /tmp/kdump.trigger" [Wed Oct 17 01:43:56 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
[f6u13k10]: f5u14: job 1 at Wed Oct 17 01:37:00 2018

RUN:sleep 300 [Wed Oct 17 01:43:57 2018]
ElapsedTime:300 sec
RETURN rc = 0
OUTPUT:

RUN:vmcorefile=`find /kdumpdir/ -name vmcore`;if [[ -s $vmcorefile ]]; then echo "this file is not empty";else echo "this file is empty"; fi [Wed Oct 17 01:48:57 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:
this file is empty
CHECK:output =~ not empty       [Failed]

RUN:pkglistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep pkglist|awk -F'=' '{print $2}'`;mv -f $pkglistfile.bak $pkglistfile [Wed Oct 17 01:48:57 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:exlistfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep exlist|awk -F'=' '{print $2}'`;mv -f $exlistfile.bak $exlistfile [Wed Oct 17 01:48:58 2018]
ElapsedTime:2 sec
RETURN rc = 0
OUTPUT:

RUN:postinstallfile=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep postinstall|awk -F'=' '{print $2}'`;mv -f $postinstallfile.bak $postinstallfile [Wed Oct 17 01:49:00 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:

RUN:if [ -f /etc/exports.bak ] ;then mv -f /etc/exports.bak /etc/exports; fi [Wed Oct 17 01:49:01 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:rm -rf /kdumpdir [Wed Oct 17 01:49:01 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:

RUN:cat /tmp/node.stanza | chdef -z;rm -rf /tmp/node.stanza [Wed Oct 17 01:49:01 2018]
ElapsedTime:0 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.

RUN:cat /tmp/osimage.stanza | chdef -z;rm -rf /tmp/osimage.stanza [Wed Oct 17 01:49:01 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
1 object definitions have been created or modified.

RUN:rootimgdir=`lsdef -t osimage rhels7.6-alternate-ppc64le-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then mv $rootimgdir.regbak $rootimgdir -f;fi [Wed Oct 17 01:49:02 2018]
ElapsedTime:1 sec
RETURN rc = 0
OUTPUT:
@hu-weihua
Copy link
Author

Have been verified by xcat 20181018.0715 build. closed this issue.

Thanks @bybai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants