我正在尝试将几台物理服务器从RHEL7.9升级到LinuxRock8.6。到目前为止,这个过程在3-4服务器上是成功的。在我有问题的服务器上,一切正常工作,当我重新启动服务器时,我选择使用解压升级-Initramfs启动。
跑步:
leapp preupgrade 回来吧,没有任何错误
在那之后,我要跑:
leapp upgrade 它没有任何问题就完成了。我做了一个重新启动后,选择“升级-升级-Initramfs”,试图进行升级,但它失败了。
下面是leapp的最后一部分-升级. the
Oct 05 10:24:01 localhost upgrade[691]: ==> Processing phase `InitRamStart`
Oct 05 10:24:01 localhost upgrade[691]: ====> * remove_upgrade_boot_entry
Oct 05 10:24:01 localhost upgrade[691]: Remove boot entry for Leapp provided initramfs.
Oct 05 10:24:02 localhost upgrade[691]: ==> Processing phase `LateTests`
Oct 05 10:24:02 localhost upgrade[691]: ====> * persistentnetnamesinitramfs
Oct 05 10:24:02 localhost upgrade[691]: Get network interface information for physical ethernet interfaces with the new kernel in initramfs.
Oct 05 10:24:02 localhost upgrade[691]: ==> Processing phase `Preparation`
Oct 05 10:24:02 localhost upgrade[691]: ====> * removed_pam_modules_apply
Oct 05 10:24:02 localhost upgrade[691]: Remove old PAM modules that are no longer available in RHEL-8 from
Oct 05 10:24:02 localhost upgrade[691]: ====> * remove_boot_files
Oct 05 10:24:02 localhost upgrade[691]: Remove Leapp provided initramfs from boot partition.
Oct 05 10:24:03 localhost upgrade[691]: ====> * selinuxprepare
Oct 05 10:24:03 localhost upgrade[691]: Remove selinux policy customizations before updating selinux-policy* packages
Oct 05 10:24:16 localhost upgrade[691]: ====> * update_etc_sysconfig_kernel
Oct 05 10:24:16 localhost upgrade[691]: Update /etc/sysconfig/kernel file.
Oct 05 10:24:16 localhost upgrade[691]: ====> * applytransactionworkarounds
Oct 05 10:24:16 localhost upgrade[691]: Executes registered workaround scripts on the system before the upgrade transaction
Oct 05 10:24:17 localhost upgrade[1444]: Applying transaction workaround - yum config fix
Oct 05 10:24:17 localhost upgrade[691]: ====> * zipl_convert_to_blscfg
Oct 05 10:24:17 localhost upgrade[691]: Convert the zipl boot loader configuration to the the boot loader specification on s390x systems.
Oct 05 10:24:17 localhost upgrade[691]: ====> * bind_update
Oct 05 10:24:17 localhost upgrade[691]: Actor parsing facts found in configuration and modifing configuration.
Oct 05 10:24:18 localhost upgrade[691]: ==> Processing phase `RPMUpgrade`
Oct 05 10:24:18 localhost upgrade[691]: ====> * prepare_python_workround
Oct 05 10:24:18 localhost upgrade[691]: Prepare environment to be able to run leapp with Python3 in initrd.
Oct 05 10:24:18 localhost upgrade[691]: ====> * dnf_upgrade_transaction
Oct 05 10:24:18 localhost upgrade[691]: Setup and call DNF upgrade command
Oct 05 10:24:29 localhost upgrade[1640]: Last metadata expiration check: 0:10:41 ago on Wed Oct 5 12:13:43 2022.
Oct 05 10:24:29 localhost upgrade[1640]: Dependencies resolved.
Oct 05 10:24:29 localhost upgrade[1640]: ==========================================================================================================================
Oct 05 10:24:29 localhost upgrade[1640]: Package Arch Version Repository Size
Oct 05 10:24:29 localhost upgrade[1640]: ==========================================================================================================================
...
Oct 05 10:24:36 localhost upgrade[1640]: Removing dependent packages:
Oct 05 10:24:36 localhost upgrade[1640]: lz4 i686 1.8.3-1.el7 @System 207 k
Oct 05 10:24:36 localhost upgrade[1640]: python-firewall noarch 0.6.3-13.el7_9 @System 1.9 M
Oct 05 10:24:36 localhost upgrade[1640]: python2-dnf noarch 4.0.9.2-2.el7_9 @System 1.9 M
Oct 05 10:24:36 localhost upgrade[1640]: python2-libcomps x86_64 0.1.8-14.el7 @System 140 k
Oct 05 10:24:36 localhost upgrade[1640]: Downgrading:
Oct 05 10:25:24 localhost upgrade[1640]: atk x86_64 2.28.1-1.el8 rocky8-appstream 2Process Process-216:
Oct 05 10:25:24 localhost upgrade[1640]: Traceback (most recent call last):
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
Oct 05 10:25:24 localhost upgrade[1640]: self.run()
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
Oct 05 10:25:24 localhost upgrade[1640]: self._target(*self._args, **self._kwargs)
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
Oct 05 10:25:24 localhost upgrade[1640]: actor_instance.run(*args, **kwargs)
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
Oct 05 10:25:24 localhost upgrade[1640]: self.process(*args)
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfupgradetransaction/actor.py", line 54, in process
Oct 05 10:25:24 localhost upgrade[1640]: plugin_info=plugin_info
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 342, in perform_transaction_install
Oct 05 10:25:24 localhost upgrade[1640]: cmd_prefix=cmd_prefix
Oct 05 10:25:24 localhost upgrade[1640]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
Oct 05 10:25:24 localhost upgrade[1640]: e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
Oct 05 10:25:24 localhost upgrade[1640]: AttributeError: can't set attribute
Oct 05 10:25:24 localhost upgrade[1640]: 70 k
Oct 05 10:25:24 localhost upgrade[1640]: irqbalance x86_64 2:1.4.0-6.el8 rocky8-baseos 55 k
Oct 05 10:25:24 localhost upgrade[1640]: libcgroup x86_64 0.41-19.el8 rocky8-baseos 69 k
Oct 05 10:25:24 localhost upgrade[1640]: libcroco x86_64 0.6.12-4.el8_2.1 rocky8-baseos 112 k
Oct 05 10:25:24 localhost upgrade[1640]: nodejs x86_64 1:10.24.0-1.module+el8.3.0+101+f84c7154 rocky8-appstream 8.8 M
Oct 05 10:25:24 localhost upgrade[1640]: Transaction Summary然后我从服务器上删除了atk库。再执行leapp升级。另外一个包裹我也得到同样的东西
Oct 05 10:43:59 localhost upgrade[1641]: Removing dependent packages:
Oct 05 10:44:44 localhost upgrade[1641]: lz4 Process Process-216:
Oct 05 10:44:44 localhost upgrade[1641]: Traceback (most recent call last):
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
Oct 05 10:44:44 localhost upgrade[1641]: self.run()
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
Oct 05 10:44:44 localhost upgrade[1641]: self._target(*self._args, **self._kwargs)
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
Oct 05 10:44:44 localhost upgrade[1641]: actor_instance.run(*args, **kwargs)
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
Oct 05 10:44:44 localhost upgrade[1641]: self.process(*args)
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfupgradetransaction/actor.py", line 54, in process
Oct 05 10:44:44 localhost upgrade[1641]: plugin_info=plugin_info
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 342, in perform_transaction_install
Oct 05 10:44:44 localhost upgrade[1641]: cmd_prefix=cmd_prefix
Oct 05 10:44:44 localhost upgrade[1641]: File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
Oct 05 10:44:44 localhost upgrade[1641]: e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')如果您需要任何进一步的日志文件或任何命令的输出,我可以提供它。
谢谢
发布于 2022-10-11 21:01:27
/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py中有一个bug。在第217行,应该是
except CalledProcessError as e:
if six.PY3:
e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
e.stderr = e.stdout.encode('utf-8', 'xmlcharrefreplace')(所以它应该测试PY3,而不是PY2。
发布于 2022-10-11 06:26:05
在完全相同的系统上有相同的问题。几周前做了升级,但是在更新后就有了这个系统上的程序问题。所以回过头来想出一个解决方案,想要在今天和现在更新。
https://stackoverflow.com/questions/73959151
复制相似问题