Project

General

Profile

Bug #52944

TypeError: 'in <string>' requires string as left operand, not NoneType

Added by Patrick Donnelly over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Immediate
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

2021-10-13T18:10:15.699 DEBUG:teuthology.task.kernel:install_kernel(remote=ubuntu@smithi094.front.sepia.ceph.com, path=None, version=None)
2021-10-13T18:10:15.700 DEBUG:teuthology.orchestra.run.smithi094:> rpm -q kernel --last | head -n 1
2021-10-13T18:10:15.799 INFO:teuthology.orchestra.run.smithi094.stdout:kernel-5.15.0_rc5_ceph_g2baf9e439501-1.x86_64 Wed 13 Oct 2021 06:09:55 PM UTC
2021-10-13T18:10:15.800 DEBUG:teuthology.task.kernel:get_latest_image_version_rpm: None
2021-10-13T18:10:15.801 DEBUG:teuthology.orchestra.run.smithi094:> sudo rpm -qi grub2-tools
2021-10-13T18:10:15.831 INFO:teuthology.orchestra.run.smithi094.stdout:Name        : grub2-tools
2021-10-13T18:10:15.831 INFO:teuthology.orchestra.run.smithi094.stdout:Epoch       : 1
2021-10-13T18:10:15.831 INFO:teuthology.orchestra.run.smithi094.stdout:Version     : 2.02
2021-10-13T18:10:15.832 INFO:teuthology.orchestra.run.smithi094.stdout:Release     : 90.el8
2021-10-13T18:10:15.832 INFO:teuthology.orchestra.run.smithi094.stdout:Architecture: x86_64
2021-10-13T18:10:15.832 INFO:teuthology.orchestra.run.smithi094.stdout:Install Date: Wed 11 Aug 2021 06:38:04 PM UTC
2021-10-13T18:10:15.832 INFO:teuthology.orchestra.run.smithi094.stdout:Group       : System Environment/Base
2021-10-13T18:10:15.833 INFO:teuthology.orchestra.run.smithi094.stdout:Size        : 9197207
2021-10-13T18:10:15.833 INFO:teuthology.orchestra.run.smithi094.stdout:License     : GPLv3+
2021-10-13T18:10:15.833 INFO:teuthology.orchestra.run.smithi094.stdout:Signature   : RSA/SHA256, Tue 08 Sep 2020 07:14:39 PM UTC, Key ID 05b555b38483c65d
2021-10-13T18:10:15.833 INFO:teuthology.orchestra.run.smithi094.stdout:Source RPM  : grub2-2.02-90.el8.src.rpm
2021-10-13T18:10:15.834 INFO:teuthology.orchestra.run.smithi094.stdout:Build Date  : Tue 08 Sep 2020 07:00:29 PM UTC
2021-10-13T18:10:15.834 INFO:teuthology.orchestra.run.smithi094.stdout:Build Host  : kbuilder.bsys.centos.org
2021-10-13T18:10:15.835 INFO:teuthology.orchestra.run.smithi094.stdout:Relocations : (not relocatable)
2021-10-13T18:10:15.836 INFO:teuthology.orchestra.run.smithi094.stdout:Packager    : CentOS BuildSystem <http://bugs.centos.org>
2021-10-13T18:10:15.836 INFO:teuthology.orchestra.run.smithi094.stdout:Vendor      : CentOS
2021-10-13T18:10:15.836 INFO:teuthology.orchestra.run.smithi094.stdout:URL         : http://www.gnu.org/software/grub/
2021-10-13T18:10:15.837 INFO:teuthology.orchestra.run.smithi094.stdout:Summary     : Support tools for GRUB.
2021-10-13T18:10:15.837 INFO:teuthology.orchestra.run.smithi094.stdout:Description :
2021-10-13T18:10:15.837 INFO:teuthology.orchestra.run.smithi094.stdout:
2021-10-13T18:10:15.837 INFO:teuthology.orchestra.run.smithi094.stdout:The GRand Unified Bootloader (GRUB) is a highly configurable and
2021-10-13T18:10:15.838 INFO:teuthology.orchestra.run.smithi094.stdout:customizable bootloader with modular architecture.  It supports a rich
2021-10-13T18:10:15.838 INFO:teuthology.orchestra.run.smithi094.stdout:variety of kernel formats, file systems, computer architectures and
2021-10-13T18:10:15.838 INFO:teuthology.orchestra.run.smithi094.stdout:hardware devices.
2021-10-13T18:10:15.838 INFO:teuthology.orchestra.run.smithi094.stdout:
2021-10-13T18:10:15.838 INFO:teuthology.orchestra.run.smithi094.stdout:This subpackage provides tools for support of all platforms.
2021-10-13T18:10:15.839 INFO:teuthology.task.kernel:Updating Grub Version: grub2
2021-10-13T18:10:15.840 INFO:teuthology.task.kernel:Updating grub on smithi094 to boot None
2021-10-13T18:10:15.841 DEBUG:teuthology.orchestra.run.smithi094:> sudo grub2-mkconfig -o /boot/grub2/grub.cfg
2021-10-13T18:10:21.057 INFO:teuthology.orchestra.run.smithi094.stderr:Generating grub configuration file ...
2021-10-13T18:10:23.454 INFO:teuthology.orchestra.run.smithi094.stderr:done
2021-10-13T18:10:23.455 DEBUG:teuthology.orchestra.run.smithi094:> mktemp
2021-10-13T18:10:23.475 INFO:teuthology.orchestra.run.smithi094.stdout:/tmp/tmp.cfSYnb2vBJ
2021-10-13T18:10:23.476 DEBUG:teuthology.orchestra.run.smithi094:> sudo cp /boot/grub2/grub.cfg /tmp/tmp.cfSYnb2vBJ
2021-10-13T18:10:23.566 DEBUG:teuthology.orchestra.run.smithi094:> sudo chmod 0666 /tmp/tmp.cfSYnb2vBJ
2021-10-13T18:10:23.689 DEBUG:teuthology.orchestra.remote:smithi094:/tmp/tmp.cfSYnb2vBJ is 6KB
2021-10-13T18:10:23.737 DEBUG:teuthology.orchestra.run.smithi094:> rm -fr /tmp/tmp.cfSYnb2vBJ
2021-10-13T18:10:23.752 DEBUG:teuthology.orchestra.run.smithi094:> sudo /bin/ls /boot/loader/entries || true
2021-10-13T18:10:23.820 INFO:teuthology.orchestra.run.smithi094.stdout:ecc66dffcd264e5181894e69c53ff13c-0-rescue.conf
2021-10-13T18:10:23.820 INFO:teuthology.orchestra.run.smithi094.stdout:ecc66dffcd264e5181894e69c53ff13c-4.18.0-240.el8.x86_64.conf
2021-10-13T18:10:23.821 INFO:teuthology.orchestra.run.smithi094.stdout:ecc66dffcd264e5181894e69c53ff13c-4.18.0-305.10.2.el8_4.x86_64.conf
2021-10-13T18:10:23.821 INFO:teuthology.orchestra.run.smithi094.stdout:ecc66dffcd264e5181894e69c53ff13c-5.15.0-rc5-ceph-g2baf9e439501.conf
2021-10-13T18:10:23.822 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/run_tasks.py", line 91, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/run_tasks.py", line 70, in run_one_task
    return task(**kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/task/kernel.py", line 1332, in task
    install_and_reboot(ctx, need_install, config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/task/kernel.py", line 521, in install_and_reboot
    install_kernel(role_remote, remote_pkg_path(role_remote))
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/task/kernel.py", line 857, in install_kernel
    update_grub_rpm(remote, version)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/task/kernel.py", line 922, in update_grub_rpm
    grub2_kernel_select_generic(remote, newversion, 'rpm')
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_6f40c4ca66d0ac515a149c2e25df0d91b2dd1a9b/teuthology/task/kernel.py", line 947, in grub2_kernel_select_generic
    if line.endswith('.conf') and newversion in line:
TypeError: 'in <string>' requires string as left operand, not NoneType

/ceph/teuthology-archive/pdonnell-2021-10-12_23:56:23-fs-wip-pdonnell-testing-20211012.192211-distro-basic-smithi/6439874/teuthology.log

History

#2 Updated by Patrick Donnelly over 1 year ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF