
OPERATIONAL DEFECT DATABASE
...

...
What were you trying to do that didn't work? After running a conversion from CentOS 7 to RHEL 7, the customer tried to in-place upgrade to RHEL 8 but it goes into the emergency shell after the reboot. For an unknown reason, the /etc/sysconfig/kernel file didn't exist whereas it is provided by the grubby package. The file is sourced by the grubby tool (and new-kernel-pkg that calls grubby) only if it exists, meaning the file presence is theoretically not mandatory. Setting the severity as Normal due to the encountered error, even if I never observed such a case. Please provide the package NVR for which bug is seen: leapp-upgrade-el7toel8-0.18.0-3.el7_9 How reproducible: Always Steps to reproduce Remove /etc/sysconfig/kernel Run leapp upgrade Expected results The default file is created OR the sed non-zero exit code is ignored. Actual results [ 36.743836] upgrade[722]: ====> * update_etc_sysconfig_kernel [ 36.744841] upgrade[722]: Update /etc/sysconfig/kernel file. [ 36.807038] upgrade[1629]: Process Process-232: [ 36.807845] upgrade[1629]: Traceback (most recent call last): [ 36.808714] upgrade[1629]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap [ 36.810141] upgrade[1629]: self.run() [ 36.876260] upgrade[1629]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run [ 36.877590] upgrade[1629]: self._target(*self._args, **self._kwargs) [ 36.878673] upgrade[1629]: File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run [ 36.977098] upgrade[1629]: actor_instance.run(*args, **kwargs) [ 36.978071] upgrade[1629]: File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 289, in run [ 37.076398] upgrade[1629]: self.process(*args) [ 37.077158] upgrade[1629]: File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/updateetcsysconfigkernel/actor.py", line 20, in process [ 37.176064] upgrade[1629]: updateetcsysconfigkernel.update_kernel_config('/etc/sysconfig/kernel') [ 37.177395] upgrade[1629]: File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/updateetcsysconfigkernel/libraries/updateetcsysconfigkernel.py", line 9, in upda te_kernel_config [ 37.276832] upgrade[1629]: path]) [ 37.277409] upgrade[1629]: File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 188, in run [ 37.352087] upgrade[1629]: result=result [ 37.376545] upgrade[1629]: CalledProcessError: Command ['/bin/sed', '-i', 's/^DEFAULTKERNEL=kernel$/DEFAULTKERNEL=kernel-core/g', '/etc/sysconfig/kernel'] failed with exit code 2. [ 37.378786] upgrade[722]: ============================================================================================================ [ 37.477621] upgrade[722]: Actor update_etc_sysconfig_kernel unexpectedly terminated with exit code: 1 - Please check the above details [ 37.576157] upgrade[722]: ============================================================================================================
Duplicate
Click on a version to see all relevant bugs
Red Hat Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.