簡體   English   中英

只能以管理員用戶身份重置煤渣音量狀態

[英]Can only reset cinder volume state as the admin user

問題

  • 無法以非管理員用戶身份重置煤渣卷狀態。
  • 需要做什么才能讓用戶重置音量狀態
  • 以下是僅允許管理員用戶重置卷狀態時出現的錯誤示例:
$ 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"

這將允許卷的所有者重置狀態。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM