我的項目和管理控制檯的資源無法檢索,但可以在檢索到身份資源後使用該openstacksdk更改密碼:我的項目和管理面板的資源無法檢索,但可以檢索身份資源,使用openstacksdk後更改密碼
conn.identity.update_user(user_id, password=new_password) # after this step, the Project and Admin resources can not be retrieved.
現在我的計劃和管理的資源不能被檢索:
但身份資源可以檢索:
而且請注意,當我登錄了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 | +-------+-------------------+-------+-----------------+--------+-----------+