2017-10-11 50 views
0

我的項目和管理控制檯的資源無法檢索,但可以在檢索到身份資源後使用該openstacksdk更改密碼:我的項目和管理面板的資源無法檢索,但可以檢索身份資源,使用openstacksdk後更改密碼

conn.identity.update_user(user_id, password=new_password) # after this step, the Project and Admin resources can not be retrieved. 

現在我的計劃和管理的資源不能被檢索:

enter image description here

但身份資源可以檢索:

enter image description here

而且請注意,當我登錄了OpenStack的儀表盤,我還是用OLD_PASSWORD,不能使用NEW_PASSWORD登陸OpenStack的儀表板。

而且,如果我使用conn.identity.update_user方法更改爲old_password,那麼問題就會消失,就會變得正常。


編輯-1

我用命令:

openstack role assignment list --names

檢查角色分配列表:

[[email protected] ~]# openstack role assignment list --names +-------+-------------------+-------+-----------------+--------+-----------+ | Role | User | Group | Project | Domain | Inherited | +-------+-------------------+-------+-----------------+--------+-----------+ | user | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | +-------+-------------------+-------+-----------------+--------+-----------+

回答

0

釷是聽起來像角色問題。我將使用OpenStack CLI之一來檢查角色:

openstack role assignment list --names 

類似於假定最新版本的OpenStack。我不太瞭解Horizo​​n,知道需要角色來查看這些頁面。

相關問題