登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
数据库相关
>
数据库服务
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
441
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
代码
Issues
960
Pull Requests
165
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【测试类型:故障注入】【测试版本:5.0.0.】 问题描述主备集群备机reboot会丢失omm账户间的免密
已验收
#I99YLU
缺陷
hzxcaq
创建于
2024-03-20 10:17
【标题描述】: 【测试类型:故障注入】【测试版本:5.0.0.】 问题描述主备集群备机reboot会丢失omm账户间的免密 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): ``` [root@localhost ~]# cat /etc/os-release NAME="openEuler" VERSION="22.03 (LTS-SP1)" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 (LTS-SP1)" ANSI_COLOR="0;31" [root@localhost ~]# uname -a Linux localhost.localdomain 5.10.0-136.12.0.86.oe2203sp1.x86_64 #1 SMP Tue Dec 27 17:50:15 CST 2022 x86_64 x86_64 x86_64 GNU/Linux ``` 【测试环境】(单机/1主x备x级联备): 1主1备 【被测功能】: 备机reboot 【数据库版本】(查询命令: gaussdb -V): ``` [root@gauss1 ~]# su - omm -c "gaussdb -V" gaussdb (openGauss 5.0.0 build a07d57c3) compiled at 2023-03-29 03:37:13 commit 0 last mr ``` 【预置条件】: 两台单机使用gs_expansion扩容 【操作步骤】(请填写详细的操作步骤): 1. 安装两台单节点openGauss 主机1 ``` [root@gauss1 ~]# su - omm -c "gs_om -t status --detail" [ Cluster State ] cluster_state : Normal redistributing : No current_az : AZ_ALL [ Datanode State ] node node_ip port instance state ------------------------------------------------------------------------------------------ 1 gauss1 10.125.9.62 15400 6001 /usr/bin/gaussdb/data/dn P Primary Normal ``` 主机2 ``` [root@gauss2 ~]# su - omm -c "gs_om -t status --detail" TMOUT=0 [ Cluster State ] cluster_state : Normal redistributing : No current_az : AZ_ALL [ Datanode State ] node node_ip port instance state ------------------------------------------------------------------------------------------ 1 gauss2 10.125.10.79 15400 6001 /usr/bin/gaussdb/data/dn P Primary Normal ``` 2. 使用gs_expansion扩容,并安装CM组件, ``` Start expansion without cluster manager component. Database on standby nodes installed finished. Checking gaussdb and gs_om version. End to check gaussdb and gs_om version. Start to establish the relationship. Start to build standby 10.125.10.79. Build standby 10.125.10.79 success. Start to generate and send cluster static file. End to generate and send cluster static file. Expansion results: 10.125.10.79: Success Expansion Finish. Start to install cm tool. Preparing CM path. Decompressing CM pacakage. Creating cluster_manual_start file. Initializing cm_server. Initializing cm_agent. Creating CM ca files. Refreshing static and dynamic file using xml file with cm. Setting om_monitor crontab. Starting cluster. [ CMServer State ] node instance state -------------------------- 1 gauss1 1 Primary 2 gauss2 2 Standby [ Cluster State ] cluster_state : Normal redistributing : No balanced : Yes current_az : AZ_ALL [ Datanode State ] node instance state | node instance state ---------------------------------------------------------------------------- 1 gauss1 6001 P Primary Normal | 2 gauss2 6002 S Standby Normal Install CM tool success. ``` 3.安装后集群状态如下 ``` [root@gauss2 ~]# su - omm -c "gs_om -t status --detail" [ CMServer State ] node node_ip instance state -------------------------------------------------------------------------- 1 gauss1 10.125.9.62 1 /usr/bin/gaussdb/cmserver/cm_server Primary 2 gauss2 10.125.10.79 2 /usr/bin/gaussdb/cmserver/cm_server Standby [ Cluster State ] cluster_state : Normal redistributing : No balanced : Yes current_az : AZ_ALL [ Datanode State ] node node_ip instance state ------------------------------------------------------------------------- 1 gauss1 10.125.9.62 6001 /usr/bin/gaussdb/data/dn P Primary Normal 2 gauss2 10.125.10.79 6002 /usr/bin/gaussdb/data/dn S Standby Normal ``` 4.此时在备机上验证omm免密存在 ``` [root@gauss2 ~]# su - omm 上一次登录: 三 3月 20 02:05:38 CST 2024 pts/0 上 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:06:11 CST System load: 0.94 Processes: 151 Memory used: 9.8% Swap used: 0% Usage On: 5% IP address: 10.125.10.79 Users online: 1 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss2 ~]$ ssh gauss1 Last login: Wed Mar 20 02:05:03 2024 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:06:22 CST System load: 0.95 Processes: 155 Memory used: 10.5% Swap used: 0% Usage On: 6% IP address: 10.125.9.62 IP address: 10.125.9.63 Users online: 2 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss1 ~]$ exit 注销 Connection to gauss1 closed. [omm@gauss2 ~]$ ``` 5.在备机执行reboot,再次验证发现免密丢失 ``` [root@gauss2 ~]# su - omm 上一次登录: 三 3月 20 02:06:11 CST 2024 pts/0 上 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:07:42 CST System load: 0.51 Processes: 159 Memory used: 1.6% Swap used: 0% Usage On: 5% IP address: 10.125.10.79 Users online: 1 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss2 ~]$ ssh gauss1 omm@gauss1's password: ``` 【预期输出】: 免密存在 【实际输出】: 免密丢失 【原因分析】: 查询issue可以确认与https://gitee.com/opengauss/openGauss-server/issues/I8RP3Z?from=project-issue问题一致; 是搭建双机后,检查子账户免密的定时任务不存在导致
【标题描述】: 【测试类型:故障注入】【测试版本:5.0.0.】 问题描述主备集群备机reboot会丢失omm账户间的免密 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): ``` [root@localhost ~]# cat /etc/os-release NAME="openEuler" VERSION="22.03 (LTS-SP1)" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 (LTS-SP1)" ANSI_COLOR="0;31" [root@localhost ~]# uname -a Linux localhost.localdomain 5.10.0-136.12.0.86.oe2203sp1.x86_64 #1 SMP Tue Dec 27 17:50:15 CST 2022 x86_64 x86_64 x86_64 GNU/Linux ``` 【测试环境】(单机/1主x备x级联备): 1主1备 【被测功能】: 备机reboot 【数据库版本】(查询命令: gaussdb -V): ``` [root@gauss1 ~]# su - omm -c "gaussdb -V" gaussdb (openGauss 5.0.0 build a07d57c3) compiled at 2023-03-29 03:37:13 commit 0 last mr ``` 【预置条件】: 两台单机使用gs_expansion扩容 【操作步骤】(请填写详细的操作步骤): 1. 安装两台单节点openGauss 主机1 ``` [root@gauss1 ~]# su - omm -c "gs_om -t status --detail" [ Cluster State ] cluster_state : Normal redistributing : No current_az : AZ_ALL [ Datanode State ] node node_ip port instance state ------------------------------------------------------------------------------------------ 1 gauss1 10.125.9.62 15400 6001 /usr/bin/gaussdb/data/dn P Primary Normal ``` 主机2 ``` [root@gauss2 ~]# su - omm -c "gs_om -t status --detail" TMOUT=0 [ Cluster State ] cluster_state : Normal redistributing : No current_az : AZ_ALL [ Datanode State ] node node_ip port instance state ------------------------------------------------------------------------------------------ 1 gauss2 10.125.10.79 15400 6001 /usr/bin/gaussdb/data/dn P Primary Normal ``` 2. 使用gs_expansion扩容,并安装CM组件, ``` Start expansion without cluster manager component. Database on standby nodes installed finished. Checking gaussdb and gs_om version. End to check gaussdb and gs_om version. Start to establish the relationship. Start to build standby 10.125.10.79. Build standby 10.125.10.79 success. Start to generate and send cluster static file. End to generate and send cluster static file. Expansion results: 10.125.10.79: Success Expansion Finish. Start to install cm tool. Preparing CM path. Decompressing CM pacakage. Creating cluster_manual_start file. Initializing cm_server. Initializing cm_agent. Creating CM ca files. Refreshing static and dynamic file using xml file with cm. Setting om_monitor crontab. Starting cluster. [ CMServer State ] node instance state -------------------------- 1 gauss1 1 Primary 2 gauss2 2 Standby [ Cluster State ] cluster_state : Normal redistributing : No balanced : Yes current_az : AZ_ALL [ Datanode State ] node instance state | node instance state ---------------------------------------------------------------------------- 1 gauss1 6001 P Primary Normal | 2 gauss2 6002 S Standby Normal Install CM tool success. ``` 3.安装后集群状态如下 ``` [root@gauss2 ~]# su - omm -c "gs_om -t status --detail" [ CMServer State ] node node_ip instance state -------------------------------------------------------------------------- 1 gauss1 10.125.9.62 1 /usr/bin/gaussdb/cmserver/cm_server Primary 2 gauss2 10.125.10.79 2 /usr/bin/gaussdb/cmserver/cm_server Standby [ Cluster State ] cluster_state : Normal redistributing : No balanced : Yes current_az : AZ_ALL [ Datanode State ] node node_ip instance state ------------------------------------------------------------------------- 1 gauss1 10.125.9.62 6001 /usr/bin/gaussdb/data/dn P Primary Normal 2 gauss2 10.125.10.79 6002 /usr/bin/gaussdb/data/dn S Standby Normal ``` 4.此时在备机上验证omm免密存在 ``` [root@gauss2 ~]# su - omm 上一次登录: 三 3月 20 02:05:38 CST 2024 pts/0 上 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:06:11 CST System load: 0.94 Processes: 151 Memory used: 9.8% Swap used: 0% Usage On: 5% IP address: 10.125.10.79 Users online: 1 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss2 ~]$ ssh gauss1 Last login: Wed Mar 20 02:05:03 2024 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:06:22 CST System load: 0.95 Processes: 155 Memory used: 10.5% Swap used: 0% Usage On: 6% IP address: 10.125.9.62 IP address: 10.125.9.63 Users online: 2 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss1 ~]$ exit 注销 Connection to gauss1 closed. [omm@gauss2 ~]$ ``` 5.在备机执行reboot,再次验证发现免密丢失 ``` [root@gauss2 ~]# su - omm 上一次登录: 三 3月 20 02:06:11 CST 2024 pts/0 上 Welcome to 5.10.0-136.12.0.86.4.hl202.x86_64 System information as of time: 2024年 03月 20日 星期三 02:07:42 CST System load: 0.51 Processes: 159 Memory used: 1.6% Swap used: 0% Usage On: 5% IP address: 10.125.10.79 Users online: 1 To run a command as administrator(user "root"),use "sudo <command>". [omm@gauss2 ~]$ ssh gauss1 omm@gauss1's password: ``` 【预期输出】: 免密存在 【实际输出】: 免密丢失 【原因分析】: 查询issue可以确认与https://gitee.com/opengauss/openGauss-server/issues/I8RP3Z?from=project-issue问题一致; 是搭建双机后,检查子账户免密的定时任务不存在导致
评论 (
16
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
liuheng
hengliue
负责人
协作者
+负责人
+协作者
申正
shenzheng4
负责人
协作者
+负责人
+协作者
标签
sig/om
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (17)
标签 (29)
master
6.0.0
master_bak08271930
5.0.0
bugfix_0725
3.0.0
7.0.0-RC1
iud_dev
dev_board
5.1.0
kms
2.0.0
3.1.0
2.1.0
1.1.0
1.0.1
1.0.0
v6.0.2
v7.0.0-RC1
v6.0.1
v3.0.6
v6.0.0
v3.0.5B009
v5.0.3
v5.0.2
v6.0.0-RC1
v3.0.5
v5.0.1
v5.1.0
5.1.0
v5.0.0
v3.0.3
v3.1.1
v3.0.2
v3.1.0
v2.0.5
v3.0.1
v2.0.4
v2.0.3
v3.0.0
v2.1.0
v2.0.1
v2.0.0
v1.1.0
v1.0.1
v1.0.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册