Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mis): 系统初始化时可用集群报错 #1345

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

piccaSun
Copy link
Contributor

@piccaSun piccaSun commented Jul 8, 2024

问题

因初始化时无法通过token或auth鉴权,导致系统初始化时的可用集群查询结果为空
image

修改

在管理系统的web端原有获取集群配置信息接口以外增加返回简单集群信息的web接口 getSimpleClustersInfoFromConfigFiles
返回信息仅包含 clusterId, displayName, 及用于优先级排序的 priority

getSimpleClustersInfoFromConfigFiles 及获取当前集群在线信息接口中 getClustersRuntimeInfo 增加是否已初始化判断,未初始化时允许所有人获取简单集群在线信息

修改后

系统初始化时获取集群信息正常,各操作正常,初始化完成后登录正常

集群停用初始化
faa3afca5e2e2cc4219edc077f2ef6f

Copy link

changeset-bot bot commented Jul 8, 2024

🦋 Changeset detected

Latest commit: bdd6be2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@scow/mis-web Patch
@scow/config Patch
@scow/lib-ssh Patch
@scow/lib-web Patch
@scow/lib-server Patch
@scow/ai Patch
@scow/audit-server Patch
@scow/auth Patch
@scow/cli Patch
@scow/mis-server Patch
@scow/portal-server Patch
@scow/portal-web Patch
@scow/gateway Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@piccaSun piccaSun changed the title fix(mis): 系统初始化时可用集群报错 fix(mis): 系统初始化时可用集群报错 Jul 8, 2024
@piccaSun piccaSun marked this pull request as ready for review July 8, 2024 11:24
@pkuhpc-review-bot pkuhpc-review-bot bot added the Code-ReviewRequested Code Review Requested label Jul 8, 2024
@pkuhpc-review-bot pkuhpc-review-bot bot requested a review from ddadaal July 8, 2024 11:24
@piccaSun piccaSun linked an issue Jul 8, 2024 that may be closed by this pull request
@pkuhpc-review-bot pkuhpc-review-bot bot added Code-Approved Code Review approved ReadyForMerge Ready for merge and removed Code-ReviewRequested Code Review Requested labels Jul 8, 2024
@ddadaal ddadaal merged commit 0275a9e into master Jul 8, 2024
9 checks passed
@ddadaal ddadaal deleted the fix-initial-system-clusters branch July 8, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code-Approved Code Review approved ReadyForMerge Ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V1.6.1初始化出现访问的集群不可用
2 participants