只能以管理员用户身份重置煤渣粉状态

问题描述

问题

$ 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"

这将允许卷的所有者重置状态。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...