登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
16
Star
45
Fork
100
openGauss
/
community
代码
Issues
277
Pull Requests
44
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【7.0.0-RC1】gs_sdr对IPV6支持不全,启动流式复制失败
待办的
#IC3YCP
缺陷
袁小暑
创建于
2025-04-25 15:23
【标题描述】: gs_sdr对IPV6支持不全,启动流式复制失败 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): open euler 22.03 LTS 【测试环境】(单机/1主x备x级联备): 同城双中心,IPV6 【被测功能】: 同城双中心部署,执行gs_sdr命令时多次报错 【数据库版本】(查询命令: gaussdb -V): 7.0.0-RC1 【错误1】 script/base_utils/security/security_checker.py line 30: IP_PATTERN = ( r'^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)(?:\.(?!$)|$)){4}$|' # IPv4 r'^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$|' # IPv6 full r'^::1$|^::$' # IPv6 loopback and unspecified ) 错误:不支持双冒号省略写法,比如2202:2202::1 修改建议:要支持双冒号省略写法。如果简单要求配置文件不用省略写法,在其他检查函数里面会和本机IP比较,比较时会出错(本机IP是省略写法) 【错误2】 script\impl\streaming_disaster_recovery\streaming_base.py line 966: ret = re.search( r"replconninfo%s='localhost=((?:[0-9]{1,3}\.){3}[0-9]{1,3}|(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}) " r"localport=(\d{4,5}) localheartbeatport=(\d{4,5}) " r"localservice=(\d{4,5}) " r"remotehost=((?:[0-9]{1,3}\.){3}[0-9]{1,3}|(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}) " r"remoteport=(\d{4,5}) remoteheartbeatport=(\d{4,5}) " r"remoteservice=(\d{4,5})" % idx, output) 错误:不支持双冒号省略写法,比如2202:2202::1 修改建议:要支持双冒号省略写法。如果简单要求配置文件不用省略写法,在其他检查函数里面会和本机IP比较,比较时会出错(本机IP是省略写法) 【错误3】 script/gspylib/threads/SshTool.py line 1044: def __readCmdResult(self, resultFile, hostNum): """ function: Read command result input : resultFile, hostNum, cmd output: resultMap """ resultMap = {} try: with open(resultFile, "r") as fp: lines = fp.readlines() context = "".join(lines) for line in lines: resultPair = line.strip().split(" ") if len(resultPair) < 4: continue if len(resultPair) >= 4 and resultPair[2] == "[FAILURE]": resultMap[HostsUtil.remove_square_bracket_if_exist(resultPair[3])] = "Failure" if len(resultPair) >= 4 and resultPair[2] == "[SUCCESS]": resultMap[HostsUtil.remove_square_bracket_if_exist(resultPair[3])] = "Success" if len(resultMap) != hostNum: raise Exception(ErrorCode.GAUSS_516["GAUSS_51637"] % ("valid return item number [%d]" % len(resultMap), "host number[%d]" % hostNum) + " The return result:\n%s." % context) except Exception as e: raise Exception(str(e)) return resultMap 错误:这里hostNum始终为1(因为上层函数是for循环调用进来的),而resultMap会大于1(比如有一主一备时为2),这里总是报错 修改建议:改为if len(resultMap) < hostNum
【标题描述】: gs_sdr对IPV6支持不全,启动流式复制失败 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): open euler 22.03 LTS 【测试环境】(单机/1主x备x级联备): 同城双中心,IPV6 【被测功能】: 同城双中心部署,执行gs_sdr命令时多次报错 【数据库版本】(查询命令: gaussdb -V): 7.0.0-RC1 【错误1】 script/base_utils/security/security_checker.py line 30: IP_PATTERN = ( r'^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)(?:\.(?!$)|$)){4}$|' # IPv4 r'^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$|' # IPv6 full r'^::1$|^::$' # IPv6 loopback and unspecified ) 错误:不支持双冒号省略写法,比如2202:2202::1 修改建议:要支持双冒号省略写法。如果简单要求配置文件不用省略写法,在其他检查函数里面会和本机IP比较,比较时会出错(本机IP是省略写法) 【错误2】 script\impl\streaming_disaster_recovery\streaming_base.py line 966: ret = re.search( r"replconninfo%s='localhost=((?:[0-9]{1,3}\.){3}[0-9]{1,3}|(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}) " r"localport=(\d{4,5}) localheartbeatport=(\d{4,5}) " r"localservice=(\d{4,5}) " r"remotehost=((?:[0-9]{1,3}\.){3}[0-9]{1,3}|(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}) " r"remoteport=(\d{4,5}) remoteheartbeatport=(\d{4,5}) " r"remoteservice=(\d{4,5})" % idx, output) 错误:不支持双冒号省略写法,比如2202:2202::1 修改建议:要支持双冒号省略写法。如果简单要求配置文件不用省略写法,在其他检查函数里面会和本机IP比较,比较时会出错(本机IP是省略写法) 【错误3】 script/gspylib/threads/SshTool.py line 1044: def __readCmdResult(self, resultFile, hostNum): """ function: Read command result input : resultFile, hostNum, cmd output: resultMap """ resultMap = {} try: with open(resultFile, "r") as fp: lines = fp.readlines() context = "".join(lines) for line in lines: resultPair = line.strip().split(" ") if len(resultPair) < 4: continue if len(resultPair) >= 4 and resultPair[2] == "[FAILURE]": resultMap[HostsUtil.remove_square_bracket_if_exist(resultPair[3])] = "Failure" if len(resultPair) >= 4 and resultPair[2] == "[SUCCESS]": resultMap[HostsUtil.remove_square_bracket_if_exist(resultPair[3])] = "Success" if len(resultMap) != hostNum: raise Exception(ErrorCode.GAUSS_516["GAUSS_51637"] % ("valid return item number [%d]" % len(resultMap), "host number[%d]" % hostNum) + " The return result:\n%s." % context) except Exception as e: raise Exception(str(e)) return resultMap 错误:这里hostNum始终为1(因为上层函数是for循环调用进来的),而resultMap会大于1(比如有一主一备时为2),这里总是报错 修改建议:改为if len(resultMap) < hostNum
评论 (
1
)
登录
后才可以发表评论
状态
待办的
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
master
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/opengauss/community.git
git@gitee.com:opengauss/community.git
opengauss
community
community
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册