【标题描述】注册主机时提示将数据插入数据库失败
系统:x86_64/aarch64虚拟机
软件信息:
1) OS版本及分支:openEuler 22.03 lts sp1 round1
2) repo:http://...../repo_list/dailybuild.repo/openEuler-22.03-LTS-SP1/openEuler-22.03-LTS-SP1/EPOL/main
3) 内核信息:Linux openEuler 5.10.0-126.0.0.66.oe2203sp1.x86_64
4) 发现问题的组件版本信息:
aops-apollo-v1.1.0-1.oe2203.x86_64.rpm、aops-ceres-v1.1.0-1.oe2203.x86_64.rpm、aops-hermes-v1.1.0-2.oe2203.x86_64.rpm、aops-tools-v1.1.0-1.oe2203.x86_64.rpm、aops-vulcanus-v1.1.0-1.oe2203.x86_64.rpm、aops-zeus-v1.1.0-1.oe2203.x86_64.rpm
【问题复现步骤】
1.安装相关环境并启动服务
dnf install -y aops-ceres
dnf install -y aops-hermes
dnf install -y aops-tools
dnf install -y aops-vulcanus
dnf install -y aops-zeus
dnf install -y aops-apollo
aops-basedatabase mysql
aops-basedatabase elasticsearch
systemctl restart aops-ceres
systemctl restart aops-hermes
systemctl restart aops-zeus
systemctl restart aops-apollo
aops-ceres register -f register.json
出现概率(必现)
【预期结果】
注册成功
【实际结果】
注册主机时提示将数据插入数据库失败
【附件信息】
Hi ryuo, 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: sig-ops, and any of the maintainers: @栾建海 , @solarhu , @cmss_dx , @hjx_gitff , @snoweay , @luzhihao , @Lostway , @yangzhao_kl , @dowzyx , @王记棒棒猪 , @openeuler-ci-bot
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题定位:原有数据库os_version字段限制为20个字符,测试环境中这个字段超出20造成数据库插入失败
处理措施: 数据库该字段限制改为40
done
登录 后才可以发表评论