openstack - 只能以管理员用户身份重置 cinder 卷状态
问题描述
问题
- 无法以非管理员用户身份重置 cinder 卷状态。
- 需要做什么才能让用户重置音量状态
- 以下是仅允许管理员用户重置卷状态时看到的错误示例:
$ cinder reset-state --state available 5d94365a-3351-4a7f-8aab-b4795daf955c
WARNING:cinderclient.shell:API version 3.60 requested,
WARNING:cinderclient.shell:downgrading to 3.59 based on server support.
Policy doesn't allow volume_extension:volume_admin_actions:reset_status to be performed. (HTTP 403) (Request-ID: req-2892f77e-697b-43aa-9eb7-062d49bda0fc)
ERROR: Unable to reset the state for the specified entity(s).
解决方案
您可以创建/更改/etc/cinder/policy.json
以包含以下行:
"volume_extension:volume_admin_actions:reset_status": "rule:admin_or_owner"
这将允许卷的所有者重置状态。
推荐阅读
- python - Pandas 在连续组中替换除第一个以外的所有内容
- c# - 具有多个数据库的 .Net Core 应用程序中的 DBContext 架构(每个客户端 1 个)
- java - 使用类注解在 Spring AOP 的类初始化上运行
- c# - 为什么 XamlWriter 会在某些属性中添加 {}?
- javascript - 是否可以仅通过少量导出“导入为”?
- remote-access - 你如何将你的漏洞粘贴/发送/传递到远程主机?
- python - problem with command heroku run -a
pipenv run upgrade - python - 将 WAMP 连接到 python 的问题(两种实现)
- flutter - 使用颤振获得这种设计布局的最佳方法是什么?
- visual-studio-code - 如何将调试控制台移动到另一个窗口?