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

对接多个vmware,每个项目管理一个vmware,项目管理员创建虚拟机的时候,可以选择其他项目下面云账号的系统镜像,而且选择其他项目镜像,可以直接在其他项目管理的资源下面创建虚拟机 #20628

Open
jinteng123 opened this issue Jun 24, 2024 · 3 comments
Assignees
Labels

Comments

@jinteng123
Copy link

版本 3.11
image

@jinteng123 jinteng123 added the bug Something isn't working label Jun 24, 2024
@jinteng123 jinteng123 changed the title 对接多个vmware,项目管理员创建虚拟机的时候,可以选择其他项目下面云账号的系统镜像,而且选择其他项目镜像,可以直接在其他项目管理的资源下面创建虚拟机 对接多个vmware,每个项目管理一个vmware,项目管理员创建虚拟机的时候,可以选择其他项目下面云账号的系统镜像,而且选择其他项目镜像,可以直接在其他项目管理的资源下面创建虚拟机 Jun 24, 2024
@ioito
Copy link
Collaborator

ioito commented Jul 1, 2024

麻烦截图下项目管理员的权限信息

@jinteng123
Copy link
Author

麻烦截图下项目管理员的权限信息

图片

@ioito
Copy link
Collaborator

ioito commented Jul 2, 2024

目前服务会默认添加云订阅及镜像的权限,可以移除以下代码重新编译region镜像替换服务试下

{
Service: api.SERVICE_TYPE,
Resource: "cachedimages",
Action: PolicyActionList,
Result: rbacutils.Allow,
},
{
Service: api.SERVICE_TYPE,
Resource: "cachedimages",
Action: PolicyActionGet,
Result: rbacutils.Allow,
},

{
Service: api.SERVICE_TYPE,
Resource: "cloudaccounts",
Action: PolicyActionList,
Result: rbacutils.Allow,
},
{
Service: api.SERVICE_TYPE,
Resource: "cloudaccounts",
Action: PolicyActionGet,
Result: rbacutils.Allow,
},
{
Service: api.SERVICE_TYPE,
Resource: "cloudproviders",
Action: PolicyActionList,
Result: rbacutils.Allow,
},
{
Service: api.SERVICE_TYPE,
Resource: "cloudproviders",
Action: PolicyActionGet,
Result: rbacutils.Allow,
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants