【环境信息】
版本:20.03-LTS、20.03-SP1
repo源:SP1 everything\SP1 update
【操作步骤】
1、禁用update源,安装 dnf install -y openhpi
2、启用update源,升级 dnf update -y openhpi
【预期结果】
升级过程无报错日志
【实际结果】
可升级成功,但有报错信息:
【20.03-LTS】
【20.03-SP1】
补充:安装、卸载openhpi没有报错信息,升级有报错
Hi suhangself, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: System-tool, and any of the maintainers: @Charlie_li , @eric14chan , @miao_kaibo , @ruebb , @zhuchunyi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
升级失败的原因:是升级前的软件包spec文件中未写明服务名,导致升级过程中需要重启该服务,找不到service文件,
解决方案:写清楚服务名
修改前
%postun
%systemd_postun_with_restart service
修改后
%postun
%systemd_postun_with_restart openhpid.service
当前工程中lts sp1 sp2 sp3 版本一致,且都存在该问题,修复后无升级场景,构造release号不一致其他内容一致验证升级场景
自验证
[root@localhost ~]# yum install openhpi-3.8.0-9.oe1.x86_64.rpm
Last metadata expiration check: 2:01:43 ago on Thu 23 Dec 2021 08:20:46 AM CST.
Dependencies resolved.
===============================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================
Installing:
openhpi x86_64 3.8.0-9.oe1 @commandline 1.0 M
Installing dependencies:
librabbitmq x86_64 0.9.0-4.oe1 everything 66 k
Transaction Summary
===============================================================================================================================================================================================
Install 2 Packages
Total size: 1.1 M
Total download size: 66 k
Installed size: 5.5 M
Is this ok [y/N]: y
Downloading Packages:
librabbitmq-0.9.0-4.oe1.x86_64.rpm 130 kB/s | 66 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 129 kB/s | 66 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : librabbitmq-0.9.0-4.oe1.x86_64 1/2
Installing : openhpi-3.8.0-9.oe1.x86_64 2/2
Running scriptlet: openhpi-3.8.0-9.oe1.x86_64 2/2
Verifying : librabbitmq-0.9.0-4.oe1.x86_64 1/2
Verifying : openhpi-3.8.0-9.oe1.x86_64 2/2
Installed:
librabbitmq-0.9.0-4.oe1.x86_64 openhpi-3.8.0-9.oe1.x86_64
Complete!
[root@localhost ~]# yum update openhpi-3.8.0-10.oe1.x86_64.rpm
Last metadata expiration check: 2:02:02 ago on Thu 23 Dec 2021 08:20:46 AM CST.
Dependencies resolved.
===============================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================
Upgrading:
openhpi x86_64 3.8.0-10.oe1 @commandline 1.0 M
Transaction Summary
===============================================================================================================================================================================================
Upgrade 1 Package
Total size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: openhpi-3.8.0-10.oe1.x86_64 1/1
Upgrading : openhpi-3.8.0-10.oe1.x86_64 1/2
Running scriptlet: openhpi-3.8.0-10.oe1.x86_64 1/2
Running scriptlet: openhpi-3.8.0-9.oe1.x86_64 2/2
Cleanup : openhpi-3.8.0-9.oe1.x86_64 2/2
Running scriptlet: openhpi-3.8.0-9.oe1.x86_64 2/2
Verifying : openhpi-3.8.0-10.oe1.x86_64 1/2
Verifying : openhpi-3.8.0-9.oe1.x86_64 2/2
Upgraded:
openhpi-3.8.0-10.oe1.x86_64
Complete!
验证该问题需要升级前openhpi版本为3.8.0-9及其以上。
该issue暂无法验收,验收条件:升级前openhpi版本为3.8.0-9及其以上
验证结论:
需要发布openhpi包的update版本
登录 后才可以发表评论