-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(portal-server/mis-server): 启动时跳过已停用集群的ssh检查 (#1347)
### 背景 在实际应用中会出现集群所在机器关机,或者所在网络不可用等情况,管理员可能会在出现问题之后在管理系统页面将集群停用 所以在启用时,应只检查启用中的集群是否满足启用条件 ### 修改 此PR进行以下修改 1. 门户系统 - 系统启动时只对启用中集群登录节点进行免密检查 - 系统启动时只对启用中集群的代理网关自动设置进行设置(启用时不会再进行代理网关自动启动处理,如配置了自动启动代理网关,默认集群初始化时一定已经进行过此设置) - 上述两点如未配置管理系统,则对所有集群进行检查设置 2. 管理系统 - 系统启动时只对启用中集群登录节点进行免密检查 - 在插入公钥接口 `insertKeyToNewUser`接口中增加 `clusters` 参数,现阶段由于插入公钥失败不影响创建用户,是对所有集群执行 - 在启用集群 `activateCluster`接口中增加对启用集群登录节点检查免密的操作,若失败将报错,无法启用集群 - 增加修改对`price plugin`中使用`callOnAll`进行多集群操作时,如果适配器请求失败会抛出错误的部分 作业价格表设置页面在之前的某个Issue中已经修改了不报错,只显示当前可用集群的价格信息,所以现在对`price plugin`中多集群处理修改为不抛出错误,在`logger`中进行提示 上述修改可以解决下面两个问题 1.系统使用过程中,当多集群下某个适配器请求失败时,`mis-server`由于后台`fetchJobs`的执行会造成无法连接 2.系统启动时,某一个适配器请求失败,`mis-server`或依赖于`mis-server`的`portal-server`无法启动 当适配器正常连接时,随着打开作业价格表或后台`fetchJobs`的执行,没有请求到的集群价格设置数据可以再次获取 ### 修改后 本地docker-cluster测试 1.正常启用中管理系统和门户系统页面正常 <img width="824" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/77cf6d79-f7d4-4b42-a702-4b725ce3bba4"> <img width="936" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/56d42082-a001-4614-881d-eab711461c2c"> 2.login,c1,slurm全部stop的情况,管理系统页面和门户系统页面 报错或无集群数据 <img width="824" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/1c4473f6-8d08-40fc-96e5-8c0c99a1b499"> <img width="827" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/61ca61c0-9b09-47f0-b2f7-e5c1b199acfe"> <img width="834" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/335e6a9f-0384-4533-ad82-79d23a33aec8"> <img width="949" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/136a10d0-44ce-4409-8725-56daf7b253c9"> <img width="946" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/68004d50-b0c2-4164-acf5-679b005caca7"> 3.直接操作停用集群 管理系统不显示停用集群数据 <img width="830" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/1397d627-4cc8-4e51-be9c-74232a87f301"> 门户系统不显示停用集群数据,正在访问的集群会报错 <img width="950" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/e3eb4660-cd07-49f8-a5c9-2d9dfeec5b33"> <img width="957" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/9050a9ac-2f6e-4b62-bf0a-02fa69374b3c"> 4.在login,c1,slurm全部已停用并操作了集群停用后重启scow,集群管理页面因集群异常不显示启用按键 <img width="836" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/efc7851d-53f4-495d-a403-ad8d2a17d45b"> <img width="955" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/0a8ab13c-0c44-4a74-abb3-bc55951cb24e"> 5.重新开启login,c1,slurm,操作启用集群 <img width="831" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/62e83b84-cca0-4d67-9b40-f72ef26c1c9c"> <img width="821" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/ddc78137-af7c-46ae-b021-c3c5f02651e0"> <img width="628" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/159fe98c-bb46-444c-b1b9-e284ac1aad85"> <img width="633" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/9f6e8929-7aa3-46e6-afb4-27a61c2ab9d2"> ![image](https://github.com/PKUHPC/SCOW/assets/43978285/4c8934e8-8b71-4a74-9efe-6df2a9075f7f) <img width="642" alt="image" src="https://github.com/PKUHPC/SCOW/assets/43978285/236e8382-5cf6-4a7f-b804-a71d6f453b47">
- Loading branch information
Showing
16 changed files
with
165 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@scow/portal-server": patch | ||
"@scow/mis-server": patch | ||
--- | ||
|
||
在门户和管理系统启动时只检查启用中集群登录节点的 ssh 连接,在管理系统启用集群操作中检查登录节点的 ssh 连接 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.