118 Star 0 Fork 13

src-openEuler/openhpi

 / 详情

【SP1-arm/x86】openhpi升级有报错信息

已完成
缺陷
创建于  
2021-12-22 15:54

【环境信息】
版本: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没有报错信息,升级有报错

评论 (8)

suhang 创建了缺陷 3年前

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

openeuler-ci-bot 添加了
 
sig/System-tool
标签
3年前
suhang 负责人设置为small_leek 3年前

升级失败的原因:是升级前的软件包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及其以上。

caodongxia 任务状态待办的 修改为已完成 2年前

该issue暂无法验收,验收条件:升级前openhpi版本为3.8.0-9及其以上
输入图片说明

zjl_long 修改了描述 2年前
zjl_long 修改了描述 2年前
zjl_long 修改了描述 2年前

验证结论:
需要发布openhpi包的update版本

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
里程碑
分支
参与者(5)
5329419 openeuler ci bot 1632792936 lyn-lyn1001 吴磊磊-wu-leilei suhang-suhangself zjl_long-zjl_long
1
https://gitee.com/src-openeuler/openhpi.git
git@gitee.com:src-openeuler/openhpi.git
src-openeuler
openhpi
openhpi

搜索帮助