本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>
发布时间: 2020-10-30 | 浏览次数: 1589 | 下载次数: 23 | 作者: c00563167 | 文档编号: EKB1100058622
HCS-Deploy1250003 执行ssh cmd失败ip xx.xx.xx.xx。在设定超时间300秒内未获取到期待的返回值,实际返回值为
Start init endpoint,please wait
Init endpoint failed!
Execute cmd result:1
[root@MOC-ManageOne-Service01 sopuser]#
注册endpoint失败,请尝试重试
(1)使用Moba工具,以sopuser用户登陆ManageOne-Service01节点。
sopuser用户的默认密码:D4I$awOD7k
(2)执行以下命令,切换到root用户。
su - root
root用户的默认密码:Changeme_123
(3)执行以下命令,防止“Moba”超时退出。
TMOUT=0
(4) 上传文件到/home/sopuser
(5) 执行以下命令,切换至sa_init_service_endpoints.pyc文件所在目录。
cd /opt/oss/Product/apps/MORCAccessConfigService/init/
(6)执行以下命令,备份sa_init_service_endpoints.pyc文件。
[ ! -f /home/sopuser/sa_init_service_endpoints.pyc.backup ] && cp -p sa_init_service_endpoints.pyc /home/sopuser/sa_init_service_endpoints.pyc.backup
(7)修改sa_init_service_endpoints.pyc文件中的校验时间
Import mmap
target_pyc_path = 'sa_init_service_endpoints.pyc'
with open(target_pyc_path, 'r+b') as fd:
mm = mmap.mmap(fd.fileno(), 0)
date_start_pos = str(mm[:]).find("2020-10-12")
if date_start_pos == -1:
print("unmatched")
else:
year_pos = date_start_pos + 2
date_end_pos = date_start_pos + 10
previous_date = mm[date_start_pos:date_end_pos]
mm[year_pos] = chr(57)
new_date = mm[date_start_pos:date_end_pos]
print("updated from {} to {}.".format(previous_date, new_date))
mm.close( )
注册endpoint的脚本中配置了一个固定的日期2020-10-12参数,因此在注册endpoint时,它会校验配置的日期参数,如果当本地时间毫秒数大于这个固定日期对应的毫秒数,会导致参数认证不过。所以2020-10-11之后,只要涉及注册endpoint的工步执行都会失败。
修改sa_init_service_endpoints.pyc文件中的校验时间
Huawei CLoud Stack 6.5.1 交付和扩容都会出现这个问题,交付场景无业务无数据的情况下可以按照我这个方案处理,扩容场景需要联系ManageOne专家处理。